feat: 快捷养护接口

This commit is contained in:
Blizzard
2026-04-27 10:43:42 +08:00
parent 3aae619af5
commit c5aa1c6f2c
4 changed files with 101 additions and 0 deletions
+8
View File
@@ -63,3 +63,11 @@ type CreateGrowthRecord struct {
Desc string `json:"desc"`
Content string `json:"content"`
}
// QuickCare 快捷养护记录(无需预设任务)
type QuickCare struct {
PlantId string `json:"plantId" binding:"required"`
Name string `json:"name" binding:"required"` // 养护名称(如 浇水、施肥、喷雾...)
Icon string `json:"icon"` // icon JSON(和 CarePlan 的 icon 格式一致)
Remark string `json:"remark"`
}