Commit 6ac32e51 authored by 罗林杰's avatar 罗林杰

初始化会员管理

parent 008a4d93
import request from '@/utils/request'
import Qs from 'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询会员
export function listMemInfo(query) {
return request({
url: '/memInfo/list',
method: 'get',
params: query
})
}
// 2. 查询会员
export function getMemInfo(businessId) {
return request({
url: '/memInfo/detail/' + businessId,
method: 'get'
})
}
// 3. 新增会员
export function addMemInfo(data) {
data = Qs.stringify(data)
return request({
url: '/memInfo/add',
method: 'post',
data: data
})
}
// 4. 修改会员
export function updateMemInfo(data) {
const businessId = data.businessId
data = Qs.stringify(data)
return request({
url: '/memInfo/update/' + businessId,
method: 'post',
data
})
}
// 5. 逻辑删除会员
export function delMemInfo(businessId) {
return request({
url: '/memInfo/delete/' + businessId,
method: 'delete'
})
}
// 6. 导出会员
export function exportMemInfo(query) {
return request({
url: '/memInfo/export',
method: 'get',
params: query,
responseType: 'blob'
})
}
This diff is collapsed.
This diff is collapsed.
......@@ -62,7 +62,7 @@ module.exports = {
// target: `http://49.232.167.247:20014/`,
// target: `http://192.168.10.185:8084/`,
// target: `http://106.3.97.198:20062/`,
target: `http://localhost:8082/`,
target: `http://localhost:8092/`,
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