refactor: user cache logic

This commit is contained in:
CalciumIon committed 2024-12-29 16:50:26 +08:00
1 parent 837804927d
commit 966cdc1f7f
20 files changed
+548 -225

No files matched your search

+1 -1
View File
@@ -166,7 +166,7 @@ func ListModels(c *gin.Context) {
}
} else {
userId := c.GetInt("id")
userGroup, err := model.GetUserGroup(userId)
userGroup, err := model.GetUserGroup(userId, true)
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,