Documentation
¶
Index ¶
- type CategoryServiceInterface
- func (_m *CategoryServiceInterface) CreateCategory(ctx context.Context, _a1 model.CreateCategoryRequest) (int64, error)
- func (_m *CategoryServiceInterface) DeleteCategory(ctx context.Context, id int) error
- func (_m *CategoryServiceInterface) GetAllCategories(ctx context.Context) ([]repositorymodel.Category, error)
- func (_m *CategoryServiceInterface) GetCategoryByID(ctx context.Context, id int) (*repositorymodel.Category, error)
- func (_m *CategoryServiceInterface) UpdateCategory(ctx context.Context, id int, _a2 model.UpdateCategoryRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryServiceInterface ¶
CategoryServiceInterface is an autogenerated mock type for the CategoryServiceInterface type
func NewCategoryServiceInterface ¶
func NewCategoryServiceInterface(t interface { mock.TestingT Cleanup(func()) }) *CategoryServiceInterface
NewCategoryServiceInterface creates a new instance of CategoryServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CategoryServiceInterface) CreateCategory ¶
func (_m *CategoryServiceInterface) CreateCategory(ctx context.Context, _a1 model.CreateCategoryRequest) (int64, error)
CreateCategory provides a mock function with given fields: ctx, _a1
func (*CategoryServiceInterface) DeleteCategory ¶
func (_m *CategoryServiceInterface) DeleteCategory(ctx context.Context, id int) error
DeleteCategory provides a mock function with given fields: ctx, id
func (*CategoryServiceInterface) GetAllCategories ¶
func (_m *CategoryServiceInterface) GetAllCategories(ctx context.Context) ([]repositorymodel.Category, error)
GetAllCategories provides a mock function with given fields: ctx
func (*CategoryServiceInterface) GetCategoryByID ¶
func (_m *CategoryServiceInterface) GetCategoryByID(ctx context.Context, id int) (*repositorymodel.Category, error)
GetCategoryByID provides a mock function with given fields: ctx, id
func (*CategoryServiceInterface) UpdateCategory ¶
func (_m *CategoryServiceInterface) UpdateCategory(ctx context.Context, id int, _a2 model.UpdateCategoryRequest) error
UpdateCategory provides a mock function with given fields: ctx, id, _a2