feat: 个人中心发布
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user