config
This commit is contained in:
@@ -49,7 +49,7 @@ public class TeamController {
|
||||
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataTypeClass=String.class),
|
||||
@ApiImplicitParam(name = "id", value = "id", paramType = "query", dataTypeClass = Long.class)
|
||||
})
|
||||
//@PreAuthorize("@ex.hasAuthority('code:team:page')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:team:page')")
|
||||
public Result<PageData<TeamDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
PageData<TeamDTO> page = teamService.page(params);
|
||||
|
||||
@@ -58,7 +58,7 @@ public class TeamController {
|
||||
|
||||
@GetMapping("{id}")
|
||||
@ApiOperation("信息")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:team:info')")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:team:info')")
|
||||
public Result<TeamDTO> get(@PathVariable("id") Long id){
|
||||
TeamDTO data = teamService.get(id);
|
||||
|
||||
@@ -67,8 +67,8 @@ public class TeamController {
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation("保存")
|
||||
//@LogOperation("保存")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:team:save')")
|
||||
@LogOperation("保存")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:team:save')")
|
||||
public Result save(@RequestBody TeamDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
|
||||
@@ -80,8 +80,8 @@ public class TeamController {
|
||||
|
||||
@PutMapping
|
||||
@ApiOperation("修改")
|
||||
//@LogOperation("修改")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:team:update')")
|
||||
@LogOperation("修改")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:team:update')")
|
||||
public Result update(@RequestBody TeamDTO dto){
|
||||
//效验数据
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
|
||||
@@ -93,8 +93,8 @@ public class TeamController {
|
||||
|
||||
@DeleteMapping
|
||||
@ApiOperation("删除")
|
||||
//@LogOperation("删除")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:team:delete')")
|
||||
@LogOperation("删除")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:team:delete')")
|
||||
public Result delete(@RequestBody Long[] ids){
|
||||
//效验数据
|
||||
AssertUtils.isArrayEmpty(ids, "id");
|
||||
@@ -106,8 +106,8 @@ public class TeamController {
|
||||
|
||||
@GetMapping("export")
|
||||
@ApiOperation("导出")
|
||||
//@LogOperation("导出")
|
||||
//@PreAuthorize("@ex.hasAuthority('code:team:export')")
|
||||
@LogOperation("导出")
|
||||
@PreAuthorize("@ex.hasAuthority('basic:team:export')")
|
||||
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<TeamDTO> list = teamService.list(params);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user