🐛 fix bug
This commit is contained in:
@@ -21,9 +21,12 @@ type GetUserList struct {
|
||||
|
||||
// ChangeUserInfo 修改普通用户信息
|
||||
type ChangeUserInfo struct {
|
||||
Nickname string `json:"nickname" form:"nickname"` // 昵称
|
||||
Avatar string `json:"avatar" form:"avatar"` // 头像
|
||||
Phone string `json:"phone" form:"phone"` // 手机号
|
||||
Nickname string `json:"nickname" form:"nickname"` // 昵称
|
||||
Avatar string `json:"avatar" form:"avatar"` // 头像
|
||||
Phone string `json:"phone" form:"phone"` // 手机号
|
||||
IsSurgery int `json:"isSurgery" gorm:"default:0;comment:是否已经手术 0未手术 1已手术"`
|
||||
HospitalId int `json:"hospitalId" gorm:"comment:手术医院"`
|
||||
SurgeryTime string `json:"surgery_time" gorm:"comment:手术时间"`
|
||||
}
|
||||
|
||||
// ChangePassword 修改密码
|
||||
|
@@ -34,7 +34,7 @@ type UserVO struct {
|
||||
IsSurgery int `json:"isSurgery" gorm:"default:0;comment:是否已经手术 0未手术 1已手术"`
|
||||
IsInfo int `json:"isInfo" gorm:"default:0;comment:是否已经填写信息 0未填写 1已填写"`
|
||||
HospitalId int `json:"hospital_id" gorm:"comment:手术医院"`
|
||||
SurgeryTime time.Time `json:"surgery_time" gorm:"comment:手术时间"`
|
||||
SurgeryTime string `json:"surgery_time" gorm:"comment:手术时间"`
|
||||
Todos []common.UserTodo `json:"todos" gorm:"comment:用户待办事项"`
|
||||
Notes []common.Notes `json:"notes" gorm:"comment:用户须知"`
|
||||
}
|
||||
|
@@ -17,7 +17,7 @@ type User struct {
|
||||
IsSurgery int `json:"isSurgery" gorm:"default:0;comment:是否已经手术 0未手术 1已手术"`
|
||||
IsInfo int `json:"isInfo" gorm:"default:0;comment:是否已经填写信息 0未填写 1已填写"`
|
||||
HospitalId int `json:"hospital_id" gorm:"comment:手术医院"`
|
||||
SurgeryTime time.Time `json:"surgery_time" gorm:"comment:手术时间"`
|
||||
SurgeryTime string `json:"surgery_time" gorm:"comment:手术时间"`
|
||||
LastLoginAt *time.Time `json:"last_login_at" gorm:"comment:'最后登录时间'"`
|
||||
}
|
||||
|
||||
|
@@ -4,3 +4,10 @@ type GetUserNotes struct {
|
||||
UserId string `json:"userId" form:"userId" binding:"required"`
|
||||
IsFinish string `json:"isFinish" form:"isFinish" binding:"required"`
|
||||
}
|
||||
|
||||
type TodoTask struct {
|
||||
OpenId string `json:"openId" form:"openId"`
|
||||
Context string `json:"context" form:"context"`
|
||||
Frequency string `json:"frequency" form:"frequency"`
|
||||
RemindTime string `json:"remindTime" form:"remindTime"`
|
||||
}
|
||||
|
@@ -5,7 +5,11 @@ import "miniapp/global"
|
||||
type Todos struct {
|
||||
// 任务列表
|
||||
global.GVA_MODEL
|
||||
Content string `json:"content" form:"content" gorm:"comment:任务内容;"`
|
||||
Content string `json:"content" form:"content" gorm:"comment:任务内容;"`
|
||||
RemindTime string `json:"remindTime" form:"remindTime" gorm:"comment:提醒时间;"`
|
||||
RemindPeriod int `json:"remindPeriod" form:"remindPeriod" gorm:"comment:0术前,1术后;"`
|
||||
Frequency string `json:"frequency" form:"frequency" gorm:"comment:用药频率;"`
|
||||
RemindDay string `json:"remindDay" form:"remindDay" gorm:"comment:提醒日期;"`
|
||||
}
|
||||
|
||||
func (t Todos) TableName() string {
|
||||
|
@@ -4,9 +4,13 @@ import "miniapp/global"
|
||||
|
||||
type UserTodo struct {
|
||||
global.GVA_MODEL
|
||||
UserId int `json:"userId" form:"userId" gorm:"comment:用户id;"`
|
||||
Content string `json:"content" form:"content" gorm:"comment:任务内容;"`
|
||||
IsFinish int `json:"isFinish" form:"isFinish" gorm:"comment:是否完成;"`
|
||||
UserId int `json:"userId" form:"userId" gorm:"comment:用户id;"`
|
||||
Content string `json:"content" form:"content" gorm:"comment:任务内容;"`
|
||||
IsFinish int `json:"isFinish" form:"isFinish" gorm:"comment:是否完成;"`
|
||||
RemindTime string `json:"remindTime" form:"remindTime" gorm:"comment:提醒时间;"`
|
||||
RemindPeriod int `json:"remindPeriod" form:"remindPeriod" gorm:"comment:术前,术后;"`
|
||||
Frequency string `json:"frequency" form:"frequency" gorm:"comment:用药频率;"`
|
||||
RemindDay string `json:"remindDay" form:"remindDay" gorm:"comment:提醒日期;"`
|
||||
}
|
||||
|
||||
func (u UserTodo) TableName() string {
|
||||
|
@@ -15,7 +15,7 @@ type SysOperationRecord struct {
|
||||
Path string `json:"path" form:"path" gorm:"column:path;comment:请求路径"` // 请求路径
|
||||
Status int `json:"status" form:"status" gorm:"column:status;comment:请求状态"` // 请求状态
|
||||
Latency time.Duration `json:"latency" form:"latency" gorm:"column:latency;comment:延迟" swaggertype:"string"` // 延迟
|
||||
Agent string `json:"agent" form:"agent" gorm:"column:agent;comment:代理"` // 代理
|
||||
Agent string `json:"agent" form:"agent" gorm:"column:agent; type:longtext; comment:代理"` // 代理
|
||||
ErrorMessage string `json:"error_message" form:"error_message" gorm:"column:error_message;comment:错误信息"` // 错误信息
|
||||
Body string `json:"body" form:"body" gorm:"type:text;column:body;comment:请求Body"` // 请求Body
|
||||
Resp string `json:"resp" form:"resp" gorm:"type:text;column:resp;comment:响应Body"` // 响应Body
|
||||
|
Reference in New Issue
Block a user