Documentation ¶
Index ¶
- type ConvenienceService
- func (s *ConvenienceService) CreateNotice(ctx context.Context, notice *model.ConvenienceNotice) (*model.ConvenienceNotice, 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) 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) 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, ) *ConvenienceService
func (*ConvenienceService) CreateNotice ¶
func (s *ConvenienceService) CreateNotice( ctx context.Context, notice *model.ConvenienceNotice, ) (*model.ConvenienceNotice, error)
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) 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) 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.