Add Voucher Undian

This commit is contained in:
aditya.siregar
2025-06-06 21:14:28 +07:00
parent 54144b2eba
commit fa8f0ad380
10 changed files with 530 additions and 413 deletions
+2 -3
View File
@@ -117,10 +117,9 @@ type InProgressOrderRepository interface {
}
type VoucherUndianRepo interface {
GetActiveUndianEvents(ctx context.Context) ([]*entity.UndianEventDB, error)
CreateUndianVouchers(ctx context.Context, vouchers []*entity.UndianVoucherDB) error
GetNextVoucherSequence(ctx mycontext.Context) (int64, error)
GetActiveUndianEvents(ctx mycontext.Context) ([]*entity.UndianEventDB, error)
GetNextVoucherSequenceBatch(ctx mycontext.Context, count int) (int64, error)
CreateUndianVouchers(ctx mycontext.Context, vouchers []*entity.UndianVoucherDB) error
}
type orderSvc struct {