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) FindNoticeByInputAndOutputIndex(ctx context.Context, inputIndex uint64, outputIndex uint64) (*model.ConvenienceNotice, error)
- func (c *ConvenienceService) FindNoticeByOutputIndexAndAppContract(ctx context.Context, outputIndex uint64, appContract *common.Address) (*model.ConvenienceNotice, error)
- func (c *ConvenienceService) FindVoucherByInputAndOutputIndex(ctx context.Context, inputIndex uint64, outputIndex uint64) (*model.ConvenienceVoucher, error)
- func (c *ConvenienceService) FindVoucherByOutputIndexAndAppContract(ctx context.Context, outputIndex uint64, appContract *common.Address) (*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 { VoucherRepository *repository.VoucherRepository NoticeRepository *repository.NoticeRepository InputRepository *repository.InputRepository ReportRepository *repository.ReportRepository }
func NewConvenienceService ¶
func NewConvenienceService( voucherRepository *repository.VoucherRepository, noticeRepository *repository.NoticeRepository, inputRepository *repository.InputRepository, reportRepository *repository.ReportRepository, ) *ConvenienceService
func (*ConvenienceService) CreateInput ¶
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 ¶
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 ¶
func (*ConvenienceService) FindAllInputs ¶
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) FindNoticeByInputAndOutputIndex ¶
func (c *ConvenienceService) FindNoticeByInputAndOutputIndex( ctx context.Context, inputIndex uint64, outputIndex uint64, ) (*model.ConvenienceNotice, error)
func (*ConvenienceService) FindNoticeByOutputIndexAndAppContract ¶
func (c *ConvenienceService) FindNoticeByOutputIndexAndAppContract( ctx context.Context, outputIndex uint64, appContract *common.Address, ) (*model.ConvenienceNotice, error)
func (*ConvenienceService) FindVoucherByInputAndOutputIndex ¶
func (c *ConvenienceService) FindVoucherByInputAndOutputIndex( ctx context.Context, inputIndex uint64, outputIndex uint64, ) (*model.ConvenienceVoucher, error)
func (*ConvenienceService) FindVoucherByOutputIndexAndAppContract ¶
func (c *ConvenienceService) FindVoucherByOutputIndexAndAppContract( ctx context.Context, outputIndex uint64, appContract *common.Address, ) (*model.ConvenienceVoucher, error)
func (*ConvenienceService) UpdateExecuted ¶
Click to show internal directories.
Click to hide internal directories.