Documentation ¶
Index ¶
- Variables
- type User
- type UserRepo
- type UserUsecase
- func (uc *UserUsecase) GetUserByPhone(ctx context.Context, phone string) (u *User, err error)
- func (uc *UserUsecase) Login(ctx context.Context, user *User) (*User, error)
- func (uc *UserUsecase) Register(ctx context.Context, user *User) (p *User, err error)
- func (uc *UserUsecase) UpdateUser(ctx context.Context, id int64, user *User) (*User, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewUserUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type UserUsecase ¶
type UserUsecase struct {
// contains filtered or unexported fields
}
func NewUserUsecase ¶
func NewUserUsecase(repo UserRepo, logger log.Logger) *UserUsecase
func (*UserUsecase) GetUserByPhone ¶
func (*UserUsecase) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.