services

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvenienceService

type ConvenienceService struct {
	// contains filtered or unexported fields
}

func NewConvenienceService

func NewConvenienceService(
	voucherRepository *repository.VoucherRepository,
	noticeRepository *repository.NoticeRepository,
	inputRepository *repository.InputRepository,
	reportRepository *repository.ReportRepository,
) *ConvenienceService

func (*ConvenienceService) CreateInput added in v1.3.0

func (s *ConvenienceService) CreateInput(
	ctx context.Context,
	input *model.AdvanceInput,
) (*model.AdvanceInput, error)

func (*ConvenienceService) CreateNotice

func (*ConvenienceService) CreateReport added in v1.3.0

func (s *ConvenienceService) CreateReport(
	ctx context.Context,
	report *model.Report,
) (*model.Report, error)

func (*ConvenienceService) CreateVoucher

func (*ConvenienceService) CreateVoucher1

func (s *ConvenienceService) CreateVoucher1(
	ctx context.Context,
	voucher *model.ConvenienceVoucher,
) (*model.ConvenienceVoucher, error)

func (*ConvenienceService) FindAllByInputIndex added in v1.3.0

func (c *ConvenienceService) FindAllByInputIndex(
	ctx context.Context,
	first *int,
	last *int,
	after *string,
	before *string,
	inputIndex *int,
) (*commons.PageResult[model.Report], error)

func (*ConvenienceService) FindAllInputs added in v1.3.0

func (c *ConvenienceService) FindAllInputs(
	ctx context.Context,
	first *int,
	last *int,
	after *string,
	before *string,
	filter []*model.ConvenienceFilter,
) (*commons.PageResult[model.AdvanceInput], error)

func (*ConvenienceService) FindAllNotices

func (c *ConvenienceService) FindAllNotices(
	ctx context.Context,
	first *int,
	last *int,
	after *string,
	before *string,
	filter []*model.ConvenienceFilter,
) (*commons.PageResult[model.ConvenienceNotice], error)

func (*ConvenienceService) FindAllVouchers

func (c *ConvenienceService) FindAllVouchers(
	ctx context.Context,
	first *int,
	last *int,
	after *string,
	before *string,
	filter []*model.ConvenienceFilter,
) (*commons.PageResult[model.ConvenienceVoucher], error)

func (*ConvenienceService) FindInputByIndex added in v1.3.0

func (c *ConvenienceService) FindInputByIndex(
	ctx context.Context, index int,
) (*model.AdvanceInput, error)

func (*ConvenienceService) FindNoticeByInputAndOutputIndex

func (c *ConvenienceService) FindNoticeByInputAndOutputIndex(
	ctx context.Context, inputIndex uint64, outputIndex uint64,
) (*model.ConvenienceNotice, error)

func (*ConvenienceService) FindVoucherByInputAndOutputIndex

func (c *ConvenienceService) FindVoucherByInputAndOutputIndex(
	ctx context.Context, inputIndex uint64, outputIndex uint64,
) (*model.ConvenienceVoucher, error)

func (*ConvenienceService) UpdateExecuted

func (c *ConvenienceService) UpdateExecuted(
	ctx context.Context,
	inputIndex uint64,
	outputIndex uint64,
	executedValue bool,
) error

Jump to

Keyboard shortcuts

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