Documentation ¶
Index ¶
- type IUserUsecase
- type UserUsecase
- func (uc *UserUsecase) CreateUser(ctx context.Context, mobile, email string, accountId int64) (int64, error)
- func (uc *UserUsecase) GetUserByIdList(ctx context.Context, userIdList []int64) ([]*entity.User, error)
- func (uc *UserUsecase) GetUserInfo(ctx context.Context, req dto.GetUserInfoRequest) (*entity.User, error)
- func (uc *UserUsecase) UpdateUserInfo(ctx context.Context, user *entity.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IUserUsecase ¶
type IUserUsecase interface { CreateUser(ctx context.Context, mobile, email string, accountId int64) (int64, error) GetUserInfo(ctx context.Context, req dto.GetUserInfoRequest) (*entity.User, error) UpdateUserInfo(ctx context.Context, user *entity.User) error GetUserByIdList(ctx context.Context, userIdList []int64) ([]*entity.User, error) }
type UserUsecase ¶
type UserUsecase struct {
// contains filtered or unexported fields
}
func NewUserUsecase ¶
func NewUserUsecase( repo userdata.IUserRepo, ) *UserUsecase
func (*UserUsecase) CreateUser ¶
func (*UserUsecase) GetUserByIdList ¶ added in v0.1.6
func (*UserUsecase) GetUserInfo ¶
func (uc *UserUsecase) GetUserInfo(ctx context.Context, req dto.GetUserInfoRequest) (*entity.User, error)
func (*UserUsecase) UpdateUserInfo ¶
Click to show internal directories.
Click to hide internal directories.