mocks

package
v0.0.0-...-3871cc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

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) Create

func (_m *Repository) Create(userReq *model.UserModel) (*model.UserModel, error)

Create provides a mock function with given fields: userReq

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

func (*Repository) GetByID

func (_m *Repository) GetByID(id string, selectField string) (*model.UserModel, error)

GetByID provides a mock function with given fields: id, selectField

func (*Repository) Update

func (_m *Repository) Update(userReq *model.UserModel) (*model.UserModel, error)

Update provides a mock function with given fields: userReq

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) Create

func (_m *Service) Create(req *form.UserForm) (*model.UserModel, int, error)

Create provides a mock function with given fields: req

func (*Service) Delete

func (_m *Service) Delete(id string) (int, error)

Delete provides a mock function with given fields: id

func (*Service) Detail

func (_m *Service) Detail(id string, selectField string) (*model.UserModel, int, error)

Detail provides a mock function with given fields: id, selectField

func (*Service) List

func (_m *Service) List(filter map[string]interface{}, filterCount map[string]interface{}, where string, orderBy string, selectField string) ([]*model.UserModel, int, int, error)

List provides a mock function with given fields: filter, filterCount, where, orderBy, selectField

func (*Service) Update

func (_m *Service) Update(req *form.UserForm, id string) (*model.UserModel, int, error)

Update provides a mock function with given fields: req, id

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL