Documentation
¶
Index ¶
- Variables
- type Address
- type AddressRepo
- type AddressUseCase
- type Card
- type CardRepo
- type CardUseCase
- type User
- type UserRepo
- type UserUseCase
- func (uc *UserUseCase) Create(ctx context.Context, u *User) (*User, error)
- func (uc *UserUseCase) Get(ctx context.Context, id int64) (*User, error)
- func (uc *UserUseCase) GetUserByUsername(ctx context.Context, username string) (*User, error)
- func (uc *UserUseCase) Save(ctx context.Context, u *User) (*User, error)
- func (uc *UserUseCase) VerifyPassword(ctx context.Context, u *User) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewUserUseCase, NewCardUseCase, NewAddressUseCase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type AddressRepo ¶
type AddressUseCase ¶
type AddressUseCase struct {
// contains filtered or unexported fields
}
func NewAddressUseCase ¶
func NewAddressUseCase(repo AddressRepo, logger log.Logger) *AddressUseCase
type CardUseCase ¶
type CardUseCase struct {
// contains filtered or unexported fields
}
func NewCardUseCase ¶
func NewCardUseCase(repo CardRepo, logger log.Logger) *CardUseCase
type UserRepo ¶
type UserRepo interface { CreateUser(ctx context.Context, u *User) (*User, error) GetUser(ctx context.Context, id int64) (*User, error) VerifyPassword(ctx context.Context, u *User) (bool, error) FindByUsername(ctx context.Context, username string) (*User, error) UpdateUser(ctx context.Context, u *User) (*User, error) }
type UserUseCase ¶
type UserUseCase struct {
// contains filtered or unexported fields
}
func NewUserUseCase ¶
func NewUserUseCase(repo UserRepo, logger log.Logger) *UserUseCase
func (*UserUseCase) GetUserByUsername ¶
func (*UserUseCase) VerifyPassword ¶
Click to show internal directories.
Click to hide internal directories.