remove deprecated mock admin endpoints

This commit is contained in:
2026-04-20 13:05:44 +08:00
parent ed642e8769
commit b3f112005e
13 changed files with 68 additions and 198 deletions

View File

@@ -276,24 +276,6 @@ func (h *RedeemHandler) Expire(c *gin.Context) {
response.Success(c, dto.RedeemCodeFromServiceAdmin(code))
}
// GetStats handles getting redeem code statistics
// GET /api/v1/admin/redeem-codes/stats
func (h *RedeemHandler) GetStats(c *gin.Context) {
// Return mock data for now
response.Success(c, gin.H{
"total_codes": 0,
"active_codes": 0,
"used_codes": 0,
"expired_codes": 0,
"total_value_distributed": 0.0,
"by_type": gin.H{
"balance": 0,
"concurrency": 0,
"trial": 0,
},
})
}
// Export handles exporting redeem codes to CSV
// GET /api/v1/admin/redeem-codes/export
func (h *RedeemHandler) Export(c *gin.Context) {