Documentation ¶
Index ¶
- type UserBackyardRepo
- type UserBackyardService
- func (us *UserBackyardService) GetUserInfo(ctx context.Context, userID string) (resp *schema.GetUserInfoResp, err error)
- func (us *UserBackyardService) GetUserPage(ctx context.Context, req *schema.GetUserPageReq) (pageModel *pager.PageModel, err error)
- func (us *UserBackyardService) UpdateUserStatus(ctx context.Context, req *schema.UpdateUserStatusReq) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserBackyardRepo ¶
type UserBackyardRepo interface { UpdateUserStatus(ctx context.Context, userID string, userStatus, mailStatus int, email string) (err error) GetUserInfo(ctx context.Context, userID string) (user *entity.User, exist bool, err error) GetUserPage(ctx context.Context, page, pageSize int, user *entity.User, query string) (users []*entity.User, total int64, err error) }
UserBackyardRepo user repository
type UserBackyardService ¶
type UserBackyardService struct {
// contains filtered or unexported fields
}
UserBackyardService user service
func NewUserBackyardService ¶
func NewUserBackyardService(userRepo UserBackyardRepo) *UserBackyardService
func (*UserBackyardService) GetUserInfo ¶
func (us *UserBackyardService) GetUserInfo(ctx context.Context, userID string) (resp *schema.GetUserInfoResp, err error)
GetUserInfo get user one
func (*UserBackyardService) GetUserPage ¶
func (us *UserBackyardService) GetUserPage(ctx context.Context, req *schema.GetUserPageReq) (pageModel *pager.PageModel, err error)
GetUserPage get user list page
func (*UserBackyardService) UpdateUserStatus ¶
func (us *UserBackyardService) UpdateUserStatus(ctx context.Context, req *schema.UpdateUserStatusReq) (err error)
UpdateUserStatus update user
Click to show internal directories.
Click to hide internal directories.