Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService interface {
SignUp(ctx context.Context, user *model.UserSignUpReq) error
Login(ctx context.Context, user *model.UserLoginReq) (*model.User, error)
GetProfile(ctx context.Context, uid int) (*model.User, error)
GetPermCode(ctx context.Context, uid int) ([]string, error)
GetUserDetail(ctx context.Context, uid int) (*model.User, error)
GetUserList(ctx context.Context, req *model.GetUserListReq) (model.ListResp[*model.User], error)
ChangePassword(ctx context.Context, req *model.ChangePasswordReq) error
WriteOff(ctx context.Context, username, password string) error
UpdateProfile(ctx context.Context, req *model.UpdateProfileReq) error
DeleteUser(ctx context.Context, uid int) error
GetUserStatistics(ctx context.Context) (*model.UserStatistics, error)
}
func NewUserService ¶
func NewUserService(dao dao.UserDAO, roleSvc service.RoleService, l *zap.Logger) UserService
Click to show internal directories.
Click to hide internal directories.