fix(redemption): add status filtering and cleanup action

This commit is contained in:
CaIon
2026-07-04 16:15:47 +08:00
parent 86021d8ed2
commit 12603a7765
10 changed files with 272 additions and 130 deletions
+2 -1
View File
@@ -29,8 +29,9 @@ func GetAllRedemptions(c *gin.Context) {
func SearchRedemptions(c *gin.Context) {
keyword := c.Query("keyword")
status := c.Query("status")
pageInfo := common.GetPageQuery(c)
redemptions, total, err := model.SearchRedemptions(keyword, pageInfo.GetStartIdx(), pageInfo.GetPageSize())
redemptions, total, err := model.SearchRedemptions(keyword, status, pageInfo.GetStartIdx(), pageInfo.GetPageSize())
if err != nil {
common.ApiError(c, err)
return