Browse Source

GetUserByToken方法增加返回内容

master v1.0.0
guzeng 1 year ago
parent
commit
f156f65b53
1 changed files with 18 additions and 17 deletions
  1. +18
    -17
      user.client.go

+ 18
- 17
user.client.go View File

@ -31,22 +31,24 @@ func GetUserByToken(dbname, token string, url ...string) (map[string]string, err
if res.GetUserId() != "" {
return map[string]string{
"UserId": res.GetUserId(),
"Username": res.GetUsername(),
"Nickname": res.GetNickname(),
"Mobile": res.GetMobile(),
"Email": res.GetEmail(),
"Status": res.GetStatus(),
"BusinessId": res.GetBusinessId(),
"StoreId": res.GetStoreId(),
"FansTo": res.GetFansTo(),
"IsVip": res.GetIsVip(),
"Usercode": res.GetUsercode(),
"GroupId": res.GetGroupId(),
"Type": res.GetType(),
"ThirdId": res.GetThirdId(),
"Platform": res.GetPlatform(),
"LockFans": res.GetLockFans(),
"UserId": res.GetUserId(),
"Username": res.GetUsername(),
"Nickname": res.GetNickname(),
"Mobile": res.GetMobile(),
"Email": res.GetEmail(),
"Status": res.GetStatus(),
"BusinessId": res.GetBusinessId(),
"StoreId": res.GetStoreId(),
"FansTo": res.GetFansTo(),
"IsVip": res.GetIsVip(),
"Usercode": res.GetUsercode(),
"GroupId": res.GetGroupId(),
"Type": res.GetType(),
"ThirdId": res.GetThirdId(),
"Platform": res.GetPlatform(),
"LockFans": res.GetLockFans(),
"CompanyId": res.GetCompanyId(),
"DepartmentId": res.GetDepartmentId(),
}, nil
}
@ -194,7 +196,6 @@ func GetById(site_id, dbname, user_id string, url ...string) (map[string]string,
return HandleUserRes(res)
}
/**
* 更新用户缓存
* 2021/11/23


Loading…
Cancel
Save