stock

package
v0.0.0-...-b5ce554 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func (s *StockService) Create(ctx context.Context, request *model.Request) (int, error)

func (*StockService) Delete

func (*StockService) Get

func (*StockService) List

func (*StockService) Update

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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