commodity

package
v0.0.0-...-c558e1b Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 17 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 struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(p ServiceParams) *Service

func (*Service) Create

func (s *Service) Create(ctx context.Context, com *commodity.Commodity, userID pulid.ID) (*commodity.Commodity, error)

func (*Service) Get

func (*Service) List

func (*Service) SelectOptions

func (s *Service) SelectOptions(ctx context.Context, opts *ports.LimitOffsetQueryOptions) ([]*types.SelectOption, error)

func (*Service) Update

func (s *Service) Update(ctx context.Context, com *commodity.Commodity, userID pulid.ID) (*commodity.Commodity, error)

type ServiceParams

type ServiceParams struct {
	fx.In

	Logger       *logger.Logger
	Repo         repositories.CommodityRepository
	PermService  services.PermissionService
	AuditService services.AuditService
	Validator    *commodityvalidator.Validator
}

Jump to

Keyboard shortcuts

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