|
@@ -37,7 +37,7 @@ public class TFileController extends BaseController {
|
|
|
/**
|
|
|
* 查询附件列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('file:file:list')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('file:file:list')")
|
|
|
@GetMapping("/list")
|
|
|
public AjaxResult list(TFile tFile) {
|
|
|
if (StringUtils.isEmpty(tFile.getLinkName())) {
|
|
@@ -51,7 +51,7 @@ public class TFileController extends BaseController {
|
|
|
/**
|
|
|
* 获取附件详细信息
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('file:file:query')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('file:file:query')")
|
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
|
|
return AjaxResult.success(tFileService.selectTFileById(id));
|
|
@@ -60,7 +60,7 @@ public class TFileController extends BaseController {
|
|
|
/**
|
|
|
* 新增附件
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('file:file:add')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('file:file:add')")
|
|
|
@Log(title = "附件", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody TFile tFile) {
|
|
@@ -70,7 +70,7 @@ public class TFileController extends BaseController {
|
|
|
/**
|
|
|
* 修改附件
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('file:file:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('file:file:edit')")
|
|
|
@Log(title = "附件", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody TFile tFile) {
|
|
@@ -80,7 +80,7 @@ public class TFileController extends BaseController {
|
|
|
/**
|
|
|
* 删除附件
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('file:file:remove')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('file:file:remove')")
|
|
|
@Log(title = "附件", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|