info get profile
This commit is contained in:
@@ -37,6 +37,8 @@ func (l *UpdateProfileBaseLogic) UpdateProfileBase(req *types.ProfileRequest, us
|
||||
return resp.SetStatus(basic.CodeUnAuth)
|
||||
}
|
||||
|
||||
req.ProfileBase.Email = nil
|
||||
|
||||
err := l.svcCtx.AllModels.FsUserInfo.MergeMetadata(userinfo.UserId, req)
|
||||
if err != nil {
|
||||
logx.Error(err) // 日志记录错误
|
||||
|
||||
@@ -37,10 +37,12 @@ type ProfileRequest struct {
|
||||
}
|
||||
|
||||
type ProfileBase struct {
|
||||
FirstName *string `json:"first_name,optional,omitempty"` // 首名
|
||||
LastName *string `json:"last_name,optional,omitempty"` // 后名
|
||||
Mobile *string `json:"mobile,optional,omitempty"` // 电话
|
||||
Company *string `json:"company,optional,omitempty"` // 公司
|
||||
FirstName *string `json:"first_name,optional,omitempty"` // 首名
|
||||
LastName *string `json:"last_name,optional,omitempty"` // 后名
|
||||
Email *string `json:"email"` // email
|
||||
Mobile *string `json:"mobile,optional,omitempty"` // 电话
|
||||
Resetaurant *string `json:"resetaurant,optional,omitempty"` // 不知道干什么
|
||||
Company *string `json:"company,optional,omitempty"` // 公司
|
||||
}
|
||||
|
||||
type SubscriptionStatus struct {
|
||||
|
||||
Reference in New Issue
Block a user