feat: 添加和删除养护事项

This commit is contained in:
Blizzard
2026-02-10 14:57:53 +08:00
parent 556ab6baff
commit 01f8306be2
6 changed files with 172 additions and 4 deletions
+9
View File
@@ -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 {