Documentation ¶
Index ¶
- type UserService
- func (s UserService) CreateUser(ctx context.Context, input model.NewUser) (*model.User, error)
- func (s UserService) GetUserByID(ctx context.Context, uid int64) (*models.User, error)
- func (s UserService) GetUserInfo(user *models.User, scheme string) *model.User
- func (s UserService) ListUser(ctx context.Context, searchParam *base.SearchParam, scheme string) (int64, []*model.User, error)
- func (s UserService) ListUserByIDs(ids []int64, scheme string) ([]*model.User, error)
- func (s UserService) Login(ctx context.Context, username string, password string) (*model.LoginResponse, error)
- func (s UserService) RefreshToken(ctx context.Context, refreshToken string) (*model.LoginResponse, error)
- func (s UserService) UpdatePassword(ctx context.Context, oldPassword string, newPassword string, uid uint) (*model.User, error)
- func (s UserService) UpdateProfile(ctx context.Context, input model.NewUpdateProfile, uid uint) (*model.User, error)
- func (s UserService) UpdateUser(ctx context.Context, input model.NewUpdateUser) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
UserService ..
func (UserService) CreateUser ¶
CreateUser ..
func (UserService) GetUserByID ¶
GetUserByID ..
func (UserService) GetUserInfo ¶
GetUserInfo ..
func (UserService) ListUser ¶
func (s UserService) ListUser(ctx context.Context, searchParam *base.SearchParam, scheme string) (int64, []*model.User, error)
ListUser ..
func (UserService) ListUserByIDs ¶
ListUserByIDs ..
func (UserService) Login ¶
func (s UserService) Login(ctx context.Context, username string, password string) (*model.LoginResponse, error)
Login ..
func (UserService) RefreshToken ¶
func (s UserService) RefreshToken(ctx context.Context, refreshToken string) (*model.LoginResponse, error)
RefreshToken ..
func (UserService) UpdatePassword ¶
func (s UserService) UpdatePassword(ctx context.Context, oldPassword string, newPassword string, uid uint) (*model.User, error)
UpdatePassword ..
func (UserService) UpdateProfile ¶
func (s UserService) UpdateProfile(ctx context.Context, input model.NewUpdateProfile, uid uint) (*model.User, error)
UpdateProfile ..
func (UserService) UpdateUser ¶
func (s UserService) UpdateUser(ctx context.Context, input model.NewUpdateUser) (*model.User, error)
UpdateUser ..
Click to show internal directories.
Click to hide internal directories.