profileservice

package
v1.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvancedProfileService

type AdvancedProfileService interface {
	ProfileService
	GetPicture(ctx context.Context, userId uint64) []byte
	UpdateProfile(ctx context.Context, userId uint64, desc string, info map[string]string) error
	UpdatePicture(ctx context.Context, userId uint64, data []byte) error
	Delete(ctx context.Context, userId uint64) error
	ViewRight(ctx context.Context, userId uint64) error
}

type ProfileService

type ProfileService interface {
	GetProfiles(ctx context.Context, userIds []uint64) (map[uint64]UserProfile, error)
}

type UserProfile

type UserProfile struct {
	loginservice.User
	Desc string
	Info map[string]string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL