|
@@ -13,6 +13,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -50,6 +51,15 @@ public class SysMusicScoreCategoriesController extends BaseController {
|
|
|
return succeed(sysMusicScoreCategoriesService.queryCategoriesTreeList(tenantConfig.getTeachingMaterialId(), queryInfo.getEnable()));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "树状列表")
|
|
|
+ @GetMapping("/queryTree1")
|
|
|
+ public Object queryTree1(MusicScoreQueryInfo queryInfo) {
|
|
|
+ queryInfo.setEnable(true);
|
|
|
+ return succeed(sysMusicScoreCategoriesService.queryTree(queryInfo));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "获取分类详情")
|
|
|
@GetMapping("/get")
|
|
|
public Object get(Integer id) {
|