2025-08-10 16:44:02 +08:00
|
|
|
import Request from "@/utils";
|
|
|
|
|
|
|
|
|
|
// 获取验证码
|
|
|
|
|
export const getCaptcha = (data: any) => {
|
|
|
|
|
return Request.post("/common/sms", data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 用户登录
|
|
|
|
|
export const login = (data: any) => {
|
|
|
|
|
return Request.post("/common/login", data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 微信分享签名
|
|
|
|
|
export const getWeChatSdkData = (data: any) => {
|
|
|
|
|
return Request.post("/wechat/share", data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 获取实时快讯
|
|
|
|
|
export const getNewsFast = (data: any) => {
|
|
|
|
|
return Request.post("/news/pageIndex", data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 检查是否有新的快讯
|
|
|
|
|
export const checkNews = (data: any) => {
|
|
|
|
|
return Request.post("/news/pageIndexCheck", data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 新闻/快讯,点赞功能
|
|
|
|
|
export const likeNews = (data: any) => {
|
|
|
|
|
return Request.post("/news/like", data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 获取栏目列表
|
|
|
|
|
export const getNewsColumn = (data: any) => {
|
|
|
|
|
return Request.post("/news/column", data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 获取标签列表
|
|
|
|
|
export const getNewsTag = (data: any) => {
|
|
|
|
|
return Request.post("/news/tag", data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 获取新闻列表
|
|
|
|
|
export const getNewsList = (data: any) => {
|
|
|
|
|
return Request.post("/news/newsList", data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 栏目解锁接口
|
|
|
|
|
export const unlockColumn = (data: any) => {
|
|
|
|
|
return Request.post("/user/unlock", data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 我订阅的栏目列表
|
|
|
|
|
export const getUnlockList = (data: any) => {
|
|
|
|
|
return Request.post("/user/unlockList", data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 全文搜索
|
|
|
|
|
export const searchNews = (data: any) => {
|
|
|
|
|
return Request.post("/news/search", data);
|
|
|
|
|
};
|
|
|
|
|
|
2025-09-04 16:22:13 +08:00
|
|
|
// 已发布列表
|
|
|
|
|
export const getReleaseList = (data: any) => {
|
|
|
|
|
return Request.post("/news/top_news_release_h5_d", data);
|
|
|
|
|
};
|
2025-11-05 16:39:19 +08:00
|
|
|
|
|
|
|
|
// 编辑精选接口
|
|
|
|
|
export const editTopNews = (data: any) => {
|
2025-11-06 19:15:30 +08:00
|
|
|
return Request.post("/news/list/published", data);
|
2025-11-05 16:39:19 +08:00
|
|
|
};
|
2025-11-06 20:09:37 +08:00
|
|
|
|
|
|
|
|
// 编辑精选接口
|
|
|
|
|
export const sendToken = (data: any) => {
|
2025-11-06 20:46:30 +08:00
|
|
|
return Request.post("/common/forward/financial", data);
|
2025-11-06 20:09:37 +08:00
|
|
|
};
|
2025-11-08 12:05:24 +08:00
|
|
|
|
|
|
|
|
// 退出登录
|
|
|
|
|
export const doLogout = (data: any) => {
|
|
|
|
|
console.log("🚀 ~ doLogout ~ data:", data);
|
|
|
|
|
return Request.post("/common/logout", data);
|
|
|
|
|
};
|
2025-11-20 09:24:35 +08:00
|
|
|
|
|
|
|
|
// 退出登录
|
|
|
|
|
export const getEtfIndexList = (data: any) => {
|
|
|
|
|
return Request.post("/news/etfIndexList", data);
|
|
|
|
|
};
|
2025-11-20 18:38:16 +08:00
|
|
|
|
|
|
|
|
// 获取ETF详情
|
|
|
|
|
export const fetchEtfDetail = (data: any) => {
|
|
|
|
|
return Request.post("/news/etfList", data);
|
|
|
|
|
};
|
2026-02-07 14:08:53 +08:00
|
|
|
|
|
|
|
|
// 海外先机
|
|
|
|
|
export const getForeignList = (data: any) => {
|
2026-02-09 17:45:52 +08:00
|
|
|
return Request.get("/news/exclusiveList", {params: data});
|
2026-02-07 14:08:53 +08:00
|
|
|
};
|
|
|
|
|
|
2026-02-07 17:45:12 +08:00
|
|
|
// 编辑精选
|
|
|
|
|
export const getRecommendList = (data: any) => {
|
2026-02-08 16:33:14 +08:00
|
|
|
return Request.get("/news/curatedList", { params: data });
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 宏观知微
|
|
|
|
|
export const getMacroList = (data: any) => {
|
|
|
|
|
return Request.get("/news/globalMacroList", { params: data });
|
|
|
|
|
};
|
|
|
|
|
|
2026-02-08 22:11:06 +08:00
|
|
|
// 我关注的行业
|
|
|
|
|
export const getMyIndustries = (data: any) => {
|
|
|
|
|
return Request.get("/user/industries", { params: data });
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 我关注的风口
|
|
|
|
|
export const getMyTags = () => {
|
|
|
|
|
return Request.get("/user/tags");
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 配置我关注的行业
|
|
|
|
|
export const updateMyIndustries = (data: any) => {
|
|
|
|
|
return Request.post("/user/industries", data);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 配置我关注的风口
|
|
|
|
|
export const updateMyTags = (data: any) => {
|
|
|
|
|
return Request.post("/user/tags", data);
|
2026-02-12 13:46:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 热门行业
|
|
|
|
|
export const getHotByTagIndustry = (data: any) => {
|
|
|
|
|
return Request.get(`/news/hot/industry?name=${data.name}`);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 概念标签
|
|
|
|
|
export const getHotByTag = (data: any) => {
|
|
|
|
|
return Request.get(`/news/hot/tag?name=${data.name}`);
|
2026-02-08 22:11:06 +08:00
|
|
|
};
|