文件接口权限
This commit is contained in:
parent
0d3fe514b8
commit
2cfcff21ec
|
|
@ -44,7 +44,7 @@ public class BmFileInfoController extends BaseController
|
|||
列表
|
||||
*/
|
||||
@ApiOperation(value = "查询附件列表")
|
||||
@RequiresPermissions("basic:info:list")
|
||||
@RequiresPermissions("basic:file:manage")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(BmFileInfo bmFileInfo)
|
||||
{
|
||||
|
|
@ -59,7 +59,7 @@ public class BmFileInfoController extends BaseController
|
|||
*/
|
||||
@ApiOperation(value = "导出附件列表")
|
||||
@PreventRepeatSubmit
|
||||
@RequiresPermissions("basic:info:export")
|
||||
@RequiresPermissions("basic:file:manage")
|
||||
@SysLog(title = "附件", businessType = OperaType.EXPORT, logType = 1,module = "仓储管理->导出附件")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, BmFileInfo bmFileInfo)
|
||||
|
|
@ -74,7 +74,7 @@ public class BmFileInfoController extends BaseController
|
|||
详细信息
|
||||
*/
|
||||
@ApiOperation(value = "获取附件详细信息")
|
||||
@RequiresPermissions("basic:info:query")
|
||||
@RequiresPermissions("basic:file:manage")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
|
|
@ -87,7 +87,7 @@ public class BmFileInfoController extends BaseController
|
|||
*/
|
||||
@ApiOperation(value = "新增附件")
|
||||
@PreventRepeatSubmit
|
||||
@RequiresPermissions("basic:info:add")
|
||||
@RequiresPermissions("basic:file:manage")
|
||||
@SysLog(title = "附件", businessType = OperaType.INSERT, logType = 1,module = "仓储管理->新增附件")
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody BmFileInfo bmFileInfo)
|
||||
|
|
@ -101,7 +101,7 @@ public class BmFileInfoController extends BaseController
|
|||
*/
|
||||
@ApiOperation(value = "修改附件")
|
||||
@PreventRepeatSubmit
|
||||
@RequiresPermissions("basic:info:edit")
|
||||
@RequiresPermissions("basic:file:manage")
|
||||
@SysLog(title = "附件", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->修改附件")
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody BmFileInfo bmFileInfo)
|
||||
|
|
@ -115,7 +115,7 @@ public class BmFileInfoController extends BaseController
|
|||
*/
|
||||
@ApiOperation(value = "删除附件")
|
||||
@PreventRepeatSubmit
|
||||
@RequiresPermissions("basic:info:remove")
|
||||
@RequiresPermissions("basic:file:manage")
|
||||
@SysLog(title = "附件", businessType = OperaType.DELETE, logType = 1,module = "仓储管理->删除附件")
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
|
|
|
|||
Loading…
Reference in New Issue