| | |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.AesUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.article.entity.ArticleCommentEntity; |
| | | import org.springblade.modules.article.service.IArticleCommentService; |
| | |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "新增", notes = "传入articleComment") |
| | | public R save(@Valid @RequestBody ArticleCommentEntity articleComment) { |
| | | articleComment.setUserId(AuthUtil.getUserId()); |
| | | return R.status(articleCommentService.save(articleComment)); |
| | | } |
| | | |
| | |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "新增或修改", notes = "传入articleComment") |
| | | public R submit(@Valid @RequestBody ArticleCommentEntity articleComment) { |
| | | articleComment.setUserId(AuthUtil.getUserId()); |
| | | return R.status(articleCommentService.saveOrUpdate(articleComment)); |
| | | } |
| | | |