index.js
877 Bytes
import request from './request'
import RequestMethods from './request.methods'
const path = 'index/'
const path1 = 'customermgr/'
function getTotal (data) {
data.method = `${path}getUcSummaryStatistic`
return request(data)
}
function getDeviceStatistic (data) {
data.method = `${path}getUcDeviceActivationStatistic`
return request(data)
}
function getUserStatistic (data) {
data.method = `${path}getUcUserActivityStatistic`
return request(data)
}
function getAppStatistic (data) {
data.method = `${path}getUcAppDownloadStatistic`
return request(data)
}
function getAddress (data) {
data.method = `${path1}getAddressOptions`
return request(data)
}
function register (data) {
data.method = `${path1}register`
return request(data, RequestMethods.POST)
}
export { getTotal, getDeviceStatistic, getUserStatistic, getAppStatistic, getAddress, register }