feat: 删除植物和删除养护事项

This commit is contained in:
Blizzard
2026-02-07 14:40:22 +08:00
parent 87c31f119f
commit e4de80eecc
6 changed files with 174 additions and 21 deletions
+1
View File
@@ -24,6 +24,7 @@ type MyPlant struct {
ImgList []*system.Oss `json:"imgList" form:"imgList" gorm:"many2many:my_plant_oss;comment:图片列表"`
CarePlans []*CarePlan `json:"carePlans" form:"carePlans" gorm:"foreignKey:PlantId;comment:养护计划"`
CareTasks []*CareTask `json:"careTasks" form:"careTasks" gorm:"foreignKey:PlantId;comment:养护任务"`
CareRecords []*CareRecord `json:"careRecords" form:"careRecords" gorm:"foreignKey:PlantId;comment:养护记录"`
}