user_backyard

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 9 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)
	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

Jump to

Keyboard shortcuts

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