修改给企业添加权限
This commit is contained in:
@@ -45,7 +45,7 @@ public class CompanyController extends BaseController
|
|||||||
* 查询公司列表
|
* 查询公司列表
|
||||||
*/
|
*/
|
||||||
@ApiOperation("查询公司列表")
|
@ApiOperation("查询公司列表")
|
||||||
// @PreAuthorize("@ss.hasPermi('cms:company:list')")
|
@PreAuthorize("@ss.hasPermi('cms:company:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(CompanySearch company)
|
public TableDataInfo list(CompanySearch company)
|
||||||
{
|
{
|
||||||
@@ -66,7 +66,7 @@ public class CompanyController extends BaseController
|
|||||||
* 导出公司列表
|
* 导出公司列表
|
||||||
*/
|
*/
|
||||||
@ApiOperation("导出公司列表")
|
@ApiOperation("导出公司列表")
|
||||||
// @PreAuthorize("@ss.hasPermi('app:company:export')")
|
@PreAuthorize("@ss.hasPermi('cms:company:export')")
|
||||||
@Log(title = "公司", businessType = BusinessType.EXPORT)
|
@Log(title = "公司", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, CompanySearch company)
|
public void export(HttpServletResponse response, CompanySearch company)
|
||||||
@@ -80,7 +80,7 @@ public class CompanyController extends BaseController
|
|||||||
* 获取公司详细信息
|
* 获取公司详细信息
|
||||||
*/
|
*/
|
||||||
@ApiOperation("获取公司详细信息")
|
@ApiOperation("获取公司详细信息")
|
||||||
// @PreAuthorize("@ss.hasPermi('app:company:query')")
|
@PreAuthorize("@ss.hasPermi('cms:company:query')")
|
||||||
@GetMapping(value = "/{companyId}")
|
@GetMapping(value = "/{companyId}")
|
||||||
public AjaxResult getInfo(@PathVariable("companyId") Long companyId)
|
public AjaxResult getInfo(@PathVariable("companyId") Long companyId)
|
||||||
{
|
{
|
||||||
@@ -91,7 +91,7 @@ public class CompanyController extends BaseController
|
|||||||
* 新增公司
|
* 新增公司
|
||||||
*/
|
*/
|
||||||
@ApiOperation("新增公司")
|
@ApiOperation("新增公司")
|
||||||
// @PreAuthorize("@ss.hasPermi('app:company:add')")
|
@PreAuthorize("@ss.hasPermi('cms:company: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)
|
||||||
@@ -110,7 +110,7 @@ public class CompanyController extends BaseController
|
|||||||
* 修改公司
|
* 修改公司
|
||||||
*/
|
*/
|
||||||
@ApiOperation("修改公司")
|
@ApiOperation("修改公司")
|
||||||
// @PreAuthorize("@ss.hasPermi('app:company:edit')")
|
@PreAuthorize("@ss.hasPermi('cms:company: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)
|
||||||
@@ -129,7 +129,7 @@ public class CompanyController extends BaseController
|
|||||||
* 删除公司
|
* 删除公司
|
||||||
*/
|
*/
|
||||||
@ApiOperation("删除公司")
|
@ApiOperation("删除公司")
|
||||||
// @PreAuthorize("@ss.hasPermi('app:company:remove')")
|
@PreAuthorize("@ss.hasPermi('cms:company:remove')")
|
||||||
@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)
|
||||||
@@ -138,7 +138,7 @@ public class CompanyController extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("企业资质审核列表")
|
@ApiOperation("企业资质审核列表")
|
||||||
@PreAuthorize("@ss.hasPermi('app:company:approval:list')")
|
@PreAuthorize("@ss.hasPermi('cms:company:approval:list')")
|
||||||
@GetMapping("/approval/list")
|
@GetMapping("/approval/list")
|
||||||
public TableDataInfo approvalList(Company company)
|
public TableDataInfo approvalList(Company company)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user