测试 email更新

This commit is contained in:
eson 2023-11-24 10:17:10 +08:00
parent 0e4fe65d27
commit f97d4d9c6d
4 changed files with 2 additions and 8 deletions

View File

@ -8,7 +8,6 @@ import (
"fmt"
"fusenapi/utils/fssql"
"fusenapi/utils/handlers"
"log"
"gorm.io/gorm"
)
@ -101,7 +100,7 @@ func (m *FsUserInfoModel) GetProfile(ctx context.Context, pkey string, userId in
if !ok {
return m.getDefaultProfile(ctx, tname)
}
log.Println(v, guestId, userId)
var info map[string]any
err = json.Unmarshal([]byte(v), &info)
if err != nil {

View File

@ -1,7 +1,6 @@
package handler
import (
"log"
"net/http"
"reflect"
@ -21,8 +20,6 @@ func UserGetProfileHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return
}
log.Println(userinfo)
// 创建一个业务逻辑层实例
l := logic.NewUserGetProfileLogic(r.Context(), svcCtx)

View File

@ -3,7 +3,6 @@ package logic
import (
"fusenapi/utils/auth"
"fusenapi/utils/basic"
"log"
"context"
@ -35,7 +34,6 @@ func (l *UserGetProfileLogic) UserGetProfile(req *types.QueryProfileRequest, use
// 返回值必须调用Set重新返回, resp可以空指针调用 resp.SetStatus(basic.CodeOK, data)
// userinfo 传入值时, 一定不为null
log.Println(userinfo)
profileBase, err := l.svcCtx.AllModels.FsUserInfo.GetProfile(l.ctx, req.TopKey, userinfo.UserId, userinfo.GuestId)
if err != nil {
return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error())

View File

@ -112,7 +112,7 @@ type (
FirstName *string `json:"first_name,optional"` // 首名
LastName *string `json:"last_name,optional"` // 后名
// UserName *string `json:"user_name,optional"` // 用户名
Email *string `json:"email,optional"` // email
Email *string `json:"email,optional,omitempty"` // email
Mobile *string `json:"mobile,optional"` // 电话
Resetaurant *string `json:"resetaurant,optional"` // 不知道干什么
Company *string `json:"company,optional"` // 公司