小么熊🐻 1 anno fa
parent
commit
1c1084d128

+ 0 - 17
nbjk-admin/src/main/java/com/miaxis/app/controller/feed/FeedBackController.java

@@ -33,7 +33,6 @@ public class FeedBackController extends BaseController{
     /**
      * 查询意见反馈列表
      */
-    @PreAuthorize("@ss.hasPermi('feed:back:list')")
     @GetMapping("/list")
     @ApiOperation("查询意见反馈列表")
         @ApiImplicitParams({
@@ -46,23 +45,10 @@ public class FeedBackController extends BaseController{
         return toResponsePageInfo(list);
     }
     
-    /**
-     * 导出意见反馈列表
-     */
-    @PreAuthorize("@ss.hasPermi('feed:back:export')")
-    @Log(title = "意见反馈", businessType = BusinessTypeEnum.EXPORT)
-    @GetMapping("/export")
-    @ApiOperation("导出意见反馈列表Excel")
-    public Response<String> export(@ModelAttribute FeedBack feedBack){
-        List<FeedBack> list = feedBackService.selectFeedBackList(feedBack);
-        ExcelUtil<FeedBack> util = new ExcelUtil<FeedBack>(FeedBack.class);
-        return util.exportExcel(list, "back");
-    }
 
     /**
      * 获取意见反馈详细信息
      */
-    @PreAuthorize("@ss.hasPermi('feed:back:query')")
     @GetMapping(value = "/{id}")
     @ApiOperation("获取意见反馈详细信息")
     public Response<FeedBack> getInfo(
@@ -75,7 +61,6 @@ public class FeedBackController extends BaseController{
     /**
      * 新增意见反馈
      */
-    @PreAuthorize("@ss.hasPermi('feed:back:add')")
     @Log(title = "意见反馈", businessType = BusinessTypeEnum.INSERT)
     @PostMapping
     @ApiOperation("新增意见反馈")
@@ -86,7 +71,6 @@ public class FeedBackController extends BaseController{
     /**
      * 修改意见反馈
      */
-    @PreAuthorize("@ss.hasPermi('feed:back:edit')")
     @Log(title = "意见反馈", businessType = BusinessTypeEnum.UPDATE)
     @PutMapping
     @ApiOperation("修改意见反馈")
@@ -97,7 +81,6 @@ public class FeedBackController extends BaseController{
     /**
      * 删除意见反馈
      */
-    @PreAuthorize("@ss.hasPermi('feed:back:remove')")
     @Log(title = "意见反馈", businessType = BusinessTypeEnum.DELETE)
 	@DeleteMapping("/{ids}")
     @ApiOperation("删除意见反馈")

+ 0 - 31
nbjk-admin/src/main/java/com/miaxis/app/controller/file/FileInfoController.java

@@ -51,37 +51,6 @@ public class FileInfoController extends BaseController{
     
 
 
-    /**
-     * 获取上传文件详细信息
-     */
-    @GetMapping(value = "/{id}")
-    @ApiOperation("获取上传文件详细信息")
-    public Response<FileInfo> getInfo(
-            @ApiParam(name = "id", value = "上传文件参数", required = true)
-            @PathVariable("id") Long id
-    ){
-        return Response.success(fileInfoService.getById(id));
-    }
-
-    /**
-     * 新增上传文件
-     */
-    @Log(title = "上传文件", businessType = BusinessTypeEnum.INSERT)
-    @PostMapping
-    @ApiOperation("新增上传文件")
-    public Response<Integer> add(@RequestBody FileInfo fileInfo){
-        return toResponse(fileInfoService.save(fileInfo) ? 1 : 0);
-    }
-
-    /**
-     * 修改上传文件
-     */
-    @Log(title = "上传文件", businessType = BusinessTypeEnum.UPDATE)
-    @PutMapping
-    @ApiOperation("修改上传文件")
-    public Response<Integer> edit(@RequestBody FileInfo fileInfo){
-        return toResponse(fileInfoService.updateById(fileInfo) ? 1 : 0);
-    }
 
     /**
      * 删除上传文件