service

package
v0.0.0-...-784300e Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 9 Imported by: 0

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, user *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

Jump to

Keyboard shortcuts

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