Documentation ¶
Index ¶
- type ConvenienceService
- func (s *ConvenienceService) CreateInput(ctx context.Context, input *model.AdvanceInput) (*model.AdvanceInput, error)
- func (s *ConvenienceService) CreateNotice(ctx context.Context, notice *model.ConvenienceNotice) (*model.ConvenienceNotice, error)
- func (s *ConvenienceService) CreateReport(ctx context.Context, report *model.Report) (*model.Report, error)
- func (s *ConvenienceService) CreateVoucher(ctx context.Context, voucher *model.ConvenienceVoucher) (*model.ConvenienceVoucher, error)
- func (s *ConvenienceService) CreateVoucher1(ctx context.Context, voucher *model.ConvenienceVoucher) (*model.ConvenienceVoucher, error)
- func (c *ConvenienceService) FindAllByInputIndex(ctx context.Context, first *int, last *int, after *string, before *string, ...) (*commons.PageResult[model.Report], error)
- func (c *ConvenienceService) FindAllInputs(ctx context.Context, first *int, last *int, after *string, before *string, ...) (*commons.PageResult[model.AdvanceInput], error)
- func (c *ConvenienceService) FindAllNotices(ctx context.Context, first *int, last *int, after *string, before *string, ...) (*commons.PageResult[model.ConvenienceNotice], error)
- func (c *ConvenienceService) FindAllVouchers(ctx context.Context, first *int, last *int, after *string, before *string, ...) (*commons.PageResult[model.ConvenienceVoucher], error)
- func (c *ConvenienceService) FindInputByIndex(ctx context.Context, index int) (*model.AdvanceInput, error)
- func (c *ConvenienceService) FindNoticeByInputAndOutputIndex(ctx context.Context, inputIndex uint64, outputIndex uint64) (*model.ConvenienceNotice, error)
- func (c *ConvenienceService) FindVoucherByInputAndOutputIndex(ctx context.Context, inputIndex uint64, outputIndex uint64) (*model.ConvenienceVoucher, error)
- func (c *ConvenienceService) UpdateExecuted(ctx context.Context, inputIndex uint64, outputIndex uint64, executedValue bool) error
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 (s *ConvenienceService) CreateNotice( ctx context.Context, notice *model.ConvenienceNotice, ) (*model.ConvenienceNotice, error)
func (*ConvenienceService) CreateReport ¶ added in v1.3.0
func (*ConvenienceService) CreateVoucher ¶
func (s *ConvenienceService) CreateVoucher( ctx context.Context, voucher *model.ConvenienceVoucher, ) (*model.ConvenienceVoucher, error)
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 (*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 ¶
Click to show internal directories.
Click to hide internal directories.