Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewUserUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type UserRepo ¶
type UserRepo interface { Save(context.Context, *User) (*User, error) Update(context.Context, *User) (*User, error) FindByID(context.Context, int64) (*User, error) ListByHello(context.Context, string) ([]*User, error) ListAll(context.Context) ([]*User, error) }
UserRepo is a User repo.
type UserUsecase ¶
type UserUsecase struct {
// contains filtered or unexported fields
}
UserUsecase is a User usecase.
func NewUserUsecase ¶
func NewUserUsecase(repo UserRepo, logger log.Logger) *UserUsecase
NewUserUsecase new a User usecase.
func (*UserUsecase) CreateUser ¶
CreateUser creates a User, and returns the new User.
Click to show internal directories.
Click to hide internal directories.