user_backyard

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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)
	GetUserInfoByEmail(ctx context.Context, email string) (user *entity.User, exist bool, err error)
	GetUserPage(ctx context.Context, page, pageSize int, user *entity.User,
		usernameOrDisplayName string, isStaff bool) (users []*entity.User, total int64, err error)
	AddUser(ctx context.Context, user *entity.User) (err error)
	UpdateUserPassword(ctx context.Context, userID string, password string) (err error)
}

UserBackyardRepo user repository

type UserBackyardService

type UserBackyardService struct {
	// contains filtered or unexported fields
}

UserBackyardService user service

func NewUserBackyardService

func NewUserBackyardService(
	userRepo UserBackyardRepo,
	userRoleRelService *role.UserRoleRelService,
	authService *auth.AuthService,
	userCommonService *usercommon.UserCommon,
) *UserBackyardService

NewUserBackyardService new user backyard service

func (*UserBackyardService) AddUser added in v1.0.0

func (us *UserBackyardService) AddUser(ctx context.Context, req *schema.AddUserReq) (err error)

AddUser add user

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) UpdateUserPassword added in v1.0.0

func (us *UserBackyardService) UpdateUserPassword(ctx context.Context, req *schema.UpdateUserPasswordReq) (err error)

UpdateUserPassword update user password

func (*UserBackyardService) UpdateUserRole added in v1.0.0

func (us *UserBackyardService) UpdateUserRole(ctx context.Context, req *schema.UpdateUserRoleReq) (err error)

UpdateUserRole update user role

func (*UserBackyardService) UpdateUserStatus

func (us *UserBackyardService) UpdateUserStatus(ctx context.Context, req *schema.UpdateUserStatusReq) (err error)

UpdateUserStatus update user

Jump to

Keyboard shortcuts

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