소스 검색

酷乐秀曲目来源改为内容平台

zouxuan 1 년 전
부모
커밋
f65cd9785f
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      cooleshow-app/src/main/java/com/yonge/cooleshow/teacher/controller/MusicalInstrumentController.java

+ 5 - 1
cooleshow-app/src/main/java/com/yonge/cooleshow/teacher/controller/MusicalInstrumentController.java

@@ -27,7 +27,11 @@ public class MusicalInstrumentController {
 
     @ApiOperation(value = "乐器列表")
     @PostMapping("/list")
-    public R<List<InstrumentWrapper.Instrument>> list(@RequestBody InstrumentWrapper.InstrumentQuery query) {
+    public R<List<InstrumentWrapper.Instrument>> list() {
+        InstrumentWrapper.InstrumentQuery query = new InstrumentWrapper.InstrumentQuery();
+        query.setEnableFlag(true);
+        query.setPage(1);
+        query.setRows(1000);
         List<InstrumentWrapper.Instrument> instruments = instrumentService.getList(query);
         return R.from(instruments);
 	}