Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUserNotFound is user not found. ErrUserNotFound = errors.NotFound(v1.ErrorReason_USER_NOT_FOUND.String(), "user not found") )
View Source
var ProviderSet = wire.NewSet(NewAccountUseCase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID string `json:"id"` Username string `json:"username"` CreatedAt *timestamppb.Timestamp `json:"created_at,omitempty"` // 开始时间 UpdatedAt *timestamppb.Timestamp `json:"updated_at,omitempty"` }
Account is a Greeter model.
type AccountRepo ¶
AccountRepo is an Account repo.
type AccountUseCase ¶
type AccountUseCase struct {
// contains filtered or unexported fields
}
AccountUseCase is an account useCase.
func NewAccountUseCase ¶
func NewAccountUseCase(repo AccountRepo, logger log.Logger) *AccountUseCase
NewAccountUseCase new a user Account useCase.
Click to show internal directories.
Click to hide internal directories.