inleft
2022-03-02 e343e508ce5f2d355ad82c05a319981c66d1324b
snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/controller/BlogArticleController.java
@@ -40,10 +40,10 @@
import java.util.List;
/**
 * blog文章主体控制器
 * blog文章控制器
 *
 * @author inleft
 * @date 2022-01-22 16:53:06
 * @date 2022-02-09 18:20:22
 */
@RestController
public class BlogArticleController {
@@ -52,82 +52,82 @@
    private BlogArticleService blogArticleService;
    /**
     * 查询blog文章主体
     * 查询blog文章
     *
     * @author inleft
     * @date 2022-01-22 16:53:06
     * @date 2022-02-09 18:20:22
     */
    @Permission
    @GetMapping("/blogArticle/page")
    @BusinessLog(title = "blog文章主体_查询", opType = LogAnnotionOpTypeEnum.QUERY)
    @BusinessLog(title = "blog文章_查询", opType = LogAnnotionOpTypeEnum.QUERY)
    public ResponseData page(BlogArticleParam blogArticleParam) {
        return new SuccessResponseData(blogArticleService.page(blogArticleParam));
    }
    /**
     * 添加blog文章主体
     * 添加blog文章
     *
     * @author inleft
     * @date 2022-01-22 16:53:06
     * @date 2022-02-09 18:20:22
     */
    @Permission
    @PostMapping("/blogArticle/add")
    @BusinessLog(title = "blog文章主体_增加", opType = LogAnnotionOpTypeEnum.ADD)
    @BusinessLog(title = "blog文章_增加", opType = LogAnnotionOpTypeEnum.ADD)
    public ResponseData add(@RequestBody @Validated(BlogArticleParam.add.class) BlogArticleParam blogArticleParam) {
            blogArticleService.add(blogArticleParam);
        return new SuccessResponseData();
    }
    /**
     * 删除blog文章主体,可批量删除
     * 删除blog文章,可批量删除
     *
     * @author inleft
     * @date 2022-01-22 16:53:06
     * @date 2022-02-09 18:20:22
     */
    @Permission
    @PostMapping("/blogArticle/delete")
    @BusinessLog(title = "blog文章主体_删除", opType = LogAnnotionOpTypeEnum.DELETE)
    @BusinessLog(title = "blog文章_删除", opType = LogAnnotionOpTypeEnum.DELETE)
    public ResponseData delete(@RequestBody @Validated(BlogArticleParam.delete.class) List<BlogArticleParam> blogArticleParamList) {
            blogArticleService.delete(blogArticleParamList);
        return new SuccessResponseData();
    }
    /**
     * 编辑blog文章主体
     * 编辑blog文章
     *
     * @author inleft
     * @date 2022-01-22 16:53:06
     * @date 2022-02-09 18:20:22
     */
    @Permission
    @PostMapping("/blogArticle/edit")
    @BusinessLog(title = "blog文章主体_编辑", opType = LogAnnotionOpTypeEnum.EDIT)
    @BusinessLog(title = "blog文章_编辑", opType = LogAnnotionOpTypeEnum.EDIT)
    public ResponseData edit(@RequestBody @Validated(BlogArticleParam.edit.class) BlogArticleParam blogArticleParam) {
            blogArticleService.edit(blogArticleParam);
        return new SuccessResponseData();
    }
    /**
     * 查看blog文章主体
     * 查看blog文章
     *
     * @author inleft
     * @date 2022-01-22 16:53:06
     * @date 2022-02-09 18:20:22
     */
    @Permission
    @GetMapping("/blogArticle/detail")
    @BusinessLog(title = "blog文章主体_查看", opType = LogAnnotionOpTypeEnum.DETAIL)
    @BusinessLog(title = "blog文章_查看", opType = LogAnnotionOpTypeEnum.DETAIL)
    public ResponseData detail(@Validated(BlogArticleParam.detail.class) BlogArticleParam blogArticleParam) {
        return new SuccessResponseData(blogArticleService.detail(blogArticleParam));
    }
    /**
     * blog文章主体列表
     * blog文章列表
     *
     * @author inleft
     * @date 2022-01-22 16:53:06
     * @date 2022-02-09 18:20:22
     */
    @Permission
    @GetMapping("/blogArticle/list")
    @BusinessLog(title = "blog文章主体_列表", opType = LogAnnotionOpTypeEnum.QUERY)
    @BusinessLog(title = "blog文章_列表", opType = LogAnnotionOpTypeEnum.QUERY)
    public ResponseData list(BlogArticleParam blogArticleParam) {
        return new SuccessResponseData(blogArticleService.list(blogArticleParam));
    }
@@ -136,11 +136,11 @@
     * 导出系统用户
     *
     * @author inleft
     * @date 2022-01-22 16:53:06
     * @date 2022-02-09 18:20:22
     */
    @Permission
    @GetMapping("/blogArticle/export")
    @BusinessLog(title = "blog文章主体_导出", opType = LogAnnotionOpTypeEnum.EXPORT)
    @BusinessLog(title = "blog文章_导出", opType = LogAnnotionOpTypeEnum.EXPORT)
    public void export(BlogArticleParam blogArticleParam) {
        blogArticleService.export(blogArticleParam);
    }