合并之前缺少部分

This commit is contained in:
muzi
2025-06-17 11:18:39 +08:00
parent a72487fe56
commit 384be13f46
32 changed files with 2394 additions and 220 deletions

View File

@ -29,7 +29,6 @@ export const fetchindustryTerms = (params: any) => {
return Http.get('/v1/industry-terms/list', params);
};
// 导出一个函数fetchKeywordTrendsList用于获取行业话题列表
export const fetchKeywordTrendsList = (params: any) => {
// 使用Http.get方法发送GET请求获取行业话题列表
@ -47,21 +46,24 @@ export const fetchNewKeywordList = (params: any) => {
return Http.get('/v1/industry-new-keywords/list', params);
};
export const fetchNewKeywordDetail = (params: any) => {
// 使用Http.get方法发送GET请求获取行业话题列表
return Http.get('/v1/industry-new-keywords/' + params, {});
};
fetchIndustryTopicDetail;
// 导出一个函数fetchUserPainPointsList用于获取用户痛点列表
export const fetchUserPainPointsList = (params: any) => {
// 使用Http.get方法发送GET请求获取行业话题列表
return Http.get('/v1/user-pain-points/list', params);
};
// 导出一个函数fetchUserPainPointsDetail用于获取用户痛点详情
export const fetchUserPainPointsDetail = (params: any) => {
// 使用Http.get方法发送GET请求获取行业话题列表
return Http.get('/v1/user-pain-points/' + params, {});
};
// 导出一个函数fetchFocusBrandsList用于获取行业话题列表
export const fetchFocusBrandsList = (params: any) => {
// 使用Http.get方法发送GET请求获取行业话题列表

48
src/api/all/login.ts Normal file
View File

@ -0,0 +1,48 @@
import Http from '@/api';
// 导出一个函数,用于获取登录验证码
export const fetchLoginCaptCha = (params = {}) => {
return Http.post('/v1/sms/login-captcha', params);
};
// 导出一个函数,用于获取验证码
export const fetchAuthorizationsCaptcha = (params = {}) => {
// 使用Http.post方法发送POST请求请求地址为'/v1/authorizations/captcha'请求参数为params
return Http.post('/v1/authorizations/captcha', params);
};
// 导出一个函数,用于获取授权信息
export const fetchAuthorizations = (params = {}) => {
// 使用Http.put方法向服务器发送PUT请求获取授权信息
return Http.put('/v1/authorizations', params);
};
// 导出一个名为fetchLogOut的函数用于注销用户
export const fetchLogOut = (params = {}) => {
// 使用Http.put方法向'/v1/authorizations'接口发送put请求参数为params
return Http.put('/v1/authorizations', params);
};
// 导出一个名为fetchProfileInfo的函数用于获取用户信息
export const fetchProfileInfo = (params = {}) => {
// 使用Http.put方法向/v1/me接口发送put请求并将params作为参数传递
return Http.put('/v1/me', params);
};
// 导出一个函数,用于获取编辑手机号的验证码
export const fetchEditPhoneCaptcha = (params = {}) => {
// 使用Http.put方法向服务器发送PUT请求获取编辑手机号的验证码
return Http.put('/v1/sms/update-mobile-captcha', params);
};
export const fetchBindPhone = (params = {}) => {
return Http.put('/v1/me/mobile', params);
};