Commit 88bd4682 by Wangmin

生成代码

parent f45dfb8e
import request from '@/utils/request'
// 查询商户列表
export function listCompany(query) {
return request({
url: '/merchant/company/list',
method: 'get',
params: query
})
}
// 查询商户详细
export function getCompany(id) {
return request({
url: '/merchant/company/' + id,
method: 'get'
})
}
// 新增商户
export function addCompany(data) {
return request({
url: '/merchant/company',
method: 'post',
data: data
})
}
// 修改商户
export function updateCompany(data) {
return request({
url: '/merchant/company',
method: 'put',
data: data
})
}
// 删除商户
export function delCompany(id) {
return request({
url: '/merchant/company/' + id,
method: 'delete'
})
}
import request from '@/utils/request'
// 查询陪诊员列表
export function listEmployees(query) {
return request({
url: '/merchant/employees/list',
method: 'get',
params: query
})
}
// 查询陪诊员详细
export function getEmployees(id) {
return request({
url: '/merchant/employees/' + id,
method: 'get'
})
}
// 新增陪诊员
export function addEmployees(data) {
return request({
url: '/merchant/employees',
method: 'post',
data: data
})
}
// 修改陪诊员
export function updateEmployees(data) {
return request({
url: '/merchant/employees',
method: 'put',
data: data
})
}
// 删除陪诊员
export function delEmployees(id) {
return request({
url: '/merchant/employees/' + id,
method: 'delete'
})
}
......@@ -35,7 +35,7 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://localhost:8080`,
target: `http://localhost:8089`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment