Compare commits

...

2 Commits

Author SHA1 Message Date
Diyu0904 bd4998b73d Merge remote-tracking branch 'origin/feature/admin' into feature/admin 2025-01-22 18:37:47 +08:00
yang 789cf9f3d9 修复模型点赞bug 2025-01-22 18:37:08 +08:00
2 changed files with 4 additions and 3 deletions

View File

@ -43,8 +43,8 @@ public class ModelCommentController {
@ApiOperation(value = "模型点赞/取消") @ApiOperation(value = "模型点赞/取消")
@RepeatSubmit @RepeatSubmit
@GetMapping("/modelLike/{modelId}") @GetMapping("/modelLike/{modelId}")
public AjaxResult like(@PathVariable Long imageId) { public AjaxResult like(@PathVariable Long modelId) {
modelLikeService.like(imageId); modelLikeService.like(modelId);
return AjaxResult.success(); return AjaxResult.success();
} }

View File

@ -14,6 +14,7 @@
update_by, update_by,
update_time, update_time,
del_flag, del_flag,
remark where user_id = #{userId} and model_id = #{modelId} remark
from model_like where user_id = #{userId} and model_id = #{modelId}
</select> </select>
</mapper> </mapper>