Documentation
¶
Index ¶
- type Entity
- func (e *Entity) CreateUser(ctx context.Context, id int64, name string) error
- func (e *Entity) GetUserById(ctx context.Context, id int64) (model.User, error)
- func (e *Entity) GetUsersList(ctx context.Context, ids []int64) ([]model.User, error)
- func (e *Entity) ModifyUser(ctx context.Context, userId int64, name *string, avatar *int64) error
- func (e *Entity) SetUploadLimit(ctx context.Context, id int64, uploadLimit int64) error
- func (e *Entity) SetUserAvatar(ctx context.Context, id, attachmentId int64) error
- func (e *Entity) SetUserBlocked(ctx context.Context, id int64, blocked bool) error
- func (e *Entity) SetUsername(ctx context.Context, id, name string) error
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func (*Entity) CreateUser ¶
func (*Entity) GetUserById ¶
func (*Entity) GetUsersList ¶
func (*Entity) ModifyUser ¶
func (*Entity) SetUploadLimit ¶
func (*Entity) SetUserAvatar ¶
func (*Entity) SetUserBlocked ¶
type User ¶
type User interface {
ModifyUser(ctx context.Context, userId int64, name *string, avatar *int64) error
GetUserById(ctx context.Context, id int64) (model.User, error)
GetUsersList(ctx context.Context, ids []int64) ([]model.User, error)
CreateUser(ctx context.Context, id int64, name string) error
SetUserAvatar(ctx context.Context, id, attachmentId int64) error
SetUsername(ctx context.Context, id, name string) error
SetUserBlocked(ctx context.Context, id int64, blocked bool) error
SetUploadLimit(ctx context.Context, id int64, uploadLimit int64) error
}
Click to show internal directories.
Click to hide internal directories.