修复:代码仓库的权限
This commit is contained in:
@@ -29,8 +29,7 @@ public class CompanyGitController extends BaseController {
|
||||
@Resource
|
||||
private CompanyGitService companyGitService;
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:company:list')")
|
||||
@OperationLog
|
||||
@PreAuthorize("hasAuthority('sys:companyGit:list')")
|
||||
@ApiOperation("分页查询代码仓库")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<CompanyGit>> page(CompanyGitParam param) {
|
||||
@@ -38,8 +37,7 @@ public class CompanyGitController extends BaseController {
|
||||
return success(companyGitService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:company:list')")
|
||||
@OperationLog
|
||||
@PreAuthorize("hasAuthority('sys:companyGit:list')")
|
||||
@ApiOperation("查询全部代码仓库")
|
||||
@GetMapping()
|
||||
public ApiResult<List<CompanyGit>> list(CompanyGitParam param) {
|
||||
@@ -47,8 +45,7 @@ public class CompanyGitController extends BaseController {
|
||||
return success(companyGitService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:company:list')")
|
||||
@OperationLog
|
||||
@PreAuthorize("hasAuthority('sys:companyGit:list')")
|
||||
@ApiOperation("根据id查询代码仓库")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<CompanyGit> get(@PathVariable("id") Integer id) {
|
||||
@@ -56,7 +53,7 @@ public class CompanyGitController extends BaseController {
|
||||
return success(companyGitService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:company:save')")
|
||||
@PreAuthorize("hasAuthority('sys:companyGit:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("添加代码仓库")
|
||||
@PostMapping()
|
||||
@@ -67,7 +64,7 @@ public class CompanyGitController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:company:update')")
|
||||
@PreAuthorize("hasAuthority('sys:companyGit:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("修改代码仓库")
|
||||
@PutMapping()
|
||||
@@ -78,7 +75,7 @@ public class CompanyGitController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:company:remove')")
|
||||
@PreAuthorize("hasAuthority('sys:companyGit:remove')")
|
||||
@OperationLog
|
||||
@ApiOperation("删除代码仓库")
|
||||
@DeleteMapping("/{id}")
|
||||
@@ -89,7 +86,7 @@ public class CompanyGitController extends BaseController {
|
||||
return fail("删除失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:company:save')")
|
||||
@PreAuthorize("hasAuthority('sys:companyGit:save')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量添加代码仓库")
|
||||
@PostMapping("/batch")
|
||||
@@ -100,7 +97,7 @@ public class CompanyGitController extends BaseController {
|
||||
return fail("添加失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:company:update')")
|
||||
@PreAuthorize("hasAuthority('sys:companyGit:update')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量修改代码仓库")
|
||||
@PutMapping("/batch")
|
||||
@@ -111,7 +108,7 @@ public class CompanyGitController extends BaseController {
|
||||
return fail("修改失败");
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('sys:company:remove')")
|
||||
@PreAuthorize("hasAuthority('sys:companyGit:remove')")
|
||||
@OperationLog
|
||||
@ApiOperation("批量删除代码仓库")
|
||||
@DeleteMapping("/batch")
|
||||
|
||||
@@ -3,7 +3,7 @@ server:
|
||||
port: 8000
|
||||
# socketIo
|
||||
socketio:
|
||||
port: 9091
|
||||
port: 9191
|
||||
# 多环境配置
|
||||
spring:
|
||||
profiles:
|
||||
|
||||
Reference in New Issue
Block a user