update model

This commit is contained in:
landaiqing
2024-09-13 13:13:47 +08:00
parent cd1ce8f578
commit ef5d7daa10
17 changed files with 51 additions and 185 deletions

View File

@@ -0,0 +1,3 @@
package comment_api
type CommentAPI struct{}

View File

@@ -0,0 +1 @@
package comment_api

View File

@@ -122,7 +122,6 @@ func HandelUserLogin(userId string) (bool, map[string]interface{}) {
"data": data,
"success": true,
}
global.DB.Set("user_id", userId)
return true, responseData
}

View File

@@ -344,7 +344,6 @@ func handelUserLogin(user model.ScaAuthUser, autoLogin bool, c *gin.Context) {
result.FailWithMessage(ginI18n.MustGetMessage(c, "LoginFailed"), c)
return
}
global.DB.Set("user_id", user.UID)
result.OkWithData(data, c)
}