|
@@ -24,21 +24,21 @@ import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
|
import com.yonge.cooleshow.common.page.PageInfo;
|
|
|
|
|
|
@RequestMapping("subject")
|
|
|
-@Api(tags = "科目服务")
|
|
|
+@Api(tags = "声部服务")
|
|
|
@RestController
|
|
|
public class SubjectController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private SubjectService subjectService;
|
|
|
|
|
|
- @ApiOperation(value = "根据科目编号查询科目")
|
|
|
+ @ApiOperation(value = "根据声部编号查询声部")
|
|
|
@GetMapping("/get/{id}")
|
|
|
@PreAuthorize("@pcs.hasPermissions('subject/get')")
|
|
|
- public HttpResponseResult<Subject> get(@ApiParam(value = "科目编号", required = true) @PathVariable("id") Long id) {
|
|
|
+ public HttpResponseResult<Subject> get(@ApiParam(value = "声部编号", required = true) @PathVariable("id") Long id) {
|
|
|
return succeed(subjectService.get(id));
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "分页查询科目列表")
|
|
|
+ @ApiOperation(value = "分页查询声部列表")
|
|
|
@GetMapping("/queryPage")
|
|
|
@PreAuthorize("@pcs.hasPermissions('subject/queryPage')")
|
|
|
public HttpResponseResult<PageInfo<Subject>> queryPage(SubjectQueryInfo queryInfo) {
|
|
@@ -55,14 +55,14 @@ public class SubjectController extends BaseController {
|
|
|
return succeed(pageInfo);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "分页查询科目树状列表")
|
|
|
+ @ApiOperation(value = "分页查询声部树状列表")
|
|
|
@GetMapping("/queryPageTree")
|
|
|
@PreAuthorize("@pcs.hasPermissions('subject/queryPageTree')")
|
|
|
public HttpResponseResult<PageInfo<Subject>> queryPageTree(SubjectQueryInfo queryInfo) {
|
|
|
return succeed(subjectService.queryPageTree(queryInfo));
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "修改、新增科目")
|
|
|
+ @ApiOperation(value = "修改、新增声部")
|
|
|
@PostMapping("/upset")
|
|
|
@PreAuthorize("@pcs.hasPermissions('subject/upset')")
|
|
|
public Object update(@RequestBody Subject subject) {
|
|
@@ -70,10 +70,10 @@ public class SubjectController extends BaseController {
|
|
|
return succeed();
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "删除指定科目")
|
|
|
+ @ApiOperation(value = "删除指定声部")
|
|
|
@PostMapping("/delete/{id}")
|
|
|
@PreAuthorize("@pcs.hasPermissions('subject/get')")
|
|
|
- public HttpResponseResult<Subject> delete(@ApiParam(value = "科目编号", required = true) @PathVariable("id") Long id) {
|
|
|
+ public HttpResponseResult<Subject> delete(@ApiParam(value = "声部编号", required = true) @PathVariable("id") Long id) {
|
|
|
subjectService.deleteById(id);
|
|
|
return succeed();
|
|
|
}
|