Documentation ¶
Index ¶
- type CreateCategoryPayload
- type CreateProductPayload
- type GetManyCategoryParams
- type GetManyProductParams
- type StoreService
- func (s *StoreService) CreateCategory(ctx context.Context, data CreateCategoryPayload) (*int64, error)
- func (s *StoreService) CreateProduct(ctx context.Context, data CreateProductPayload) (*int64, error)
- func (s *StoreService) DeleteCategory(ctx context.Context, id uuid.UUID) (*int64, error)
- func (s *StoreService) DeleteProduct(ctx context.Context, id uuid.UUID) (*int64, error)
- func (s *StoreService) GetCategoryById(ctx context.Context, id uuid.UUID) (*entity.Category, error)
- func (s *StoreService) GetManyCategory(ctx context.Context, params GetManyCategoryParams) (*[]entity.Category, error)
- func (s *StoreService) GetManyCategoryNoDb(ctx context.Context) (*[]entity.Category, error)
- func (s *StoreService) GetManyProduct(ctx context.Context, params GetManyProductParams) (*[]entity.Product, error)
- func (s *StoreService) GetProductById(ctx context.Context, id uuid.UUID) (*entity.Product, error)
- func (s *StoreService) UpdateCategory(ctx context.Context, id uuid.UUID, data UpdateCategoryPayload) (*int64, error)
- func (s *StoreService) UpdateProduct(ctx context.Context, id uuid.UUID, data UpdateProductPayload) (*int64, error)
- type UpdateCategoryPayload
- type UpdateProductPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCategoryPayload ¶
type CreateProductPayload ¶
type GetManyCategoryParams ¶
type GetManyProductParams ¶
type StoreService ¶
type StoreService struct {
// contains filtered or unexported fields
}
func New ¶
func New(repository *repository.StoreRepository, external *external.External) *StoreService
func (*StoreService) CreateCategory ¶
func (s *StoreService) CreateCategory(ctx context.Context, data CreateCategoryPayload) (*int64, error)
func (*StoreService) CreateProduct ¶
func (s *StoreService) CreateProduct(ctx context.Context, data CreateProductPayload) (*int64, error)
func (*StoreService) DeleteCategory ¶
func (*StoreService) DeleteProduct ¶
func (*StoreService) GetCategoryById ¶
func (*StoreService) GetManyCategory ¶
func (s *StoreService) GetManyCategory(ctx context.Context, params GetManyCategoryParams) (*[]entity.Category, error)
func (*StoreService) GetManyCategoryNoDb ¶
func (*StoreService) GetManyProduct ¶
func (s *StoreService) GetManyProduct(ctx context.Context, params GetManyProductParams) (*[]entity.Product, error)
func (*StoreService) GetProductById ¶
func (*StoreService) UpdateCategory ¶
func (s *StoreService) UpdateCategory(ctx context.Context, id uuid.UUID, data UpdateCategoryPayload) (*int64, error)
func (*StoreService) UpdateProduct ¶
func (s *StoreService) UpdateProduct(ctx context.Context, id uuid.UUID, data UpdateProductPayload) (*int64, error)
type UpdateCategoryPayload ¶
Click to show internal directories.
Click to hide internal directories.