后台框架
import axios from 'axios'
// login.hj.u2sy.cn改为login.test.u2sy.cn
const url = 'http://login.test.u2sy.cn/dianshang/login/'
// startDate=2020-01-01&endDate=2022-01-01
const api = {
userControl: 'userControl.do',
onlinepeak: 'onlinepeak.do',
getServiers: 'getServiers.do',
loginStatistics: 'loginStatistics.do',
retentionRate: 'search/retentionRate.do',
getOnlineDuration: 'getOnlineDuration.do',
giftBag: 'search/giftBag.do',
workPanel: 'search/workPanel.do'
}
// 工单面板
export function postWorkPanel (requestParameters) {
return axios({
url: url + api.workPanel,
method: 'post',
responseType: 'json', // 默认的
params: requestParameters
})
}
// 礼包面板接口
export function postGiftBag (requestParameters) {
return axios({
url: url + api.giftBag,
method: 'post',
responseType: 'json', // 默认的
params: requestParameters
})
}
// 在线角色实时统计查询接口
export function postUserControl1 (requestParameters) {
return axios({
url: url + api.userControl,
method: 'post',
responseType: 'json', // 默认的
params: requestParameters
})
}
// 在线峰值查询接口
export function postOnlinepeak (requestParameters) {
return axios({
url: url + api.onlinepeak,
method: 'post',
params: requestParameters
})
}
// 获取所有大区接口
export function getServiers (requestParameters) {
return axios({
url: url + api.getServiers,
method: 'get',
params: requestParameters
})
}
// 登录统计查询接口
export function postLoginStatistics (requestParameters) {
return axios({
url: url + api.loginStatistics,
method: 'post',
params: requestParameters
})
}
// 玩家留存
export function postRetentionRate (requestParameters) {
return axios({
url: url + api.retentionRate,
method: 'post',
params: requestParameters
})
}
// 平均在线时长
export function postOnlineDuration (requestParameters) {
return axios({
url: url + api.getOnlineDuration,
method: 'post',
params: requestParameters
})
}
本文来自博客园,作者:zjxgdq,转载请注明原文链接:https://www.cnblogs.com/zjxzhj/p/14842026.html