Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) Count(filter map[string]interface{}, where string) (int, error)
- func (_m *Repository) Create(userReq *model.UserModel) (*model.UserModel, error)
- func (_m *Repository) Delete(id string) error
- func (_m *Repository) Get(filter map[string]interface{}, where string, orderBy string, ...) ([]*model.UserModel, error)
- func (_m *Repository) GetByID(id string, selectField string) (*model.UserModel, error)
- func (_m *Repository) Update(userReq *model.UserModel) (*model.UserModel, error)
- type Service
- func (_m *Service) Create(req *form.UserForm) (*model.UserModel, int, error)
- func (_m *Service) Delete(id string) (int, error)
- func (_m *Service) Detail(id string, selectField string) (*model.UserModel, int, error)
- func (_m *Service) List(filter map[string]interface{}, filterCount map[string]interface{}, ...) ([]*model.UserModel, int, int, error)
- func (_m *Service) Update(req *form.UserForm, id string) (*model.UserModel, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) Count ¶
func (_m *Repository) Count(filter map[string]interface{}, where string) (int, error)
Count provides a mock function with given fields: filter, where
func (*Repository) Delete ¶
func (_m *Repository) Delete(id string) error
Delete provides a mock function with given fields: id
func (*Repository) Get ¶
func (_m *Repository) Get(filter map[string]interface{}, where string, orderBy string, selectField string) ([]*model.UserModel, error)
Get provides a mock function with given fields: filter, where, orderBy, selectField
type Service ¶
Service is an autogenerated mock type for the Service type
Click to show internal directories.
Click to hide internal directories.