门户首页中同步教材目录接口优化
This commit is contained in:
parent
88f21a5d9d
commit
965ef50b86
|
@ -61,6 +61,7 @@ public class PortalController extends BaseController {
|
|||
public TableDataInfo<SysHomeShowVo> showList(SysHomeShowBo bo, PageQuery pageQuery) {
|
||||
return sysHomeShowService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取学校名师详细信息
|
||||
*
|
||||
|
@ -81,6 +82,7 @@ public class PortalController extends BaseController {
|
|||
public TableDataInfo<SysHomeTrendVo> trendList(SysHomeTrendBo bo, PageQuery pageQuery) {
|
||||
return sysHomeTrendService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取学校动态详细信息
|
||||
*
|
||||
|
@ -108,7 +110,7 @@ public class PortalController extends BaseController {
|
|||
*/
|
||||
@SaIgnore
|
||||
@GetMapping("/resource/catalog/list")
|
||||
public R<List<SysCatalogResourceVo>> list(SysCatalogResourceBo bo) {
|
||||
public R<List<SysCatalogResourceVo>> resourceCatalogList(SysCatalogResourceBo bo) {
|
||||
List<SysCatalogResourceVo> list = resourceService.queryList(bo);
|
||||
return R.ok(list);
|
||||
}
|
||||
|
@ -118,7 +120,7 @@ public class PortalController extends BaseController {
|
|||
*/
|
||||
@SaIgnore
|
||||
@GetMapping("/resource/list")
|
||||
public TableDataInfo<SysOssResourceVo> list(SysOssResourceBo bo, PageQuery pageQuery) {
|
||||
public TableDataInfo<SysOssResourceVo> resourceList(SysOssResourceBo bo, PageQuery pageQuery) {
|
||||
return sysOssResourceService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
|
||||
|
@ -126,18 +128,28 @@ public class PortalController extends BaseController {
|
|||
* 查询目录-同步教材
|
||||
*/
|
||||
@SaIgnore
|
||||
@GetMapping("/textbook/catalog/list")
|
||||
public R<List<Tree<Long>>> list(SysCatalogTextbookBo bo) {
|
||||
@GetMapping("/textbook/catalog/tree")
|
||||
public R<List<Tree<Long>>> treeList(SysCatalogTextbookBo bo) {
|
||||
List<Tree<Long>> trees = textbookService.buildTreeSelect(bo);
|
||||
return R.ok(trees);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询目录-同步教材
|
||||
*/
|
||||
@SaIgnore
|
||||
@GetMapping("/textbook/catalog/list")
|
||||
public R<List<SysCatalogTextbookVo>> textbookCatalogList(SysCatalogTextbookBo bo) {
|
||||
List<SysCatalogTextbookVo> list = textbookService.queryList(bo);
|
||||
return R.ok(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询同步教材列表
|
||||
*/
|
||||
@SaIgnore
|
||||
@GetMapping("/textbook/list")
|
||||
public TableDataInfo<SysOssTextbookVo> list(SysOssTextbookBo bo, PageQuery pageQuery) {
|
||||
public TableDataInfo<SysOssTextbookVo> textbookList(SysOssTextbookBo bo, PageQuery pageQuery) {
|
||||
return sysOssTextbookService.queryPageList(bo, pageQuery);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue