|
@@ -1,72 +0,0 @@
|
|
|
-package com.diagbot.web;
|
|
|
-
|
|
|
-
|
|
|
-import com.diagbot.annotation.SysLogger;
|
|
|
-import com.diagbot.dto.RespDTO;
|
|
|
-import com.diagbot.entity.TemplateClassify;
|
|
|
-import com.diagbot.entity.TemplateFolder;
|
|
|
-import com.diagbot.facade.TemplateClassifyFacade;
|
|
|
-import com.diagbot.facade.TemplateFolderFacade;
|
|
|
-import com.diagbot.vo.TemplateClassifyDelVO;
|
|
|
-import com.diagbot.vo.TemplateClassifyListVO;
|
|
|
-import com.diagbot.vo.TemplateClassifyVO;
|
|
|
-import com.diagbot.vo.TemplateFolderDelVO;
|
|
|
-import com.diagbot.vo.TemplateFolderListVO;
|
|
|
-import com.diagbot.vo.TemplateFolderVO;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-
|
|
|
-import org.springframework.stereotype.Controller;
|
|
|
-
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
-/**
|
|
|
- * <p>
|
|
|
- * 模板分类表 前端控制器
|
|
|
- * </p>
|
|
|
- *
|
|
|
- * @author zhoutg
|
|
|
- * @since 2020-01-09
|
|
|
- */
|
|
|
-@Controller
|
|
|
-@RequestMapping("/templateClassify")
|
|
|
-public class TemplateClassifyController {
|
|
|
-
|
|
|
- @Autowired
|
|
|
- TemplateClassifyFacade templateClassifyFacade;
|
|
|
-
|
|
|
- @ApiOperation(value = "分类新增或更新[by:zhoutg]",
|
|
|
- notes = "")
|
|
|
- @PostMapping("/saveOrUpdate")
|
|
|
- @SysLogger("saveOrUpdate")
|
|
|
- @Transactional
|
|
|
- public RespDTO<Boolean> saveOrUpdate(@RequestBody TemplateClassifyVO templateClassifyVO) {
|
|
|
- templateClassifyFacade.saveOrUpdate(templateClassifyVO);
|
|
|
- return RespDTO.onSuc(true);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- @ApiOperation(value = "文件夹删除[by:zhoutg]",
|
|
|
- notes = "folderId: 文件夹id<br>")
|
|
|
- @PostMapping("/detele")
|
|
|
- @SysLogger("detele")
|
|
|
- @Transactional
|
|
|
- public RespDTO<Boolean> detele(@RequestBody TemplateClassifyDelVO templateClassifyDelVO) {
|
|
|
- templateClassifyFacade.delete(templateClassifyDelVO);
|
|
|
- return RespDTO.onSuc(true);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- @ApiOperation(value = "文件夹列表[by:zhoutg]",
|
|
|
- notes = "")
|
|
|
- @PostMapping("/list")
|
|
|
- @SysLogger("list")
|
|
|
- public RespDTO<List<TemplateClassify>> list(@RequestBody TemplateClassifyListVO templateClassifyListVO) {
|
|
|
- List<TemplateClassify> data = templateClassifyFacade.list(templateClassifyListVO);
|
|
|
- return RespDTO.onSuc(data);
|
|
|
- }
|
|
|
-}
|