feat: 个人中心发布

This commit is contained in:
Blizzard
2026-02-14 11:38:59 +08:00
parent f1d9f63296
commit 4820323381
35 changed files with 691 additions and 148 deletions
+2 -2
View File
@@ -151,13 +151,13 @@ func (a *MyPlantApi) CompleteTask(c *gin.Context) {
return
}
userId := auth.GetUserId(c)
err = plantService.CompleteTask(req, userId)
res, err := plantService.CompleteTask(req, userId)
if err != nil {
global.Logger.Error("完成任务失败", zap.Error(err))
response.FailWithMsg("完成任务失败", c)
return
}
response.OkWithMsg("完成任务成功", c)
response.OkWithData(res, c)
}
// DeletePlants