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