feat: 龙里小程序第一次上传
This commit is contained in:
commit
f23d598328
59 files changed
+11482
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import request from "../base/request";
|
||||
|
||||
/**
|
||||
* 内容(板块 / 目录 / 条目 / 素材)接口
|
||||
* 字段口径见 需求说明 §2 / §5 / §6
|
||||
*/
|
||||
|
||||
/** 获取全部板块(4 个:票根经济 / 旅居服务 / 全域美食 / 龙里特产) */
|
||||
export const fetchSections = () => request.get("/longli/content/sections");
|
||||
|
||||
/** 获取板块详情(含分组与条目,已过滤 enabled=false 与空分组) */
|
||||
export const fetchSection = (sectionKey) => request.get("/longli/content/section", { key: sectionKey });
|
||||
|
||||
/** 获取条目详情 */
|
||||
export const fetchItem = (collection, id) => request.get("/longli/content/item", { collection, id });
|
||||
|
||||
/** 获取同类型推荐(排除自身) */
|
||||
export const fetchRelatedItems = (params) => request.get("/longli/content/related", params);
|
||||
|
||||
/** 首页精选推荐(一期为运营固定位,二期由后端下发) */
|
||||
export const fetchFeaturedItems = () => request.get("/longli/content/featured");
|
||||
|
||||
/** 素材(导览图等) */
|
||||
export const fetchAssets = (params = {}) => request.get("/longli/content/assets", params);
|
||||
Reference in new issue
Block a user