20 lines
824 B
Go
20 lines
824 B
Go
package plant
|
|
|
|
import (
|
|
"sundynix-go/global"
|
|
"time"
|
|
)
|
|
|
|
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"`
|
|
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:已跳过
|
|
}
|