Documentation ¶
Index ¶
- type Service
- type StockService
- func (s *StockService) Create(ctx context.Context, request *model.Request) (int, error)
- func (s *StockService) Delete(ctx context.Context, request *stock.FitterDeleteStock) (*model.DeleteResponseStock, error)
- func (s *StockService) Get(ctx context.Context, request *model.FitterReadStock) (*model.ReadResponseStock, error)
- func (s *StockService) List(ctx context.Context, request *model.FitterListStock, ...) (*utils.Pagination, error)
- func (s *StockService) Update(ctx context.Context, request *model.FitterUpdateStock) (*model.UpdateResponseStock, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Create(ctx context.Context, input *model.Request) (ID int, err error) Get(ctx context.Context, request *model.FitterReadStock) (*model.ReadResponseStock, error) Delete(ctx context.Context, input *model.FitterDeleteStock) (*model.DeleteResponseStock, error) Update(ctx context.Context, request *model.FitterUpdateStock) (*model.UpdateResponseStock, error) List(ctx context.Context, request *model.FitterListStock, pagination *utils.PaginationOptions) (*utils.Pagination, error) }
func NewService ¶
func NewService(r postgres.Repository) (service Service)
type StockService ¶
type StockService struct {
// contains filtered or unexported fields
}
func (*StockService) Delete ¶
func (s *StockService) Delete(ctx context.Context, request *stock.FitterDeleteStock) (*model.DeleteResponseStock, error)
func (*StockService) Get ¶
func (s *StockService) Get(ctx context.Context, request *model.FitterReadStock) (*model.ReadResponseStock, error)
func (*StockService) List ¶
func (s *StockService) List(ctx context.Context, request *model.FitterListStock, pagination *utils.PaginationOptions) (*utils.Pagination, error)
func (*StockService) Update ¶
func (s *StockService) Update(ctx context.Context, request *model.FitterUpdateStock) (*model.UpdateResponseStock, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.