mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: user profile
This commit is contained in:
@@ -16,7 +16,7 @@ func CheckLogin() Response {
|
||||
|
||||
// User 用户序列化器
|
||||
type User struct {
|
||||
ID uint `json:"id"`
|
||||
ID string `json:"id"`
|
||||
Email string `json:"user_name"`
|
||||
Nickname string `json:"nickname"`
|
||||
Status int `json:"status"`
|
||||
@@ -67,7 +67,7 @@ type storage struct {
|
||||
func BuildUser(user model.User) User {
|
||||
tags, _ := model.GetTagsByUID(user.ID)
|
||||
return User{
|
||||
ID: user.ID,
|
||||
ID: hashid.HashID(user.ID, hashid.UserID),
|
||||
Email: user.Email,
|
||||
Nickname: user.Nick,
|
||||
Status: user.Status,
|
||||
|
||||
Reference in New Issue
Block a user