✨ update model
This commit is contained in:
3
api/comment_api/comment.go
Normal file
3
api/comment_api/comment.go
Normal file
@@ -0,0 +1,3 @@
|
||||
package comment_api
|
||||
|
||||
type CommentAPI struct{}
|
1
api/comment_api/comment_api.go
Normal file
1
api/comment_api/comment_api.go
Normal file
@@ -0,0 +1 @@
|
||||
package comment_api
|
@@ -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
|
||||
}
|
||||
|
||||
|
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user