This commit is contained in:
张成
2025-10-09 18:00:37 +08:00
parent 4823e1d152
commit 366c18bcea
96 changed files with 16623 additions and 12 deletions

View File

@@ -0,0 +1,21 @@
import http from "@/libs/http";
class SysAdServer {
async getAll(param) {
return await http.get("/sys_ad/index", param);
}
async add(row) {
return await http.post("/sys_ad/add", row);
}
async edit(row) {
return await http.post("/sys_ad/edit", row);
}
async del(row) {
return await http.post("/sys_ad/del", row);
}
}
const sysAdServer = new SysAdServer();
export default sysAdServer;

View File

@@ -0,0 +1,35 @@
import http from '@/libs/http';
class ai_messagesClServer {
async all(param) {
let res= await http.get('/ai_messages/all', param);
return res;
}
async page(row) {
let res= await http.post('/ai_messages/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/ai_messages/export", row);
return res;
}
async add(row) {
let res= await http.post('/ai_messages/add', row);
return res;
}
async edit(row) {
let res= await http.post('/ai_messages/edit', row);
return res;
}
async del(row) {
let res= await http.post('/ai_messages/del', row);
return res;
}
}
const ai_messagesServer = new ai_messagesClServer();
export default ai_messagesServer;

View File

@@ -0,0 +1,53 @@
import http from '@/libs/http'
export default {
// 获取球局评论列表
getGameCommentsList: (params) => {
return http.post('/game_comments/page', params)
},
// 获取所有球局评论
getAllGameComments: (params) => {
return http.get('/game_comments/all', params)
},
// 获取球局评论详情
getGameCommentDetail: (params) => {
return http.get('/game_comments/detail', params)
},
// 新增球局评论
addGameComment: (params) => {
return http.post('/game_comments/add', params)
},
// 更新球局评论
updateGameComment: (params) => {
return http.post('/game_comments/edit', params)
},
// 删除球局评论
deleteGameComment: (params) => {
return http.post('/game_comments/del', params)
},
// 批量删除球局评论
batchDeleteGameComments: (params) => {
return http.post('/game_comments/batch_delete', params)
},
// 导出球局评论数据
exportGameComments: (params) => {
return http.post('/game_comments/export', params)
},
// 审核评论
auditComment: (params) => {
return http.post('/game_comments/audit', params)
},
// 获取评论回复
getCommentReplies: (params) => {
return http.get('/game_comments/replies', params)
}
}

View File

@@ -0,0 +1,48 @@
import http from '@/libs/http'
export default {
// 获取球局参与者列表
getGameParticipantsList: (params) => {
return http.post('/game_participants/page', params)
},
// 获取所有球局参与者
getAllGameParticipants: (params) => {
return http.get('/game_participants/all', params)
},
// 获取球局参与者详情
getGameParticipantDetail: (params) => {
return http.get('/game_participants/detail', params)
},
// 新增球局参与者
addGameParticipant: (params) => {
return http.post('/game_participants/add', params)
},
// 更新球局参与者
updateGameParticipant: (params) => {
return http.post('/game_participants/edit', params)
},
// 删除球局参与者
deleteGameParticipant: (params) => {
return http.post('/game_participants/del', params)
},
// 批量删除球局参与者
batchDeleteGameParticipants: (params) => {
return http.post('/game_participants/batch_delete', params)
},
// 导出球局参与者数据
exportGameParticipants: (params) => {
return http.post('/game_participants/export', params)
},
// 更新参与者状态
updateParticipantStatus: (params) => {
return http.post('/game_participants/update_status', params)
}
}

View File

@@ -0,0 +1,50 @@
import http from '@/libs/http';
class gamesClServer {
async all(param) {
let res= await http.get('/gme_games/all', param);
return res;
}
async page(row) {
let res= await http.post('/gme_games/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/gme_games/export", row);
return res;
}
async add(row) {
let res= await http.post('/gme_games/add', row);
return res;
}
async edit(row) {
let res= await http.post('/gme_games/edit', row);
return res;
}
async del(row) {
let res= await http.post('/gme_games/del', row);
return res;
}
async cancel(row) {
let res = await http.post('/gme_games/cancel', row);
return res;
}
async updateStatus(row) {
let res = await http.post('/gme_games/update_status', row);
return res;
}
async statistics() {
let res = await http.get('/gme_games/statistics', {});
return res;
}
}
const gamesServer = new gamesClServer();
export default gamesServer;

View File

@@ -0,0 +1,38 @@
import http from '@/libs/http';
class paymentOrdersClServer {
async all(param) {
let res= await http.get('/pay_orders/all', param);
return res;
}
async page(row) {
let res= await http.post('/pay_orders/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/pay_orders/export", row);
return res;
}
async add(row) {
let res= await http.post('/pay_orders/add', row);
return res;
}
async edit(row) {
let res= await http.post('/pay_orders/edit', row);
return res;
}
async del(row) {
let res= await http.post('/pay_orders/del', row);
return res;
}
}
const paymentOrdersServer = new paymentOrdersClServer();
export default paymentOrdersServer;

View File

@@ -0,0 +1,36 @@
import http from '@/libs/http'
// 获取资源列表(分页)
export function getList(params) {
return http.post('/gal_resources/page', params)
}
// 添加资源
export function add(params) {
return http.post('/gal_resources/add', params)
}
// 编辑资源
export function edit(params) {
return http.post('/gal_resources/edit', params)
}
// 删除资源
export function del(params) {
return http.post('/gal_resources/del', params)
}
// 导出资源
export function exportData(params) {
return http.fileExport('/gal_resources/export', params)
}
// 获取所有资源
export function getAll(params) {
return http.get('/gal_resources/all', params)
}
// 获取资源详情
export function getDetail(params) {
return http.get('/gal_resources/detail', params)
}

View File

@@ -0,0 +1,38 @@
import http from '@/libs/http';
class venuesClServer {
async all(param) {
let res= await http.get('/ven_venues/all', param);
return res;
}
async page(row) {
let res= await http.post('/ven_venues/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/ven_venues/export", row);
return res;
}
async add(row) {
let res= await http.post('/ven_venues/add', row);
return res;
}
async edit(row) {
let res= await http.post('/ven_venues/edit', row);
return res;
}
async del(row) {
let res= await http.post('/ven_venues/del', row);
return res;
}
}
const venuesServer = new venuesClServer();
export default venuesServer;

View File

@@ -0,0 +1,36 @@
import http from '@/libs/http';
class walletTransactionsClServer {
async all(param) {
let res= await http.get('/wch_wallet_transactions/all', param);
return res;
}
async page(row) {
let res= await http.post('/wch_wallet_transactions/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/wch_wallet_transactions/export", row);
return res;
}
async detail(id) {
let res= await http.get('/wch_wallet_transactions/detail', { id });
return res;
}
async edit(row) {
let res= await http.post('/wch_wallet_transactions/edit', row);
return res;
}
async statistics() {
let res = await http.get('/wch_wallet_transactions/statistics', {});
return res;
}
}
const walletTransactionsServer = new walletTransactionsClServer();
export default walletTransactionsServer;

View File

@@ -0,0 +1,36 @@
import http from '@/libs/http';
class walletsClServer {
async all(param) {
let res= await http.get('/wch_wallets/all', param);
return res;
}
async page(row) {
let res= await http.post('/wch_wallets/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/wch_wallets/export", row);
return res;
}
async edit(row) {
let res= await http.post('/wch_wallets/edit', row);
return res;
}
async adjustBalance(row) {
let res= await http.post('/wch_wallets/adjust_balance', row);
return res;
}
async statistics() {
let res = await http.get('/wch_wallets/statistics', {});
return res;
}
}
const walletsServer = new walletsClServer();
export default walletsServer;

View File

@@ -0,0 +1,38 @@
import http from '@/libs/http';
class wch_usersClServer {
async all(param) {
let res= await http.get('/wch_users/all', param);
return res;
}
async page(row) {
let res= await http.post('/wch_users/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/wch_users/export", row);
return res;
}
async add(row) {
let res= await http.post('/wch_users/add', row);
return res;
}
async edit(row) {
let res= await http.post('/wch_users/edit', row);
return res;
}
async del(row) {
let res= await http.post('/wch_users/del', row);
return res;
}
}
const wch_usersServer = new wch_usersClServer();
export default wch_usersServer;

View File

@@ -0,0 +1,33 @@
import request from '@/libs/http'
export const getList = (params) => {
return request({
url: '/business/games/page',
method: 'get',
params
})
}
export const add = (data) => {
return request({
url: '/business/games',
method: 'post',
data
})
}
export const edit = (data) => {
return request({
url: '/business/games',
method: 'put',
data
})
}
export const del = (params) => {
return request({
url: '/business/games',
method: 'delete',
params
})
}

View File

@@ -0,0 +1,48 @@
import http from '@/libs/http'
export default {
// 获取热门城市二维码配置列表
getHotCityQrConfigsList: (params) => {
return http.post('/wch_hot_city_qr_config/page', params)
},
// 获取所有热门城市二维码配置
getAllHotCityQrConfigs: (params) => {
return http.get('/wch_hot_city_qr_config/all', params)
},
// 获取热门城市二维码配置详情
getHotCityQrConfigDetail: (params) => {
return http.get('/wch_hot_city_qr_config/detail', params)
},
// 新增热门城市二维码配置
addHotCityQrConfig: (params) => {
return http.post('/wch_hot_city_qr_config/add', params)
},
// 更新热门城市二维码配置
updateHotCityQrConfig: (params) => {
return http.post('/wch_hot_city_qr_config/edit', params)
},
// 删除热门城市二维码配置
deleteHotCityQrConfig: (params) => {
return http.post('/wch_hot_city_qr_config/del', params)
},
// 批量删除热门城市二维码配置
batchDeleteHotCityQrConfigs: (params) => {
return http.post('/wch_hot_city_qr_config/batch_delete', params)
},
// 导出热门城市二维码配置
exportHotCityQrConfigs: (params) => {
return http.post('/wch_hot_city_qr_config/export', params)
},
// 生成二维码
generateQRCode: (params) => {
return http.post('/wch_hot_city_qr_config/generate_qr', params)
}
}

View File

@@ -0,0 +1,39 @@
import http from '@/libs/http'
export default {
// 获取列表(分页)
page(params) {
return http.get('/wch_hot_city_qr_config/list', params)
},
// 获取所有(不分页)
all() {
return http.get('/wch_hot_city_qr_config/all')
},
// 获取详情
detail(id) {
return http.get(`/wch_hot_city_qr_config/detail/${id}`)
},
// 新增
add(data) {
return http.post('/wch_hot_city_qr_config/create', data)
},
// 编辑
edit(id, data) {
return http.post(`/wch_hot_city_qr_config/update/${id}`, data)
},
// 删除
del(id) {
return http.post(`/wch_hot_city_qr_config/delete/${id}`)
},
// 批量删除
batchDel(ids) {
return http.post('/wch_hot_city_qr_config/batch_delete', { ids })
}
}

View File

@@ -0,0 +1,38 @@
import http from '@/libs/http';
class infoClServer {
async all(param) {
let res= await http.get('/inf_info/all', param);
return res;
}
async page(row) {
let res= await http.post('/inf_info/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/inf_info/export", row);
return res;
}
async add(row) {
let res= await http.post('/inf_info/add', row);
return res;
}
async edit(row) {
let res= await http.post('/inf_info/edit', row);
return res;
}
async del(row) {
let res= await http.post('/inf_info/del', row);
return res;
}
}
const infoServer = new infoClServer();
export default infoServer;

View File

@@ -0,0 +1,38 @@
import http from '@/libs/http';
class info_typeClServer {
async all(param) {
let res= await http.get('/inf_info_type/all', param);
return res;
}
async page(row) {
let res= await http.post('/inf_info_type/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/inf_info_type/export", row);
return res;
}
async add(row) {
let res= await http.post('/inf_info_type/add', row);
return res;
}
async edit(row) {
let res= await http.post('/inf_info_type/edit', row);
return res;
}
async del(row) {
let res= await http.post('/inf_info_type/del', row);
return res;
}
}
const info_typeServer = new info_typeClServer();
export default info_typeServer;

View File

@@ -0,0 +1,26 @@
import http from "@/libs/http";
class HomeServer {
// 获取订单统计
async getOderCount() {
let res = await http.get("/order/count");
return res;
}
async getUserCount() {
let res = await http.get("/user/count");
return res;
}
async getSalesRank() {
let res = await http.get("/index/salesRank");
return res;
}
async userRecommendRank() {
let res = await http.get("/index/userRecommendRank");
return res;
}
}
const homeServer = new HomeServer();
export default homeServer;

View File

@@ -0,0 +1,28 @@
import http from '@/libs/http'
export default {
// 获取消息通知列表
page: (params) => {
return http.post('/msg_notifications/page', params)
},
// 新增消息通知
add: (params) => {
return http.post('/msg_notifications/add', params)
},
// 更新消息通知
edit: (params) => {
return http.post('/msg_notifications/edit', params)
},
// 删除消息通知
del: (params) => {
return http.post('/msg_notifications/del', params)
},
// 导出消息通知数据
exportCsv: (params) => {
return http.get('/msg_notifications/export', params)
}
}

View File

@@ -0,0 +1,35 @@
import http from '@/libs/http';
class ntr_questionsClServer {
async all(param) {
let res= await http.get('/ntr_questions/all', param);
return res;
}
async page(row) {
let res= await http.post('/ntr_questions/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/ntr_questions/export", row);
return res;
}
async add(row) {
let res= await http.post('/ntr_questions/add', row);
return res;
}
async edit(row) {
let res= await http.post('/ntr_questions/edit', row);
return res;
}
async del(row) {
let res= await http.post('/ntr_questions/del', row);
return res;
}
}
const ntr_questionsServer = new ntr_questionsClServer();
export default ntr_questionsServer;

View File

@@ -0,0 +1,35 @@
import http from '@/libs/http';
class ntr_recordsClServer {
async all(param) {
let res= await http.get('/ntr_records/all', param);
return res;
}
async page(row) {
let res= await http.post('/ntr_records/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/ntr_records/export", row);
return res;
}
async add(row) {
let res= await http.post('/ntr_records/add', row);
return res;
}
async edit(row) {
let res= await http.post('/ntr_records/edit', row);
return res;
}
async del(row) {
let res= await http.post('/ntr_records/del', row);
return res;
}
}
const ntr_recordsServer = new ntr_recordsClServer();
export default ntr_recordsServer;

View File

@@ -0,0 +1,53 @@
import http from '@/libs/http'
export default {
// 获取冻结资金列表
getFrozenFundsList: (params) => {
return http.post('/frozen_funds/page', params)
},
// 获取所有冻结资金
getAllFrozenFunds: (params) => {
return http.get('/frozen_funds/all', params)
},
// 获取冻结资金详情
getFrozenFundDetail: (params) => {
return http.get('/frozen_funds/detail', params)
},
// 新增冻结资金
addFrozenFund: (params) => {
return http.post('/frozen_funds/add', params)
},
// 更新冻结资金
updateFrozenFund: (params) => {
return http.post('/frozen_funds/edit', params)
},
// 删除冻结资金
deleteFrozenFund: (params) => {
return http.post('/frozen_funds/del', params)
},
// 批量删除冻结资金
batchDeleteFrozenFunds: (params) => {
return http.post('/frozen_funds/batch_delete', params)
},
// 导出冻结资金数据
exportFrozenFunds: (params) => {
return http.post('/frozen_funds/export', params)
},
// 解冻资金
unfreezeFund: (params) => {
return http.post('/frozen_funds/unfreeze', params)
},
// 获取冻结统计
getFrozenStats: (params) => {
return http.get('/frozen_funds/stats', params)
}
}

View File

@@ -0,0 +1,28 @@
import http from '@/libs/http'
export default {
// 获取订单状态列表
getOrderStatusList: (params) => {
return http.post('/order/status/list', params)
},
// 批量更新订单状态
batchUpdateOrderStatus: (params) => {
return http.post('/order/status/batch_update', params)
},
// 更新单个订单状态
updateSingleOrderStatus: (params) => {
return http.post('/order/status/update', params)
},
// 取消订单
cancelOrder: (params) => {
return http.post('/order/cancel', params)
},
// 获取订单状态流转日志
getOrderStatusLogs: (params) => {
return http.post('/order/status/logs', params)
}
}

View File

@@ -0,0 +1,73 @@
import http from '@/libs/http'
export default {
// 获取支付订单列表
getPaymentOrdersList: (params) => {
return http.post('/pay_orders/page', params)
},
// 获取所有支付订单
getAllPaymentOrders: (params) => {
return http.get('/pay_orders/all', params)
},
// 获取支付订单详情
getPaymentOrderDetail: (params) => {
return http.get('/pay_orders/detail', params)
},
// 新增支付订单
addPaymentOrder: (params) => {
return http.post('/pay_orders/add', params)
},
// 更新支付订单
updatePaymentOrder: (params) => {
return http.post('/pay_orders/edit', params)
},
// 删除支付订单
deletePaymentOrder: (params) => {
return http.post('/pay_orders/del', params)
},
// 批量删除支付订单
batchDeletePaymentOrders: (params) => {
return http.post('/pay_orders/batch_delete', params)
},
// 导出支付订单
exportPaymentOrders: (params) => {
return http.post('/pay_orders/export', params)
},
// 获取支付订单统计
getPaymentOrderStats: (params) => {
return http.post('/pay_orders/statistics', params)
},
// 更新订单状态
updateOrderStatus: (params) => {
return http.post('/pay_orders/update_status', params)
},
// 取消订单
cancelPaymentOrder: (id) => {
return http.post(`/pay_orders/cancel/${id}`)
},
// 获取订单支付详情
getOrderPaymentDetail: (params) => {
return http.get('/pay_orders/payment_detail', params)
},
// 重新发起支付
retryPayment: (params) => {
return http.post('/pay_orders/retry_payment', params)
},
// 获取订单退款信息
getOrderRefundInfo: (params) => {
return http.get('/pay_orders/refund_info', params)
}
}

View File

@@ -0,0 +1,23 @@
import http from '@/libs/http'
export default {
// 获取支付统计数据
getPaymentStats: (params) => {
return http.post('/payment/stats', params)
},
// 获取支付趋势数据
getPaymentTrend: (params) => {
return http.post('/payment/trend', params)
},
// 获取订单状态分布
getOrderStatusDistribution: (params) => {
return http.post('/payment/status_distribution', params)
},
// 导出支付统计
exportPaymentStats: (params) => {
return http.post('/payment/export_stats', params)
}
}

View File

@@ -0,0 +1,35 @@
import http from '@/libs/http';
class transfer_detailsClServer {
async all(param) {
let res= await http.get('/transfer_details/all', param);
return res;
}
async page(row) {
let res= await http.post('/transfer_details/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/transfer_details/export", row);
return res;
}
async add(row) {
let res= await http.post('/transfer_details/add', row);
return res;
}
async edit(row) {
let res= await http.post('/transfer_details/edit', row);
return res;
}
async del(row) {
let res= await http.post('/transfer_details/del', row);
return res;
}
}
const transfer_detailsServer = new transfer_detailsClServer();
export default transfer_detailsServer;

View File

@@ -0,0 +1,53 @@
import http from '@/libs/http'
export default {
// 获取钱包交易记录列表
getWalletTransactionsList: (params) => {
return http.post('/wallet_transactions/page', params)
},
// 获取所有钱包交易记录
getAllWalletTransactions: (params) => {
return http.get('/wallet_transactions/all', params)
},
// 获取钱包交易记录详情
getWalletTransactionDetail: (params) => {
return http.get('/wallet_transactions/detail', params)
},
// 新增钱包交易记录
addWalletTransaction: (params) => {
return http.post('/wallet_transactions/add', params)
},
// 更新钱包交易记录
updateWalletTransaction: (params) => {
return http.post('/wallet_transactions/edit', params)
},
// 删除钱包交易记录
deleteWalletTransaction: (params) => {
return http.post('/wallet_transactions/del', params)
},
// 批量删除钱包交易记录
batchDeleteWalletTransactions: (params) => {
return http.post('/wallet_transactions/batch_delete', params)
},
// 导出钱包交易记录
exportWalletTransactions: (params) => {
return http.post('/wallet_transactions/export', params)
},
// 获取交易统计
getTransactionStats: (params) => {
return http.get('/wallet_transactions/stats', params)
},
// 获取用户交易记录
getUserTransactions: (params) => {
return http.get('/wallet_transactions/user', params)
}
}

View File

@@ -0,0 +1,88 @@
import http from '@/libs/http'
export default {
// 获取用户钱包列表
getWalletsList: (params) => {
return http.post('/wch_wallets/page', params)
},
// 获取所有钱包
getAllWallets: (params) => {
return http.get('/wch_wallets/all', params)
},
// 获取钱包详情
getWalletDetail: (params) => {
return http.get('/wch_wallets/detail', params)
},
// 新增钱包
addWallet: (params) => {
return http.post('/wch_wallets/add', params)
},
// 更新钱包
updateWallet: (params) => {
return http.post('/wch_wallets/edit', params)
},
// 删除钱包
deleteWallet: (params) => {
return http.post('/wallets/delete', params)
},
// 批量删除钱包
batchDeleteWallets: (params) => {
return http.post('/wallets/batch_delete', params)
},
// 导出钱包数据
exportWallets: (params) => {
return http.post('/wallets/export', params)
},
// 获取钱包统计
getWalletStats: (params) => {
return http.post('/wallets/stats', params)
},
// 更新钱包状态
updateWalletStatus: (params) => {
return http.post('/wallets/update_status', params)
},
// 钱包充值
rechargeWallet: (params) => {
return http.post('/wallets/recharge', params)
},
// 钱包提现
withdrawWallet: (params) => {
return http.post('/wallets/withdraw', params)
},
// 冻结钱包资金
freezeWalletFunds: (params) => {
return http.post('/wallets/freeze_funds', params)
},
// 解冻钱包资金
unfreezeWalletFunds: (params) => {
return http.post('/wallets/unfreeze_funds', params)
},
// 获取钱包交易记录
getWalletTransactions: (params) => {
return http.post('/wallets/transactions', params)
},
// 重置钱包密码
resetWalletPassword: (params) => {
return http.post('/wallets/reset_password', params)
},
// 获取钱包余额统计
getWalletBalanceStats: (params) => {
return http.post('/wallets/balance_stats', params)
}
}

View File

@@ -0,0 +1,28 @@
import http from '@/libs/http'
export default {
// 获取提现审核列表
getWithdrawAuditList: (params) => {
return http.post('/wallet/withdraw_audit/list', params)
},
// 审核提现申请
auditWithdraw: (params) => {
return http.post('/wallet/withdraw_audit/audit', params)
},
// 批量审核提现申请
batchAuditWithdraw: (params) => {
return http.post('/wallet/withdraw_audit/batch_audit', params)
},
// 获取提现详情
getWithdrawDetail: (params) => {
return http.get('/wallet/withdraw_audit/detail', params)
},
// 获取提现统计
getWithdrawStats: (params) => {
return http.post('/wallet/withdraw_audit/stats', params)
}
}

View File

@@ -0,0 +1,33 @@
import request from '@/libs/http'
export const getList = (params) => {
return request({
url: '/sys_file/page',
method: 'get',
params
})
}
export const add = (data) => {
return request({
url: '/sys_file',
method: 'post',
data
})
}
export const edit = (data) => {
return request({
url: '/sys_file',
method: 'put',
data
})
}
export const del = (params) => {
return request({
url: '/sys_file',
method: 'delete',
params
})
}

View File

@@ -0,0 +1,57 @@
import http from '@/libs/http'
// 获取球局统计列表
export const getList = (params) => {
return http.request({
url: '/admin/game_statistics/list',
method: 'post',
data: params
})
}
// 获取球局统计详情
export const getDetail = (params) => {
return http.request({
url: '/admin/game_statistics/detail',
method: 'post',
data: params
})
}
// 添加球局统计
export const add = (params) => {
return http.request({
url: '/admin/game_statistics/add',
method: 'post',
data: params
})
}
// 编辑球局统计
export const edit = (params) => {
return http.request({
url: '/admin/game_statistics/edit',
method: 'post',
data: params
})
}
// 删除球局统计
export const del = (params) => {
return http.request({
url: '/admin/game_statistics/del',
method: 'post',
data: params
})
}
// 导出球局统计
export const exportData = (params) => {
return http.request({
url: '/admin/game_statistics/export',
method: 'post',
data: params,
responseType: 'blob'
})
}

View File

@@ -0,0 +1,53 @@
import http from '@/libs/http'
export default {
// 获取资源列表
getResourcesList: (params) => {
return http.post('/resources/page', params)
},
// 获取所有资源
getAllResources: (params) => {
return http.get('/resources/all', params)
},
// 获取资源详情
getResourceDetail: (params) => {
return http.get('/resources/detail', params)
},
// 新增资源
addResource: (params) => {
return http.post('/resources/add', params)
},
// 更新资源
updateResource: (params) => {
return http.post('/resources/edit', params)
},
// 删除资源
deleteResource: (params) => {
return http.post('/resources/del', params)
},
// 批量删除资源
batchDeleteResources: (params) => {
return http.post('/resources/batch_delete', params)
},
// 导出资源数据
exportResources: (params) => {
return http.post('/resources/export', params)
},
// 上传资源
uploadResource: (params) => {
return http.post('/resources/upload', params)
},
// 获取资源统计
getResourceStats: (params) => {
return http.get('/resources/stats', params)
}
}

View File

@@ -0,0 +1,66 @@
import http from '@/libs/http'
// 获取营收统计列表
export const getList = (params) => {
return http.request({
url: '/admin/revenue_statistics/list',
method: 'post',
data: params
})
}
// 获取营收统计详情
export const getDetail = (params) => {
return http.request({
url: '/admin/revenue_statistics/detail',
method: 'post',
data: params
})
}
// 获取营收统计概览
export const getOverview = (params) => {
return http.request({
url: '/admin/revenue_statistics/overview',
method: 'post',
data: params
})
}
// 添加营收统计
export const add = (params) => {
return http.request({
url: '/admin/revenue_statistics/add',
method: 'post',
data: params
})
}
// 编辑营收统计
export const edit = (params) => {
return http.request({
url: '/admin/revenue_statistics/edit',
method: 'post',
data: params
})
}
// 删除营收统计
export const del = (params) => {
return http.request({
url: '/admin/revenue_statistics/del',
method: 'post',
data: params
})
}
// 导出营收统计
export const exportData = (params) => {
return http.request({
url: '/admin/revenue_statistics/export',
method: 'post',
data: params,
responseType: 'blob'
})
}

View File

@@ -0,0 +1,15 @@
import http from "@/libs/http";
class FileServe {
async upload_oos_img(row) {
let res = await http.postFormData("/sys_file/upload_oos_img", row);
return res;
}
async upload_Img(row) {
let res = await http.postFormData("/file/upload_Img", row);
return res;
}
}
const fileServe = new FileServe();
export default fileServe;

View File

@@ -0,0 +1,51 @@
import http from '@/libs/http';
/**
* 热门城市二维码配置相关API
*/
// 获取配置列表
const getHotCityQrConfigList = (params) => {
return http.get('/wch_hot_city_qr_config/list', { params });
};
// 获取所有配置
const getAllHotCityQrConfig = () => {
return http.get('/wch_hot_city_qr_config/all');
};
// 获取配置详情
const getHotCityQrConfigDetail = (id) => {
return http.get(`/wch_hot_city_qr_config/detail/${id}`);
};
// 创建配置
const createHotCityQrConfig = (data) => {
return http.post('/wch_hot_city_qr_config/create', data);
};
// 更新配置
const updateHotCityQrConfig = (id, data) => {
return http.post(`/wch_hot_city_qr_config/update/${id}`, data);
};
// 删除配置
const deleteHotCityQrConfig = (id) => {
return http.post(`/wch_hot_city_qr_config/delete/${id}`);
};
// 批量删除配置
const batchDeleteHotCityQrConfig = (ids) => {
return http.post('/wch_hot_city_qr_config/batch_delete', { ids });
};
export default {
getHotCityQrConfigList,
getAllHotCityQrConfig,
getHotCityQrConfigDetail,
createHotCityQrConfig,
updateHotCityQrConfig,
deleteHotCityQrConfig,
batchDeleteHotCityQrConfig
};

View File

@@ -0,0 +1,38 @@
import http from '@/libs/http'
export default {
// 获取所有平台账户
all(param) {
return http.get('/pla_account/all', param)
},
// 获取平台账户详情
detail(param) {
return http.get('/pla_account/detail', param)
},
// 分页查询平台账户
page(param) {
return http.post('/pla_account/page', param)
},
// 新增平台账户
add(param) {
return http.post('/pla_account/add', param)
},
// 编辑平台账户
edit(param) {
return http.post('/pla_account/edit', param)
},
// 删除平台账户
del(param) {
return http.post('/pla_account/del', param)
},
// 导出平台账户数据
exportCsv(param) {
return http.post('/pla_account/export', param)
}
}

View File

@@ -0,0 +1,30 @@
import http from '@/libs/http'
class RolePermissionServer {
async getRoles(callback) {
let res = await http.get('/SysRolePermission/Query', {})
return res
}
async getRole(row) {
let res = await http.get('/SysRolePermission/QueryByRoleId', row)
return res
}
async add(row) {
let res = await http.post('/SysRolePermission/add', row)
return res
}
async edit(row) {
let res = await http.post('/SysRolePermission/edit', row)
return res
}
async del(row) {
let res = await http.post('/SysRolePermission/del', row)
return res
}
}
const rolePermissionServer = new RolePermissionServer()
export default rolePermissionServer

View File

@@ -0,0 +1,26 @@
import http from "@/libs/http";
class RoleServer {
async list() {
let res = await http.get("/sys_role/index", {});
return res;
}
async add(row) {
let res = await http.post("/sys_role/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_role/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_role/del", row);
return res;
}
}
const roleServer = new RoleServer();
export default roleServer;

View File

@@ -0,0 +1,15 @@
import http from '@/libs/http'
class ShpProfitServer {
async report(param) {
let res = await http.post('/shpProfit/report', param)
return res
}
async list(param) {
let res = await http.post('/shpProfit/list', param)
return res
}
}
const shpProfitServer = new ShpProfitServer()
export default shpProfitServer

View File

@@ -0,0 +1,25 @@
import http from '@/libs/http'
class SpecificationServer {
async list() {
let res = await http.post('/specification/list', {})
return res
}
async add(row) {
let res = await http.post('/specification/add', row)
return res
}
async edit(row) {
let res = await http.post('/specification/edit', row)
return res
}
async del(row) {
let res = await http.post('/specification/del', row)
return res
}
}
const specificationServer = new SpecificationServer()
export default specificationServer

View File

@@ -0,0 +1,10 @@
import http from "@/libs/http";
class SysAddress {
async index(param) {
let res = await http.get("/sys_address/index", param);
return res;
}
}
const sysAddress = new SysAddress();
export default sysAddress;

View File

@@ -0,0 +1,30 @@
import http from "@/libs/http";
class SysModuleServer {
async all() {
let res = await http.get("/sys_menu/all", {});
return res;
}
async list(row) {
let res = await http.get("/sys_menu/all", row);
return res;
}
async add(row) {
let res = await http.post("/sys_menu/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_menu/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_menu/del", row);
return res;
}
}
const sysModuleServer = new SysModuleServer();
export default sysModuleServer;

View File

@@ -0,0 +1,30 @@
import http from "@/libs/http";
class SysLogServe {
async all(param) {
let res = await http.get("/sys_log/all", param);
return res;
}
async detail(param) {
let res = await http.get("/sys_log/detail", param);
return res;
}
async delete(param) {
let res = await http.get("/sys_log/delete", param);
return res;
}
async delete_all(param) {
let res = await http.get("/sys_log/delete_all", param);
return res;
}
async operates(param) {
let res = await http.get("/sys_log/operates", param);
return res;
}
}
const sys_log_serve = new SysLogServe();
export default sys_log_serve;

View File

@@ -0,0 +1,38 @@
import http from '@/libs/http';
class systemTypeClServer {
async all(param) {
let res= await http.get('/sys_project_type/all', param);
return res;
}
async page(row) {
let res= await http.post('/sys_project_type/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/sys_project_type/export", row);
return res;
}
async add(row) {
let res= await http.post('/sys_project_type/add', row);
return res;
}
async edit(row) {
let res= await http.post('/sys_project_type/edit', row);
return res;
}
async del(row) {
let res= await http.post('/sys_project_type/del', row);
return res;
}
}
const systemTypeServer = new systemTypeClServer();
export default systemTypeServer;

View File

@@ -0,0 +1,31 @@
import http from '@/libs/http'
class TableServer {
async getAll(callback) {
return await http.get('/table/index', {})
}
async add(row, callback) {
return await http.post('/table/add', row)
}
async edit(row, callback) {
return await http.post('/table/edit', row, function(res) {
callback && callback(res)
})
}
async del(row, callback) {
return await http.post('/table/del', row)
}
async autoApi(id) {
return await http.get('/template/api', { id: id })
}
async autoDb(id) {
return await http.get('/template/autoDb', { id: id })
}
}
const tableServer = new TableServer()
export default tableServer

View File

@@ -0,0 +1,40 @@
import http from "@/libs/http";
class UserServer {
async login(row) {
let res = await http.post("/sys_user/login", row);
return res;
}
async all() {
let res = await http.get("/sys_user/index", {});
return res;
}
async exportCsv(row) {
let res = http.fileExport("/sys_user/export", row);
return res;
}
async authorityMenus() {
let res = await http.post("/sys_user/authorityMenus", {});
return res;
}
async add(row) {
let res = await http.post("/sys_user/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_user/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_user/del", row);
return res;
}
}
const userServer = new UserServer();
export default userServer;

View File

@@ -0,0 +1,33 @@
import http from '@/libs/http'
export default {
// 获取职业列表
page: (params) => {
return http.post('/wch_professions/page', params)
},
// 获取所有职业
all: (params) => {
return http.post('/wch_professions/all', params)
},
// 新增职业
add: (params) => {
return http.post('/wch_professions/add', params)
},
// 更新职业
edit: (params) => {
return http.post('/wch_professions/edit', params)
},
// 删除职业
del: (params) => {
return http.post('/wch_professions/del', params)
},
// 导出职业数据
exportCsv: (params) => {
return http.post('/wch_professions/exportCsv', params)
}
}

View File

@@ -0,0 +1,30 @@
import http from "@/libs/http";
class FormFieldServer {
async all(param) {
let res = await http.get("/sys_form_field/all", param);
return res;
}
async page(row) {
let res = await http.post("/sys_form_field/page", row);
return res;
}
async add(row) {
let res = await http.post("/sys_form_field/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_form_field/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_form_field/del", row);
return res;
}
}
const formFieldServer = new FormFieldServer();
export default formFieldServer;

View File

@@ -0,0 +1,35 @@
import http from "@/libs/http";
class FormServer {
async all(param) {
let res = await http.get("/sys_form/all", param);
return res;
}
async page(row) {
let res = await http.post("/sys_form/page", row);
return res;
}
async generate(row) {
let res = await http.post("/sys_form/generate", row);
return res;
}
async add(row) {
let res = await http.post("/sys_form/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_form/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_form/del", row);
return res;
}
}
const formServer = new FormServer();
export default formServer;

View File

@@ -0,0 +1,49 @@
import http from "@/libs/http";
class MenuServer {
async list(row) {
let res = await http.get("/sys_menu/index", row);
return res;
}
async generate(row) {
let res = await http.post("/sys_menu/generate", row);
return res;
}
async add(row) {
let res = await http.post("/sys_menu/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_menu/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_menu/del", row);
return res;
}
async generate(row) {
let res = await http.post("/form/generate", row);
return res;
}
async generateModel(row) {
let res = await http.post("/model/generate", row);
return res;
}
async modelAll(row) {
let res = await http.post("/model/all", row);
return res;
}
async modelInterface(row) {
let res = await http.post("/model/interface", row);
return res;
}
}
const menuServer = new MenuServer();
export default menuServer;

View File

@@ -0,0 +1,32 @@
import http from "@/libs/http";
class ModelFieldServer {
async all(row) {
let res = await http.get("/sys_model_field/all", row);
return res;
}
async allByKey(row) {
let res = await http.get("/sys_model_field/allByKey", row, {
hideLoad: true
});
return res;
}
async add(row) {
let res = await http.post("/sys_model_field/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_model_field/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_model_field/del", row);
return res;
}
}
const modelFieldServer = new ModelFieldServer();
export default modelFieldServer;

View File

@@ -0,0 +1,40 @@
import http from "@/libs/http";
class ModelServer {
async interface(row) {
let res = await http.post("/sys_model/interface", row);
return res;
}
async all() {
let res = await http.get("/sys_model/all", {});
return res;
}
async detail(row) {
let res = await http.get("/sys_model/detail", row);
return res;
}
async regenerate(row) {
let res = await http.post("/sys_model/regenerate", row);
return res;
}
async add(row) {
let res = await http.post("/sys_model/add", row);
return res;
}
async edit(row) {
let res = await http.post("/sys_model/edit", row);
return res;
}
async del(row) {
let res = await http.post("/sys_model/del", row);
return res;
}
}
const modelServer = new ModelServer();
export default modelServer;

View File

@@ -0,0 +1,29 @@
import http from "@/libs/http";
class ParamSetupServer {
async getAll() {
return await http.get("/sys_parameter/index", {});
}
async getOne(key) {
return await http.get("/sys_parameter/key", { key });
}
async add(row) {
return await http.post("/sys_parameter/add", row);
}
async edit(row) {
return await http.post("/sys_parameter/edit", row);
}
async setSysConfig(row) {
return await http.post("/sys_parameter/setSysConfig", row);
}
async del(row) {
return await http.post("/sys_parameter/del", row);
}
}
const paramSetupServer = new ParamSetupServer();
export default paramSetupServer;

View File

@@ -0,0 +1,29 @@
import http from "@/libs/http";
class SysControlTypeServer {
async all(param) {
let res = await http.get("/sys_control_type/all", param);
return res;
}
async page(row) {
let res = await http.post("/sys_control_type/page", row);
return res;
}
async add(param) {
let res = await http.post("/sys_control_type/add", param);
return res;
}
async edit(param) {
let res = await http.post("/sys_control_type/edit", param);
return res;
}
async del(param) {
let res = await http.post("/sys_control_type/del", param);
return res;
}
}
const sysControlTypeServer = new SysControlTypeServer();
export default sysControlTypeServer;

View File

@@ -0,0 +1,35 @@
import http from '@/libs/http';
class recommend_blocksClServer {
async all(param) {
let res= await http.get('/recommend_blocks/all', param);
return res;
}
async page(row) {
let res= await http.post('/recommend_blocks/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/recommend_blocks/export", row);
return res;
}
async add(row) {
let res= await http.post('/recommend_blocks/add', row);
return res;
}
async edit(row) {
let res= await http.post('/recommend_blocks/edit', row);
return res;
}
async del(row) {
let res= await http.post('/recommend_blocks/del', row);
return res;
}
}
const recommend_blocksServer = new recommend_blocksClServer();
export default recommend_blocksServer;

View File

@@ -0,0 +1,35 @@
import http from '@/libs/http';
class user_followsClServer {
async all(param) {
let res= await http.get('/user_follows/all', param);
return res;
}
async page(row) {
let res= await http.post('/user_follows/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/user_follows/export", row);
return res;
}
async add(row) {
let res= await http.post('/user_follows/add', row);
return res;
}
async edit(row) {
let res= await http.post('/user_follows/edit', row);
return res;
}
async del(row) {
let res= await http.post('/user_follows/del', row);
return res;
}
}
const user_followsServer = new user_followsClServer();
export default user_followsServer;

View File

@@ -0,0 +1,35 @@
import http from '@/libs/http';
class user_trackingClServer {
async all(param) {
let res= await http.get('/user_tracking/all', param);
return res;
}
async page(row) {
let res= await http.post('/user_tracking/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/user_tracking/export", row);
return res;
}
async add(row) {
let res= await http.post('/user_tracking/add', row);
return res;
}
async edit(row) {
let res= await http.post('/user_tracking/edit', row);
return res;
}
async del(row) {
let res= await http.post('/user_tracking/del', row);
return res;
}
}
const user_trackingServer = new user_trackingClServer();
export default user_trackingServer;

View File

@@ -0,0 +1,53 @@
import http from '@/libs/http'
export default {
// 获取城市列表
getCitiesList: (params) => {
return http.post('/wch_cities/page', params)
},
// 获取所有城市
getAllCities: (params) => {
return http.get('/wch_cities/all', params)
},
// 获取城市详情
getCityDetail: (params) => {
return http.get('/wch_cities/detail', params)
},
// 新增城市
addCity: (params) => {
return http.post('/wch_cities/add', params)
},
// 更新城市
updateCity: (params) => {
return http.post('/wch_cities/edit', params)
},
// 删除城市
deleteCity: (params) => {
return http.post('/wch_cities/del', params)
},
// 批量删除城市
batchDeleteCities: (params) => {
return http.post('/wch_cities/batch_delete', params)
},
// 导出城市数据
exportCities: (params) => {
return http.post('/wch_cities/export', params)
},
// 获取热门城市
getHotCities: (params) => {
return http.get('/wch_cities/hot', params)
},
// 设置热门城市
setHotCities: (params) => {
return http.post('/wch_cities/set_hot', params)
}
}

View File

@@ -0,0 +1,35 @@
import http from '@/libs/http';
class wch_citiesClServer {
async all(param) {
let res= await http.get('/wch_cities/all', param);
return res;
}
async page(row) {
let res= await http.post('/wch_cities/page', row);
return res;
}
async exportCsv(row) {
let res = http.fileExport("/wch_cities/export", row);
return res;
}
async add(row) {
let res= await http.post('/wch_cities/add', row);
return res;
}
async edit(row) {
let res= await http.post('/wch_cities/edit', row);
return res;
}
async del(row) {
let res= await http.post('/wch_cities/del', row);
return res;
}
}
const wch_citiesServer = new wch_citiesClServer();
export default wch_citiesServer;