fix: 茅台预约,功能代码提交。
This commit is contained in:
52
src/api/invest/iitem.js
Normal file
52
src/api/invest/iitem.js
Normal file
@@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询预约项目列表
|
||||
export function listIitem(query) {
|
||||
return request({
|
||||
url: '/invest/iitem/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询预约项目详细
|
||||
export function getIitem(itemId) {
|
||||
return request({
|
||||
url: '/invest/iitem/' + itemId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增预约项目
|
||||
export function addIitem(data) {
|
||||
return request({
|
||||
url: '/invest/iitem',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改预约项目
|
||||
export function updateIitem(data) {
|
||||
return request({
|
||||
url: '/invest/iitem',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除预约项目
|
||||
export function delIitem(itemId) {
|
||||
return request({
|
||||
url: '/invest/iitem/' + itemId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 刷新i茅台预约商品列表
|
||||
export function refreshItem(itemId) {
|
||||
return request({
|
||||
url: '/invest/iitem/refresh',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
44
src/api/invest/ilog.js
Normal file
44
src/api/invest/ilog.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询操作日志列表
|
||||
export function listIlog(query) {
|
||||
return request({
|
||||
url: '/invest/ilog/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询操作日志详细
|
||||
export function getIlog(logId) {
|
||||
return request({
|
||||
url: '/invest/ilog/' + logId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增操作日志
|
||||
export function addIlog(data) {
|
||||
return request({
|
||||
url: '/invest/ilog',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改操作日志
|
||||
export function updateIlog(data) {
|
||||
return request({
|
||||
url: '/invest/ilog',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除操作日志
|
||||
export function delIlog(logId) {
|
||||
return request({
|
||||
url: '/invest/ilog/' + logId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
51
src/api/invest/ishop.js
Normal file
51
src/api/invest/ishop.js
Normal file
@@ -0,0 +1,51 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询门店列表列表
|
||||
export function listIshop(query) {
|
||||
return request({
|
||||
url: '/invest/ishop/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询门店列表详细
|
||||
export function getIshop(shopId) {
|
||||
return request({
|
||||
url: '/invest/ishop/' + shopId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增门店列表
|
||||
export function addIshop(data) {
|
||||
return request({
|
||||
url: '/invest/ishop',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改门店列表
|
||||
export function updateIshop(data) {
|
||||
return request({
|
||||
url: '/invest/ishop',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除门店列表
|
||||
export function delIshop(shopId) {
|
||||
return request({
|
||||
url: '/invest/ishop/' + shopId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
// i茅台商品
|
||||
export function refreshShop() {
|
||||
return request({
|
||||
url: '/invest/ishop/refresh',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
79
src/api/invest/iuser.js
Normal file
79
src/api/invest/iuser.js
Normal file
@@ -0,0 +1,79 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询用户管理列表
|
||||
export function listIuser(query) {
|
||||
return request({
|
||||
url: '/invest/iuser/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询用户管理详细
|
||||
export function getIuser(mobile) {
|
||||
return request({
|
||||
url: '/invest/iuser/' + mobile,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增用户管理
|
||||
export function addIuser(data) {
|
||||
return request({
|
||||
url: '/invest/iuser',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改用户管理
|
||||
export function updateIuser(data) {
|
||||
return request({
|
||||
url: '/invest/iuser',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除用户管理
|
||||
export function delIuser(mobile) {
|
||||
return request({
|
||||
url: '/invest/iuser/' + mobile,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// reservation
|
||||
export function reservation(mobile) {
|
||||
return request({
|
||||
url: '/invest/iuser/reservation',
|
||||
method: 'get',
|
||||
params: { mobile }
|
||||
})
|
||||
}
|
||||
//travelReward
|
||||
export function travelReward(mobile) {
|
||||
return request({
|
||||
url: '/invest/iuser/travelReward',
|
||||
method: 'get',
|
||||
params: { mobile }
|
||||
})
|
||||
}
|
||||
|
||||
// 发送验证码
|
||||
export function sendCode(mobile, deviceId) {
|
||||
return request({
|
||||
url: '/invest/iuser/sendCode',
|
||||
method: 'get',
|
||||
params: { mobile, deviceId }
|
||||
})
|
||||
}
|
||||
|
||||
// 查询I茅台用户列表
|
||||
export function login(mobile, code, deviceId) {
|
||||
return request({
|
||||
url: '/invest/iuser/login',
|
||||
method: 'get',
|
||||
params: { mobile, code, deviceId }
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user