Documentation ¶
Index ¶
Constants ¶
View Source
const ( FetchMaxLimit = 100 MinDisplayNameLength = 2 MaxDisplayNameLength = 32 MinPasswordLength = 6 MaxPasswordLength = 64 MaxOrders = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchConfig ¶
type Repository ¶
type Repository interface { Store(ctx context.Context, input *models.UserInput) (*models.User, error) UpdateMany(ctx context.Context, f *models.UserFilter, input *models.UserInput) ([]*models.User, error) Delete(ctx context.Context, f *models.UserFilter) ([]*models.User, error) Fetch(ctx context.Context, cfg *FetchConfig) ([]*models.User, int, error) }
type Usecase ¶
type Usecase interface { Store(ctx context.Context, input *models.UserInput) (*models.User, error) UpdateOneByID(ctx context.Context, id int, input *models.UserInput) (*models.User, error) UpdateMany(ctx context.Context, f *models.UserFilter, input *models.UserInput) ([]*models.User, error) Delete(ctx context.Context, f *models.UserFilter) ([]*models.User, error) Fetch(ctx context.Context, cfg *FetchConfig) ([]*models.User, int, error) GetByID(ctx context.Context, id int) (*models.User, error) GetByCredentials(ctx context.Context, email, password string) (*models.User, error) }
Click to show internal directories.
Click to hide internal directories.