Documentation ¶
Index ¶
- Variables
- type RegUser
- type UpdateUser
- type User
- type UserRepo
- type UserUsecase
- func (uc *UserUsecase) Create(ctx context.Context, user *RegUser) (id int64, err error)
- func (uc *UserUsecase) Delete(ctx context.Context, id int64) error
- func (uc *UserUsecase) Get(ctx context.Context, id int64) (*User, error)
- func (uc *UserUsecase) Update(ctx context.Context, id int64, user *UpdateUser) 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) Update ¶
func (uc *UserUsecase) Update(ctx context.Context, id int64, user *UpdateUser) error
Click to show internal directories.
Click to hide internal directories.