Compare commits
2 Commits
09dfd88a12
...
bd4998b73d
Author | SHA1 | Date |
---|---|---|
|
bd4998b73d | |
|
789cf9f3d9 |
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue