feat(invoices): add public invoices module with controller and service
refactor: remove unused trigger logs module and related files refactor: simplify good snapshot handling in sale invoice creation
This commit is contained in:
@@ -3,6 +3,7 @@ import { EnumKeyMaker } from './enum'
|
||||
import { GuildKeyMaker } from './guild'
|
||||
import { PartnerKeyMaker } from './partner'
|
||||
import { PosKeyMaker } from './pos'
|
||||
import { PublicSaleInvoiceKeyMaker } from './publicSaleInvoice'
|
||||
|
||||
// Keep backward-compatible static methods while separating key builders by domain.
|
||||
export class RedisKeyMaker extends PartnerKeyMaker {
|
||||
@@ -25,6 +26,8 @@ export class RedisKeyMaker extends PartnerKeyMaker {
|
||||
|
||||
static enumsAll = EnumKeyMaker.enumsAll
|
||||
static enumsValues = EnumKeyMaker.enumsValues
|
||||
|
||||
static publicSaleInvoice = PublicSaleInvoiceKeyMaker.invoice
|
||||
}
|
||||
|
||||
export { ConsumerKeyMaker, EnumKeyMaker, GuildKeyMaker, PartnerKeyMaker, PosKeyMaker }
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export class PublicSaleInvoiceKeyMaker {
|
||||
static invoice(id: string): string {
|
||||
return `publicSaleInvoices:${id}`
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user