修改接口权限问题

This commit is contained in:
sh
2026-04-29 19:23:16 +08:00
parent d56eb06b3e
commit 19cf1d122a
3 changed files with 8 additions and 8 deletions

View File

@@ -65,7 +65,7 @@ public class CompanyController extends BaseController
* 导出公司列表 * 导出公司列表
*/ */
@ApiOperation("导出公司列表") @ApiOperation("导出公司列表")
@PreAuthorize("@ss.hasPermi('app:company:export')") @PreAuthorize("@ss.hasPermi('company:List:export')")
@Log(title = "公司", businessType = BusinessType.EXPORT) @Log(title = "公司", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, Company company) public void export(HttpServletResponse response, Company company)
@@ -79,7 +79,7 @@ public class CompanyController extends BaseController
* 获取公司详细信息 * 获取公司详细信息
*/ */
@ApiOperation("获取公司详细信息") @ApiOperation("获取公司详细信息")
@PreAuthorize("@ss.hasPermi('app:company:query')") @PreAuthorize("@ss.hasPermi('company:List:detail')")
@GetMapping(value = "/{companyId}") @GetMapping(value = "/{companyId}")
public AjaxResult getInfo(@PathVariable("companyId") Long companyId) public AjaxResult getInfo(@PathVariable("companyId") Long companyId)
{ {
@@ -90,7 +90,7 @@ public class CompanyController extends BaseController
* 新增公司 * 新增公司
*/ */
@ApiOperation("新增公司") @ApiOperation("新增公司")
@PreAuthorize("@ss.hasPermi('app:company:add')") @PreAuthorize("@ss.hasPermi('company:List:add')")
@Log(title = "公司", businessType = BusinessType.INSERT) @Log(title = "公司", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody Company company) public AjaxResult add(@RequestBody Company company)
@@ -105,7 +105,7 @@ public class CompanyController extends BaseController
* 修改公司 * 修改公司
*/ */
@ApiOperation("修改公司") @ApiOperation("修改公司")
@PreAuthorize("@ss.hasPermi('app:company:edit')") @PreAuthorize("@ss.hasPermi('company:List:edit')")
@Log(title = "公司", businessType = BusinessType.UPDATE) @Log(title = "公司", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody Company company) public AjaxResult edit(@RequestBody Company company)
@@ -123,7 +123,7 @@ public class CompanyController extends BaseController
* 删除公司 * 删除公司
*/ */
@ApiOperation("删除公司") @ApiOperation("删除公司")
@PreAuthorize("@ss.hasPermi('app:company:remove')") @PreAuthorize("@ss.hasPermi('company:List:delete')")
@Log(title = "公司", businessType = BusinessType.DELETE) @Log(title = "公司", businessType = BusinessType.DELETE)
@DeleteMapping("/{companyIds}") @DeleteMapping("/{companyIds}")
public AjaxResult remove(@PathVariable Long[] companyIds) public AjaxResult remove(@PathVariable Long[] companyIds)
@@ -144,7 +144,7 @@ public class CompanyController extends BaseController
return getDataTable(list); return getDataTable(list);
} }
@ApiOperation("企业资质修改") @ApiOperation("企业资质修改")
// @PreAuthorize("@ss.hasPermi('app:company:approval:edit')") @PreAuthorize("@ss.hasPermi('app:company:approval:edit')")
@GetMapping("/approval/edit") @GetMapping("/approval/edit")
public AjaxResult approvalEdit(Company company) public AjaxResult approvalEdit(Company company)
{ {

View File

@@ -53,7 +53,7 @@ public class IndustryController extends BaseController
return getDataTable(list); return getDataTable(list);
} }
@ApiOperation("行业树结构") @ApiOperation("行业树结构")
@PreAuthorize("@ss.hasPermi('cms:industry:list')") @PreAuthorize("@ss.hasPermi('cms:industry:treeselect')")
@GetMapping("/treeselect") @GetMapping("/treeselect")
public AjaxResult treeselect(Industry industry) public AjaxResult treeselect(Industry industry)
{ {

View File

@@ -42,7 +42,7 @@ public class SubwayLineController extends BaseController
*/ */
@ApiOperation("查询地铁线路列表") @ApiOperation("查询地铁线路列表")
@GetMapping("/list") @GetMapping("/list")
@PreAuthorize("@ss.hasPermi('system:line:list')") @PreAuthorize("@ss.hasPermi('area:subway:subway')")
@BussinessLog(title = "查询地铁线路列表", businessType = BusinessType.CLEAN) @BussinessLog(title = "查询地铁线路列表", businessType = BusinessType.CLEAN)
public TableDataInfo list(SubwayLine subwayLine) public TableDataInfo list(SubwayLine subwayLine)
{ {