feat: 个人中心发布
This commit is contained in:
@@ -7,12 +7,13 @@ import (
|
||||
|
||||
type CareTask struct {
|
||||
global.BaseModel
|
||||
PlantId string `json:"plantId" gorm:"index"`
|
||||
PlanId string `json:"planId" gorm:"index"`
|
||||
UserId string `json:"userId" gorm:"index"`
|
||||
Name string `json:"name"`
|
||||
Icon string `json:"icon" gorm:"type:text"`
|
||||
DueDate time.Time `json:"dueDate"` // 应做时间(用于判断逾期)
|
||||
CompletedAt *time.Time `json:"completedAt" gorm:"column:completed_at"` // 完成时间(为nil表示未完成)
|
||||
Status int `json:"status"` // 1:待执行 2:已完成 3:已跳过
|
||||
PlantId string `json:"plantId" gorm:"index"`
|
||||
PlanId string `json:"planId" gorm:"index"`
|
||||
UserId string `json:"userId" gorm:"index"`
|
||||
Name string `json:"name"`
|
||||
Icon string `json:"icon" gorm:"type:text"`
|
||||
TargetAction string `gorm:"type:varchar(32);index;column:target_action;comment:触发动作代码" json:"targetAction"`
|
||||
DueDate time.Time `json:"dueDate"` // 应做时间(用于判断逾期)
|
||||
CompletedAt *time.Time `json:"completedAt" gorm:"column:completed_at"` // 完成时间(为nil表示未完成)
|
||||
Status int `json:"status"` // 1:待执行 2:已完成 3:已跳过
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user