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