feat: 添加和删除养护事项
This commit is contained in:
@@ -5,6 +5,15 @@ type CarePlan struct {
|
||||
Name string `json:"name"` // 农事名称
|
||||
Period int `json:"period"` // 周期
|
||||
}
|
||||
type CreateCarePlan struct {
|
||||
PlantId string `json:"plantId" binding:"required"`
|
||||
Icon string `json:"icon"` // icon信息
|
||||
Name string `json:"name"` // 农事名称
|
||||
Period int `json:"period"` // 周期
|
||||
}
|
||||
type AddPlans struct {
|
||||
CarePlan []CreateCarePlan `json:"carePlan"`
|
||||
}
|
||||
|
||||
// CreateMyPlant 创建植物
|
||||
type CreateMyPlant struct {
|
||||
|
||||
Reference in New Issue
Block a user