customer

package
v0.0.0-...-20e6d49 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: AGPL-3.0 Imports: 16 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, cus *customer.Customer, userID pulid.ID) (*customer.Customer, error)

func (*Service) Get

func (*Service) SelectOptions

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

func (*Service) Update

func (s *Service) Update(ctx context.Context, cus *customer.Customer, userID pulid.ID) (*customer.Customer, error)

type ServiceParams

type ServiceParams struct {
	fx.In

	Logger       *logger.Logger
	Repo         repositories.CustomerRepository
	PermService  services.PermissionService
	AuditService services.AuditService
	Validator    *customervalidator.Validator
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳