Forráskód Böngészése

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

zouxuan 1 éve
szülő
commit
f65cd9785f

+ 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);
 	}