提交 c24ee99a authored 作者: matian's avatar matian

接口请求字段替换

上级 78153493
......@@ -32,5 +32,5 @@ export function uploadFile(data: Record<string, any>) {
// 获取个人信息
// 获取用户信息
export function getUserInfo() {
return httpRequest.get('/api/users/v1/index/index/info')
return httpRequest.get('/api/customer/v1/index/index/info')
}
......@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
// 获取搜索条件
export function getConditionList(params: { channel: boolean }) {
return httpRequest.get('/api/users/v1/index/index/condition', { params })
return httpRequest.get('/api/customer/v1/index/index/condition', { params })
}
export function getChannelList(params: {
created_time_start?: string
......@@ -12,9 +12,9 @@ export function getChannelList(params: {
tags?: string
company_short_name?: string
}) {
return httpRequest.get('/api/users/v1/channel/index/index', { params })
return httpRequest.get('/api/customer/v1/channel/index/index', { params })
}
// 获取详情
export function getChannelDetail(params: { id: string }) {
return httpRequest.get('/api/users/v1/channel/index/view', { params })
return httpRequest.get('/api/customer/v1/channel/index/view', { params })
}
......@@ -2,5 +2,5 @@ import httpRequest from '@/utils/axios'
// 获取课程列表
export function getAllDataList() {
return httpRequest.get('/api/users/v1/index/index/index')
return httpRequest.get('/api/customer/v1/index/index/index')
}
......@@ -10,14 +10,14 @@ export function getContactList(params: {
['per-page']?: string
page: string
}) {
return httpRequest.get('/api/users/v1/school/user/index', { params })
return httpRequest.get('/api/customer/v1/school/user/index', { params })
}
// 获取联系人详情
export function getContactDetail(params: { id: string }) {
return httpRequest.get('/api/users/v1/school/user/view', { params })
return httpRequest.get('/api/customer/v1/school/user/view', { params })
}
export function importContact(data: { file: any }) {
return httpRequest.post('/api/users/v1/school/user/import', data, {
return httpRequest.post('/api/customer/v1/school/user/import', data, {
headers: { 'Content-Type': 'multipart/form-data' }
})
}
......@@ -12,14 +12,14 @@ export function getProjectList(params: {
['per-page']?: string
page?: string
}) {
return httpRequest.get('/api/users/v1/school/project/index', { params })
return httpRequest.get('/api/customer/v1/school/project/index', { params })
}
// 获取学校详情
export function getProjectDetail(params: { id: string }) {
return httpRequest.get('/api/users/v1/school/project/view', { params })
return httpRequest.get('/api/customer/v1/school/project/view', { params })
}
export function importProject(data: { file: any }) {
return httpRequest.post('/api/users/v1/school/project/import', data, {
return httpRequest.post('/api/customer/v1/school/project/import', data, {
headers: { 'Content-Type': 'multipart/form-data' }
})
}
......@@ -11,15 +11,15 @@ export function getSchoolList(params: {
['per-page']?: string
page?: string
}) {
return httpRequest.get('/api/users/v1/school/school/index', { params })
return httpRequest.get('/api/customer/v1/school/school/index', { params })
}
// 获取学校详情
export function getSchoolDetail(params: { id: string }) {
return httpRequest.get('/api/users/v1/school/school/view', { params })
return httpRequest.get('/api/customer/v1/school/school/view', { params })
}
// 获取学校详情
export function importSchool(data: { file: any }) {
return httpRequest.post('/api/users/v1/school/school/import', data, {
return httpRequest.post('/api/customer/v1/school/school/import', data, {
headers: { 'Content-Type': 'multipart/form-data' }
})
}
......@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
// 获取搜索条件
export function getConditionList(params: { all: boolean }) {
return httpRequest.get('/api/users/v1/index/index/condition', { params })
return httpRequest.get('/api/customer/v1/index/index/condition', { params })
}
// 获取全部学员信息
export function getAllUserList(params: {
......@@ -14,5 +14,5 @@ export function getAllUserList(params: {
email?: string
mobile?: string
}) {
return httpRequest.get('/api/users/v1/customer/all/index', { params })
return httpRequest.get('/api/customer/v1/customer/all/index', { params })
}
......@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
// 获取搜索条件
export function getConditionList(params: { xiaoe: boolean }) {
return httpRequest.get('/api/users/v1/index/index/condition', { params })
return httpRequest.get('/api/customer/v1/index/index/condition', { params })
}
// 获取全部学员信息
export function getGooseList(params: {
......@@ -18,9 +18,9 @@ export function getGooseList(params: {
from?: string
sales?: string
}) {
return httpRequest.get('/api/users/v1/customer/xiaoe/index', { params })
return httpRequest.get('/api/customer/v1/customer/xiaoe/index', { params })
}
// 获取小鹅通详情
export function getGooseUserDetail(params: { id: string }) {
return httpRequest.get('/api/users/v1/customer/xiaoe/view', { params })
}
\ No newline at end of file
return httpRequest.get('/api/customer/v1/customer/xiaoe/view', { params })
}
......@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
// 获取搜索条件
export function getConditionList(params: { dustess: boolean }) {
return httpRequest.get('/api/users/v1/index/index/condition', { params })
return httpRequest.get('/api/customer/v1/index/index/condition', { params })
}
// 获取全部学员信息
export function getPeakUserList(params: {
......@@ -16,9 +16,9 @@ export function getPeakUserList(params: {
createuser_name?: string
owner?: string
}) {
return httpRequest.get('/api/users/v1/customer/dustess/index', { params })
return httpRequest.get('/api/customer/v1/customer/dustess/index', { params })
}
// 获取详情
export function getPeakUserDetail(params: { id: string }) {
return httpRequest.get('/api/users/v1/customer/dustess/view', { params })
return httpRequest.get('/api/customer/v1/customer/dustess/view', { params })
}
......@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
// 获取搜索条件
export function getConditionList(params: { wechat: boolean }) {
return httpRequest.get('/api/users/v1/index/index/condition', { params })
return httpRequest.get('/api/customer/v1/index/index/condition', { params })
}
// 获取全部学员信息
export function getWechatUserList(params: {
......@@ -19,9 +19,9 @@ export function getWechatUserList(params: {
['per-page']?: string
page?: string
}) {
return httpRequest.get('/api/users/v1/customer/wechat/index', { params })
return httpRequest.get('/api/customer/v1/customer/wechat/index', { params })
}
// 获取详情
export function getwechatUserDetail(params: { id: string }) {
return httpRequest.get('/api/users/v1/customer/wechat/view', { params })
return httpRequest.get('/api/customer/v1/customer/wechat/view', { params })
}
......@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
// 获取搜索条件
export function getConditionList(params: { zws: boolean }) {
return httpRequest.get('/api/users/v1/index/index/condition', { params })
return httpRequest.get('/api/customer/v1/index/index/condition', { params })
}
// 获取全部学员信息
export function getZwsUserList(params: {
......@@ -20,9 +20,9 @@ export function getZwsUserList(params: {
sales_rep?: string
channel?: string
}) {
return httpRequest.get('/api/users/v1/customer/zws/index', { params })
return httpRequest.get('/api/customer/v1/customer/zws/index', { params })
}
// 获取详情
export function getZwsUserDetail(params: { id: string }) {
return httpRequest.get('/api/users/v1/customer/zws/view', { params })
return httpRequest.get('/api/customer/v1/customer/zws/view', { params })
}
......@@ -24,7 +24,7 @@ export default defineConfig(({ mode }) => ({
cert: fs.readFileSync(path.join(__dirname, './https/dev.ezijing.com.pem'))
},
proxy: {
// '/api/users': {
// '/api/customer': {
// // target: 'http://localhost-customer-system-backend.ezijing.com',
// target: 'https://customer-backend-api.ezijing.com',
// rewrite: path => path.replace(/^\/api\/users/, ''),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论