chore: remove wrapper of user
This commit is contained in:
parent
f102b130db
commit
69d1287254
@ -63,5 +63,5 @@ func Login(c *gin.Context) {
|
|||||||
func CurrentUser(c *gin.Context) {
|
func CurrentUser(c *gin.Context) {
|
||||||
user := c.MustGet("user").(*model.User)
|
user := c.MustGet("user").(*model.User)
|
||||||
user.Password = ""
|
user.Password = ""
|
||||||
common.SuccessResp(c, gin.H{"user": user})
|
common.SuccessResp(c, user)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user