完善兑换码界面

This commit is contained in:
CaIon
2023-11-10 00:10:41 +08:00
parent f569ca270e
commit 44d9eb9d05
8 changed files with 490 additions and 368 deletions

View File

@@ -39,7 +39,8 @@ func GetAllTokens(c *gin.Context) {
func SearchTokens(c *gin.Context) {
userId := c.GetInt("id")
keyword := c.Query("keyword")
tokens, err := model.SearchUserTokens(userId, keyword)
token := c.Query("token")
tokens, err := model.SearchUserTokens(userId, keyword, token)
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,