Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IUserModel ¶
type IUserModel interface { GetByEmail(ctx context.Context, email string) (*entities.User, *errors.CustomError) Add(ctx context.Context, user *entities.User) (*entities.User, *errors.CustomError) GetAll(ctx context.Context) ([]entities.UserWithoutPassword, *errors.CustomError) GetByID(ctx context.Context, id int64) (*entities.UserWithoutPassword, *errors.CustomError) Delete(ctx context.Context, id int64) *errors.CustomError }
func NewSqlxModel ¶
func NewSqlxModel(sqlx *sqlx.DB) IUserModel
Click to show internal directories.
Click to hide internal directories.