feat: add charge codes

This commit is contained in:
Rogee
2024-12-28 16:38:46 +08:00
parent cee14cb3fd
commit 9df2663b6e

View File

@@ -87,7 +87,7 @@ func (c *Controller) GetChargeCodes(ctx fiber.Ctx) error {
Code string `json:"code"`
}
amount := []int64{10, 20, 50, 100, 200, 300, 500, 1000, 2000}
amount := []int64{1, 2, 5, 10, 20, 50, 100, 200, 300, 500, 1000, 2000}
codes := []generateCode{}
for _, a := range amount {
code, err := c.svc.GenerateChargeCode(ctx.Context(), claim.TenantID, a*100)