This commit is contained in:
eson 2023-09-01 14:24:17 +08:00
parent d9ea10f541
commit 28366d263b

View File

@ -42,9 +42,9 @@ var ModuleTable map[string]string = map[string]string{
} }
type InfoType struct { type InfoType struct {
Id int64 `json:"id"` Id int64 `gorm:"id"`
Module string `json:"module"` Module string `gorm:"module"`
QueryData map[string]any `json:"querydata"` QueryData []byte `gorm:"querydata"`
// CreateAt time.Time `json:"ctime"` // CreateAt time.Time `json:"ctime"`
} }
@ -144,7 +144,7 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r
err = json.Unmarshal([]byte(info.QueryData), &querydata) err = json.Unmarshal([]byte(info.QueryData), &querydata)
if err != nil { if err != nil {
logx.Error(err, info) logx.Error(err, info)
return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error()+":"+info.QueryData) return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error()+":"+string(info.QueryData))
} }
for k, v := range querydata { for k, v := range querydata {