|
|
@@ -5,7 +5,9 @@ import com.yc.ship.framework.common.pojo.PageResult;
|
|
|
import com.yc.ship.framework.common.util.object.BeanUtils;
|
|
|
import com.yc.ship.module.miniapplet.controller.app.content.vo.AppContentPageReqVO;
|
|
|
import com.yc.ship.module.miniapplet.controller.app.content.vo.AppContentRespVO;
|
|
|
+import com.yc.ship.module.miniapplet.dal.dataobject.catalogue.CatalogueDO;
|
|
|
import com.yc.ship.module.miniapplet.dal.dataobject.content.ContentDO;
|
|
|
+import com.yc.ship.module.miniapplet.service.catalogue.CatalogueService;
|
|
|
import com.yc.ship.module.miniapplet.service.content.ContentService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
@@ -33,6 +35,9 @@ public class AppContentController {
|
|
|
@Resource
|
|
|
private ContentService contentService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private CatalogueService catalogueService;
|
|
|
+
|
|
|
|
|
|
@PostMapping("/page")
|
|
|
@Operation(summary = "获取内容分页列表")
|
|
|
@@ -56,6 +61,13 @@ public class AppContentController {
|
|
|
return success(BeanUtils.toBean(content, AppContentRespVO.class));
|
|
|
}
|
|
|
|
|
|
+ // 栏目详情
|
|
|
+ @GetMapping("getCatalogueByCode")
|
|
|
+ @Operation(summary = "获取栏目详情")
|
|
|
+ public CommonResult<CatalogueDO> getCatalogueByCode(@RequestParam("code") String code) {
|
|
|
+ return success(catalogueService.getByCode(code));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|