185 lines
4.7 KiB
JavaScript
185 lines
4.7 KiB
JavaScript
|
|
import request from '@/utils/request';
|
|
import qs from 'qs';
|
|
import { genQueryParam } from '@/utils/maintainer';
|
|
// 活动配置 相关接口(一级菜单:活动配置)
|
|
|
|
// 分区接口
|
|
export const listPartitionInfo = query => {
|
|
return request({
|
|
url: '/partition/listPartitionInfo',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
|
|
// 获取 周期列表
|
|
export const getDateCycleList = query => {
|
|
return request({
|
|
url: '/anchorSalaryBill/dateCycle/list',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
|
|
// 获取 公会钻石薪资流水统计 列表
|
|
export const getAgencyDiamondFlow = query => {
|
|
return request({
|
|
url: '/agency/diamond/flow/list',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
|
|
// 公会钻石薪资流水统计 导出
|
|
// export const agencyDiamondFlowExport = query => {
|
|
// return request({
|
|
// url: `/agency/diamond/flow/export`,
|
|
// method: 'post',
|
|
// params: query,
|
|
// responseType: 'blob'
|
|
// });
|
|
// };
|
|
export const agencyDiamondFlowExport = query => {
|
|
window.location.href = `/agency/diamond/flow/export?${genQueryParam(query)}`;
|
|
return;
|
|
};
|
|
// 主播薪资操作(不用分区)
|
|
export const getAnchorSalaryBill = query => {
|
|
return request({
|
|
url: '/anchorSalaryBill/anchorSummary/list',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
|
|
// salaryType 1钻石兑换薪资明细 2 薪资转赠充值代理 明细 3薪资转增公会长明细 4官方提现 6 薪资兑换金币明细
|
|
export const anchorSalaryBillDetail = query => {
|
|
return request({
|
|
url: '/anchorSalaryBill/detail/list',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
|
|
// 充值代理转增薪资
|
|
export const chargeAgentList = query => {
|
|
return request({
|
|
url: '/anchorSalaryBill/chargeAgent/list',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
// 充值代理转增薪资 总值
|
|
export const chargeAgentSum = query => {
|
|
return request({
|
|
url: '/anchorSalaryBill/chargeAgent/sum',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
|
|
// 官方提现记录 列表
|
|
export const agencyWithdrawList = query => {
|
|
return request({
|
|
url: '/agencyWithdrawExamine/list',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
// 官方提现记录 导出
|
|
export const agencyWithdrawExamineExport = query => {
|
|
return request({
|
|
url: `/agencyWithdrawExamine/export`,
|
|
method: 'post',
|
|
params: query,
|
|
responseType: 'blob'
|
|
});
|
|
};
|
|
// 官方提现记录 结算
|
|
// export const agencyWithdrawSet = query => {
|
|
// return request({
|
|
// url: '/agencyWithdrawExamine/settle',
|
|
// method: 'post',
|
|
// params: query
|
|
// });
|
|
// };
|
|
export const agencyWithdrawSet = query => {
|
|
return request({
|
|
url: '/agencyWithdrawExamine/batchSettle',
|
|
method: 'post',
|
|
params: query
|
|
});
|
|
};
|
|
// 官方提现记录 批量结算
|
|
export const agencyWithdrawBatchSet = query => {
|
|
return request({
|
|
url: '/agencyWithdrawExamine/batchSettle',
|
|
method: 'post',
|
|
params: query
|
|
});
|
|
};
|
|
// 官方提现记录 批量驳回
|
|
export const batchReject = query => {
|
|
return request({
|
|
url: '/agencyWithdrawExamine/batchReject',
|
|
method: 'post',
|
|
params: query
|
|
});
|
|
};
|
|
|
|
// 公会开业数据统计
|
|
export const agencyOpenList = query => {
|
|
return request({
|
|
url: '/agency/open/list',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
// 公会开业数据 详情
|
|
export const agencyOpenDetail = query => {
|
|
return request({
|
|
url: '/agency/open/detail/list',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
// 公会优秀主播数据统计
|
|
export const excellentAnchorList = query => {
|
|
return request({
|
|
url: '/agency/open/excellentAnchor/list',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
// 公会优秀主播数据统计
|
|
export const excellentAnchorDetail = query => {
|
|
return request({
|
|
url: '/agency/open/excellentAnchor/detail/list',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
// 官方提现-国家
|
|
export const adminCountry = query => {
|
|
return request({
|
|
url: '/admin/country/list',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
|
|
// =====================================钻石充值流水=======================================
|
|
// 查询
|
|
export const diamondStatistics = query => {
|
|
return request({
|
|
url: '/admin/guild/diamondStatistics',
|
|
method: 'get',
|
|
params: query
|
|
});
|
|
};
|
|
// 导出
|
|
export const diamondStatisticsExport = query => {
|
|
window.location.href = `/admin/guild/diamondStatistics/export?${genQueryParam(query)}`;
|
|
return;
|
|
}; |