12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import http from '@/utils/http';
- // export function getUserInfo() {
- // return http.get('/user/info');
- // }
- // export function login(data: { username: string; password: string }) {
- // return http.post('/auth/login', data);
- // }
- interface AnalysisKeyword {
- productName: string;
- locationName: string;
- }
- interface AnalysisRival {
- competitorWebsite: string;
- locationName: string;
- }
- interface GenerateRecord {
- phone: string;
- companyName: string;
- verifyCode: string;
- }
- interface SavePdf {
- phone: string;
- id: string;
- pdfUrl: string;
- }
- export const analysisKeyword = (payload: AnalysisKeyword) =>
- http.post('/analysis/keyword', payload);
- //推荐
- export const analysisSuggestions = (payload: AnalysisKeyword) =>
- http.post('/analysis/suggestions', payload);
- // 竞品
- export const analysisRival = (payload: AnalysisRival) => http.post('/analysis/rival', payload);
- // 定性分析接口
- export const analysisQualitative = (payload: string) =>
- http.get(`/analysis/qualitative?keyword=${payload}`);
- // 获取验证码
- export const verificationCode = (phone: string) =>
- http.get(`v3/msg/front/commons/sendSmsCode?phone=${phone}`);
- // 生成报告
- export const getRecord = (payload: GenerateRecord) => http.post('/analysis/record', payload);
- // 更新pdf
- export const savePdf = (payload: SavePdf) => http.post('/analysis/savePdf', payload);
|