refactor: 1.修正api auth 2.帖子话题业务

This commit is contained in:
Blizzard
2026-02-07 15:52:54 +08:00
parent e4de80eecc
commit 9adad90490
17 changed files with 314 additions and 35 deletions
-1
View File
@@ -128,7 +128,6 @@ func (s *MyPlantService) UpdatePlant(req plantReq.UpdateMyPlant) error {
}
//2.修改计划
if len(req.CarePlans) > 0 {
//删除已经存在的计划 生成新的计划
for _, plan := range req.CarePlans {
err = tx.Model(&plant.CarePlan{}).Where("id = ?", plan.Id).Updates(map[string]interface{}{
"icon": plan.Icon,