feat(admin): add create-and-redeem API and payment integration docs

This commit is contained in:
erio committed 2026-03-01 00:41:38 +08:00
1 parent 7064063230
commit 238d86f502
7 files changed
+256 -5

No files matched your search

+1
View File
@@ -337,6 +337,7 @@ func registerRedeemCodeRoutes(admin *gin.RouterGroup, h *handler.Handlers) {
codes.GET("/stats", h.Admin.Redeem.GetStats)
codes.GET("/export", h.Admin.Redeem.Export)
codes.GET("/:id", h.Admin.Redeem.GetByID)
codes.POST("/create-and-redeem", h.Admin.Redeem.CreateAndRedeem)
codes.POST("/generate", h.Admin.Redeem.Generate)
codes.DELETE("/:id", h.Admin.Redeem.Delete)
codes.POST("/batch-delete", h.Admin.Redeem.BatchDelete)