|
@@ -2,13 +2,16 @@ package com.gqy.web.controller.document;
|
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
+import com.gqy.common.core.domain.AjaxResult;
|
|
|
import com.gqy.common.core.domain.AjaxResultCQY;
|
|
|
import com.gqy.common.utils.StringUtils;
|
|
|
import com.gqy.document.domain.TemplateCategory;
|
|
|
import com.gqy.document.domain.vo.PageResult;
|
|
|
import com.gqy.document.service.ITemplateCategoryService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -25,6 +28,18 @@ public class TemplateCategoryController {
|
|
|
@Autowired
|
|
|
private ITemplateCategoryService templateCategoryService;
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 创建模板分类
|
|
|
+ */
|
|
|
+// @PreAuthorize("@ss.hasPermi('system:category:add')")
|
|
|
+ @PostMapping("/create")
|
|
|
+ public AjaxResultCQY create(@RequestBody TemplateCategory templateCategory) {
|
|
|
+ return templateCategoryService.create(templateCategory);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 模板树查询
|
|
|
* @return
|