feat: 个人中心发布
This commit is contained in:
@@ -10,11 +10,12 @@ import (
|
||||
// CarePlan 养护计划
|
||||
type CarePlan struct {
|
||||
global.BaseModel
|
||||
UserId string `json:"userId" form:"userId" gorm:"size:50;column:user_id;comment:用户id"`
|
||||
PlantId string `json:"plantId" form:"plantId" gorm:"size:50;column:plant_id;comment:植物id"`
|
||||
Icon string `json:"icon" form:"icon" gorm:"type:text;"`
|
||||
Name string `json:"name"`
|
||||
Period int `json:"period" form:"period" gorm:"column:period;comment:周期"`
|
||||
UserId string `json:"userId" form:"userId" gorm:"size:50;column:user_id;comment:用户id"`
|
||||
PlantId string `json:"plantId" form:"plantId" gorm:"index;size:50;column:plant_id;comment:植物id"`
|
||||
Icon string `json:"icon" form:"icon" gorm:"type:text;"`
|
||||
Name string `json:"name"`
|
||||
Period int `json:"period" form:"period" gorm:"column:period;comment:周期"`
|
||||
TargetAction string `gorm:"type:varchar(32);index;not null;column:target_action;comment:触发动作代码" json:"targetAction"`
|
||||
}
|
||||
|
||||
// AfterUpdate 钩子函数 修改计划后重新生成任务
|
||||
|
||||
Reference in New Issue
Block a user