Documentation ¶
Index ¶
- func CreateUser(dbTrx boil.ContextExecutor, ctx context.Context, body *D.CreateUser) (*M.User, *T.ServiceError)
- func GetByUsername(dbTrx boil.ContextExecutor, ctx context.Context, username string) (*M.User, *T.ServiceError)
- func GetUsers(dbTrx boil.ContextExecutor, ctx context.Context) ([]*M.User, *T.ServiceError)
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(dbTrx boil.ContextExecutor, ctx context.Context, body *D.CreateUser) (*M.User, *T.ServiceError)
func GetByUsername ¶
func GetByUsername(dbTrx boil.ContextExecutor, ctx context.Context, username string) (*M.User, *T.ServiceError)
func GetUsers ¶
func GetUsers(dbTrx boil.ContextExecutor, ctx context.Context) ([]*M.User, *T.ServiceError)
Types ¶
type UserRepository ¶
type UserRepository interface {
Create(b *dto.CreateUser) error
}
Click to show internal directories.
Click to hide internal directories.