Skip to content

Let's use AI to Earn!

feat: 新增获取专题的时间分类

牛文政be7ad0bc29df
diff --git a/src/api/platform.ts b/src/api/platform.ts
index 22ef984d..590213f1 100644
--- a/src/api/platform.ts
+++ b/src/api/platform.ts
@@ -196,6 +196,13 @@ export const platformApi = {
});
},
+ // 获取专题的时间类型
+ getTopicTimeTypes(msgType: string) {
+ return hotHttp.get<string[]>(`/topics/timeType/${msgType}`, {
+ isToken: false,
+ });
+ },
+
// 获取热门专题列表
getAllTopics(params: {
msgType?: string; // 项目类型