🐛 fix bug
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user