|
@@ -37,7 +37,7 @@ public class DegreeNewsController extends BaseController {
|
|
|
private DegreeNewsService degreeNewsService;
|
|
|
|
|
|
@ApiOperation(value = "详情", notes = "考级资讯表-根据详情ID查询单条, 传入id")
|
|
|
- @PreAuthorize("@pcs.hasPermissions(degreeNews'/detail')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('degreeNews/detail')")
|
|
|
@GetMapping("/detail/{id}")
|
|
|
public HttpResponseResult<DegreeNews> detail(@PathVariable("id") Long id) {
|
|
|
|
|
@@ -47,7 +47,7 @@ public class DegreeNewsController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查询分页", notes = "考级资讯表- 传入 DegreeNewsWrapper.DegreeNewsQuery")
|
|
|
- @PreAuthorize("@pcs.hasPermissions(degreeNews'/page')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('degreeNews/page')")
|
|
|
@PostMapping("/page")
|
|
|
public HttpResponseResult<PageInfo<DegreeNews>> page(@RequestBody DegreeNewsWrapper.DegreeNewsQuery query) {
|
|
|
|
|
@@ -57,7 +57,7 @@ public class DegreeNewsController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "新增", notes = "考级资讯表- 传入 DegreeNewsWrapper.DegreeNews")
|
|
|
- @PreAuthorize("@pcs.hasPermissions(degreeNews'/save')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('degreeNews/save')")
|
|
|
@PostMapping("/save")
|
|
|
public HttpResponseResult<JSONObject> add(@Validated @RequestBody DegreeNews degreeNews) {
|
|
|
|
|
@@ -68,7 +68,7 @@ public class DegreeNewsController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "修改", notes = "考级资讯表- 传入 DegreeNewsWrapper.DegreeNews")
|
|
|
- @PreAuthorize("@pcs.hasPermissions(degreeNews'/update')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('degreeNews/update')")
|
|
|
@PostMapping("/update")
|
|
|
public HttpResponseResult<JSONObject> update(@Validated @RequestBody DegreeNews degreeNews) {
|
|
|
|
|
@@ -79,7 +79,7 @@ public class DegreeNewsController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "删除", notes = "考级资讯表- 传入id")
|
|
|
- @PreAuthorize("@pcs.hasPermissions(degreeNews'/remove')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('degreeNews/remove')")
|
|
|
@PostMapping("/remove")
|
|
|
public HttpResponseResult<Boolean> remove(@RequestParam Long id) {
|
|
|
|