|
@@ -5,6 +5,7 @@ import com.dayaedu.cbs.openfeign.client.MusicFeignClientService;
|
|
|
import com.dayaedu.cbs.openfeign.wrapper.music.CbsSubjectWrapper;
|
|
|
import com.dayaedu.cbs.openfeign.wrapper.musicInstrument.CbsMusicalInstrumentWrapper;
|
|
|
import com.microsvc.toolkit.common.webportal.exception.BizException;
|
|
|
+import com.yonge.cooleshow.biz.dal.dto.PageUtil;
|
|
|
import com.yonge.cooleshow.biz.dal.entity.Subject;
|
|
|
import com.yonge.cooleshow.biz.dal.queryInfo.SubjectQueryInfo;
|
|
|
import com.yonge.cooleshow.biz.dal.service.SubjectService;
|
|
@@ -179,4 +180,19 @@ public class SubjectController extends BaseController {
|
|
|
throw BizException.from("内容平台服务异常");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "内容平台对应的声部数据")
|
|
|
+ @PostMapping("/cbsSubject/list")
|
|
|
+ public HttpResponseResult<PageInfo<CbsSubjectWrapper.Subject>> subjectPage(){
|
|
|
+ CbsSubjectWrapper.SubjectQuery subjectQuery = new CbsSubjectWrapper.SubjectQuery();
|
|
|
+ subjectQuery.setPage(1);
|
|
|
+ subjectQuery.setRows(-1);
|
|
|
+
|
|
|
+ try {
|
|
|
+ return succeed(PageUtil.pageInfo(musicFeignClientService.subjectPage(subjectQuery).feignData()));
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("内容平台对应的声部数据查询失败", e);
|
|
|
+ throw BizException.from("内容平台服务异常");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|