project init
This commit is contained in:
22
oms/oms-h5/src/api/about/us.js
Normal file
22
oms/oms-h5/src/api/about/us.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询关于我们
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/about/us/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除关于我们
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/about/us/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存关于我们
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/about/us', params)
|
||||
}
|
||||
22
oms/oms-h5/src/api/announcement.js
Normal file
22
oms/oms-h5/src/api/announcement.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询公告
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/announcement/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除公告
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/announcement/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存公告
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/announcement', params)
|
||||
}
|
||||
26
oms/oms-h5/src/api/coach.js
Normal file
26
oms/oms-h5/src/api/coach.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询教练
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/coach/' + id)
|
||||
}
|
||||
|
||||
export function findByVenueType(id) {
|
||||
return http.get('/coach/venue', { 'venueType': id })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除教练
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/coach/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存教练
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/coach', params)
|
||||
}
|
||||
22
oms/oms-h5/src/api/config.js
Normal file
22
oms/oms-h5/src/api/config.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询系统参数
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/config/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除系统参数
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/config/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存系统参数
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/config', params)
|
||||
}
|
||||
27
oms/oms-h5/src/api/device.js
Normal file
27
oms/oms-h5/src/api/device.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询门禁设备
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/device/' + id)
|
||||
}
|
||||
|
||||
export function reconnect(id) {
|
||||
return http.post('/device/reconnect/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除门禁设备
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/device/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存门禁设备
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/device', params)
|
||||
}
|
||||
|
||||
22
oms/oms-h5/src/api/faq.js
Normal file
22
oms/oms-h5/src/api/faq.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询常见问题
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/faq/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除常见问题
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/faq/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存常见问题
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/faq', params)
|
||||
}
|
||||
29
oms/oms-h5/src/api/gift/member/card.js
Normal file
29
oms/oms-h5/src/api/gift/member/card.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询送会员卡记录
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/gift/member/card/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
export function updateStatus(ids, status) {
|
||||
return http.post('/gift/member/card/status', { 'id[]': ids, 'status': status })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除送会员卡记录
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/gift/member/card/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存送会员卡记录
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/gift/member/card', params)
|
||||
}
|
||||
29
oms/oms-h5/src/api/loan.js
Normal file
29
oms/oms-h5/src/api/loan.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询农资贷
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/loan/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
export function updateStatus(ids, status) {
|
||||
return http.post('/loan/status', { 'id[]': ids, 'status': status })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除农资贷
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/loan/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存农资贷
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/loan', params)
|
||||
}
|
||||
36
oms/oms-h5/src/api/login.js
Normal file
36
oms/oms-h5/src/api/login.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 登录
|
||||
* @param {*} username 用户名
|
||||
* @param {*} password 密码
|
||||
*/
|
||||
export function loginByUsername(username, password, language) {
|
||||
return http.post('/login', {
|
||||
username: username,
|
||||
password: password,
|
||||
lang: language
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 退出登录
|
||||
*/
|
||||
export function logout() {
|
||||
return http.post('/logout')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取登录用户信息
|
||||
*/
|
||||
export function getUserInfo() {
|
||||
return http.get('/admin')
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取登录用户的菜单
|
||||
*/
|
||||
export function getMenus(lang) {
|
||||
return http.get('/menuList', { lang: lang })
|
||||
}
|
||||
|
||||
37
oms/oms-h5/src/api/member.js
Normal file
37
oms/oms-h5/src/api/member.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询用户
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/member/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
export function updateStatus(ids, status) {
|
||||
return http.post('/member/status', { 'id[]': ids, 'status': status })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/member/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 送卡
|
||||
*/
|
||||
export function createCard(memberId, cardType, venueType, platformId, venueId, star, end) {
|
||||
return http.post('/member/giveCard', { 'memberId': memberId, 'cardType': cardType, 'venueType': venueType, 'platformId': platformId,
|
||||
'venueId': venueId, 'star': star, 'end': end })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存用户
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/member', params)
|
||||
}
|
||||
22
oms/oms-h5/src/api/member/card.js
Normal file
22
oms/oms-h5/src/api/member/card.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询用户会员卡
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/member/card/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户会员卡
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/member/card/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存用户会员卡
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/member/card', params)
|
||||
}
|
||||
22
oms/oms-h5/src/api/member/card/order.js
Normal file
22
oms/oms-h5/src/api/member/card/order.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询会员卡订单
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/member/card/order/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除会员卡订单
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/member/card/order/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存会员卡订单
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/member/card/order', params)
|
||||
}
|
||||
22
oms/oms-h5/src/api/member/enter/veneu/log.js
Normal file
22
oms/oms-h5/src/api/member/enter/veneu/log.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询篮球进场订单
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/member/enter/veneu/log/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除篮球进场订单
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/member/enter/veneu/log/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存篮球进场订单
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/member/enter/veneu/log', params)
|
||||
}
|
||||
29
oms/oms-h5/src/api/member/lesson/ticket.js
Normal file
29
oms/oms-h5/src/api/member/lesson/ticket.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询预约场馆课程订单
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/member/lesson/ticket/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
export function updateStatus(ids, status) {
|
||||
return http.post('/member/lesson/ticket/status', { 'id[]': ids, 'status': status })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除预约场馆课程订单
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/member/lesson/ticket/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存预约场馆课程订单
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/member/lesson/ticket', params)
|
||||
}
|
||||
22
oms/oms-h5/src/api/member/money/log.js
Normal file
22
oms/oms-h5/src/api/member/money/log.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询用户金额记录
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/member/money/log/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户金额记录
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/member/money/log/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存用户金额记录
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.get('/member/money/log', params)
|
||||
}
|
||||
29
oms/oms-h5/src/api/member/withdraw/apply.js
Normal file
29
oms/oms-h5/src/api/member/withdraw/apply.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询用户提现申请
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/member/withdraw/apply/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
export function updateStatus(ids, status, memberId) {
|
||||
return http.post('/member/withdraw/apply/status', { 'id[]': ids, 'status': status, 'memberId': memberId })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户提现申请
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/member/withdraw/apply/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存用户提现申请
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/member/withdraw/apply', params)
|
||||
}
|
||||
29
oms/oms-h5/src/api/order.js
Normal file
29
oms/oms-h5/src/api/order.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询订单
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/order/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询订单报表数据
|
||||
*/
|
||||
export function findmoney(time) {
|
||||
return http.get('/order/money?time=' + time)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除订单
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/order/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存订单
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/order', params)
|
||||
}
|
||||
22
oms/oms-h5/src/api/platform.js
Normal file
22
oms/oms-h5/src/api/platform.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询平台信息表
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/platform/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除平台信息表
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/platform/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存平台信息表
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/platform', params)
|
||||
}
|
||||
22
oms/oms-h5/src/api/protocol.js
Normal file
22
oms/oms-h5/src/api/protocol.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询协议
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/protocol/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除协议
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/protocol/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存协议
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/protocol', params)
|
||||
}
|
||||
8
oms/oms-h5/src/api/qiniu.js
Normal file
8
oms/oms-h5/src/api/qiniu.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import fetch from '@/utils/http'
|
||||
|
||||
export function getToken() {
|
||||
return fetch({
|
||||
url: '/qiniu/upload/token', // 假地址 自行替换
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
22
oms/oms-h5/src/api/recharge.js
Normal file
22
oms/oms-h5/src/api/recharge.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询快速充值配置信息
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/recharge/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除快速充值配置信息
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/recharge/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存快速充值配置信息
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/recharge', params)
|
||||
}
|
||||
9
oms/oms-h5/src/api/remoteSearch.js
Normal file
9
oms/oms-h5/src/api/remoteSearch.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import fetch from '@/utils/http'
|
||||
|
||||
export function userSearch(name) {
|
||||
return fetch({
|
||||
url: '/search/user',
|
||||
method: 'get',
|
||||
params: { name }
|
||||
})
|
||||
}
|
||||
43
oms/oms-h5/src/api/sys/admin.js
Normal file
43
oms/oms-h5/src/api/sys/admin.js
Normal file
@@ -0,0 +1,43 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询管理员
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/admin/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
export function updateStatus(ids, status) {
|
||||
return http.post('/admin/status', { 'id[]': ids, 'status': status })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除管理员
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/admin/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存管理员
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/admin', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 手机号码是否存在
|
||||
*/
|
||||
export function isMobileExists(mobile, id) {
|
||||
return http.get('/admin/exists/mobile', { 'mobile': mobile, 'excludeId': id })
|
||||
}
|
||||
|
||||
/**
|
||||
* 邮箱是否存在
|
||||
*/
|
||||
export function isEmailExists(email, id) {
|
||||
return http.get('/admin/exists/email', { 'email': email, 'excludeId': id })
|
||||
}
|
||||
37
oms/oms-h5/src/api/sys/menu.js
Normal file
37
oms/oms-h5/src/api/sys/menu.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询菜单
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/menu/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
export function updateStatus(ids, status) {
|
||||
return http.post('/menu/status', { 'id[]': ids, 'status': status })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除菜单
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/menu/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存菜单
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/menu', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询一级菜单
|
||||
*/
|
||||
export function findFirstLevel() {
|
||||
return http.get('/menu/level/first')
|
||||
}
|
||||
|
||||
29
oms/oms-h5/src/api/sys/permission.js
Normal file
29
oms/oms-h5/src/api/sys/permission.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询权限点
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/permission/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除权限单
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/permission/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存权限点
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/permission', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询权限点是否存在
|
||||
*/
|
||||
export function isKeyExists(key, id) {
|
||||
return http.get('/permission/exists/key', { key: key, excludeId: id })
|
||||
}
|
||||
45
oms/oms-h5/src/api/sys/role.js
Normal file
45
oms/oms-h5/src/api/sys/role.js
Normal file
@@ -0,0 +1,45 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询角色
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/role/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
export function updateStatus(ids, status) {
|
||||
return http.post('/role/status', { 'id[]': ids, 'status': status })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除角色
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/role/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存角色
|
||||
*/
|
||||
export function save(params) {
|
||||
console.info(params)
|
||||
return http.post('/role', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询菜单
|
||||
*/
|
||||
export function findMenus(roleId) {
|
||||
return http.get('/role/menus', { roleId: roleId })
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询可用角色
|
||||
*/
|
||||
export function findEnableRoles(adminId) {
|
||||
return http.get('/roles/enable', { adminId: adminId })
|
||||
}
|
||||
|
||||
22
oms/oms-h5/src/api/thread.js
Normal file
22
oms/oms-h5/src/api/thread.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询互动列表
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/thread/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除互动列表
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/thread/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存互动列表
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/thread', params)
|
||||
}
|
||||
29
oms/oms-h5/src/api/thread/tag.js
Normal file
29
oms/oms-h5/src/api/thread/tag.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询互动标签
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/thread/tag/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
export function updateStatus(ids, status) {
|
||||
return http.post('/thread/tag/status', { 'id[]': ids, 'status': status })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除互动标签
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/thread/tag/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存互动标签
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/thread/tag', params)
|
||||
}
|
||||
22
oms/oms-h5/src/api/turntable.js
Normal file
22
oms/oms-h5/src/api/turntable.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询抽奖奖品
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/turntable/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除抽奖奖品
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/turntable/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存抽奖奖品
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/turntable', params)
|
||||
}
|
||||
45
oms/oms-h5/src/api/venue.js
Normal file
45
oms/oms-h5/src/api/venue.js
Normal file
@@ -0,0 +1,45 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询场馆
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/venue/' + id)
|
||||
}
|
||||
|
||||
export function findVenueByType(type) {
|
||||
return http.get('/venues/type', { type: type })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除场馆
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/venue/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存场馆
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/venue', params)
|
||||
}
|
||||
|
||||
export function updateStatus(id, status) {
|
||||
return http.post('/venue/status', { id: id, status: status })
|
||||
}
|
||||
|
||||
export function generate(id) {
|
||||
return http.post('/venue/generate', { 'venueId': id })
|
||||
}
|
||||
|
||||
/**
|
||||
* 遍历场馆
|
||||
*/
|
||||
export function findVenue() {
|
||||
return http.get('/venue/venue/venue')
|
||||
}
|
||||
|
||||
export function clear(id) {
|
||||
return http.post('/venue/clear', { 'id': id })
|
||||
}
|
||||
44
oms/oms-h5/src/api/venue/card.js
Normal file
44
oms/oms-h5/src/api/venue/card.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询场馆会员卡
|
||||
*/
|
||||
export function findCard(id) {
|
||||
return http.get('/venue/card/' + id)
|
||||
}
|
||||
|
||||
export function find(id) {
|
||||
return http.get('/venue/card/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
export function updateStatus(ids, status) {
|
||||
return http.post('/venue/card/status', { 'id[]': ids, 'status': status })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除场馆会员卡
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/venue/card/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 遍历场馆会员卡
|
||||
*/
|
||||
export function findVenueCard(id) {
|
||||
return http.get('/venue/cards/card', { 'id': id })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存场馆会员卡
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/venue/card', params)
|
||||
}
|
||||
|
||||
export function findCards() {
|
||||
return http.get('/vip/cards')
|
||||
}
|
||||
22
oms/oms-h5/src/api/venue/image.js
Normal file
22
oms/oms-h5/src/api/venue/image.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询场馆图片
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/venue/image/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除场馆图片
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/venue/image/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存场馆图片
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/venue/image', params)
|
||||
}
|
||||
22
oms/oms-h5/src/api/venue/lesson.js
Normal file
22
oms/oms-h5/src/api/venue/lesson.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询场馆课程
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/venue/lesson/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除场馆课程
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/venue/lesson/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存场馆课程
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/venue/lesson', params)
|
||||
}
|
||||
30
oms/oms-h5/src/api/venue/lesson/tag/config.js
Normal file
30
oms/oms-h5/src/api/venue/lesson/tag/config.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询课程tag
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/venue/lesson/tag/config/' + id)
|
||||
}
|
||||
|
||||
export function findAllTags() {
|
||||
return http.get('/venue/lesson/tag/all/')
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除课程tag
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/venue/lesson/tag/config/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存课程tag
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/venue/lesson/tag/config', params)
|
||||
}
|
||||
|
||||
export function saveTag(name) {
|
||||
return http.post('/venue/lesson/tag/config/auto/add', { 'name': name })
|
||||
}
|
||||
29
oms/oms-h5/src/api/venue/lesson/ticket.js
Normal file
29
oms/oms-h5/src/api/venue/lesson/ticket.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询课程票据
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/venue/lesson/ticket/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
export function updateStatus(ids, status) {
|
||||
return http.post('/venue/lesson/ticket/status', { 'id[]': ids, 'status': status })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除课程票据
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/venue/lesson/ticket/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存课程票据
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/venue/lesson/ticket', params)
|
||||
}
|
||||
28
oms/oms-h5/src/api/venue/price.js
Normal file
28
oms/oms-h5/src/api/venue/price.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询场馆对应价格表
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/venue/price/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除场馆对应价格表
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/venue/price/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询场馆对应价格表
|
||||
*/
|
||||
export function findPrice(venueId) {
|
||||
return http.get('/venue/findPrice?venueId=' + venueId)
|
||||
}
|
||||
/**
|
||||
* 查询场馆对应价格表
|
||||
*/
|
||||
export function checkTime(venueId, starTime, endTime) {
|
||||
return http.get('/venue/checkTime?venueId=' + venueId + '&starTime=' + starTime + '&endTime' + endTime)
|
||||
}
|
||||
36
oms/oms-h5/src/api/venue/type.js
Normal file
36
oms/oms-h5/src/api/venue/type.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询场馆类型
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/venue/type/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
export function updateStatus(ids, status) {
|
||||
return http.post('/venue/type/status', { 'id[]': ids, 'status': status })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除场馆类型
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/venue/type/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存场馆类型
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/venue/type', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询门店等级
|
||||
*/
|
||||
export function findDataList() {
|
||||
return http.get('/venue/typeAll')
|
||||
}
|
||||
36
oms/oms-h5/src/api/vip/card.js
Normal file
36
oms/oms-h5/src/api/vip/card.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import http from '@/utils/http'
|
||||
|
||||
/**
|
||||
* 查询会员卡(分页)
|
||||
*/
|
||||
export function find(id) {
|
||||
return http.get('/vip/card/' + id)
|
||||
}
|
||||
|
||||
/**
|
||||
* 遍历会员卡
|
||||
*/
|
||||
export function findCard() {
|
||||
return http.get('/vip/cards/card')
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
*/
|
||||
export function updateStatus(ids, status) {
|
||||
return http.post('/vip/card/status', { 'id[]': ids, 'status': status })
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除会员卡
|
||||
*/
|
||||
export function remove(ids) {
|
||||
return http.post('/vip/card/delete', { 'id[]': ids })
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存会员卡
|
||||
*/
|
||||
export function save(params) {
|
||||
return http.post('/vip/card', params)
|
||||
}
|
||||
Reference in New Issue
Block a user