Compare commits
2 Commits
c98b49f7fc
...
2e86843115
Author | SHA1 | Date | |
---|---|---|---|
2e86843115 | |||
4d80a727f6 |
@ -1,4 +1,4 @@
|
||||
import weChatHttp from './weChatHttp.js'
|
||||
import http from './http.js'
|
||||
|
||||
/**
|
||||
* 获取用户活跃度概览数据
|
||||
@ -8,7 +8,7 @@ import weChatHttp from './weChatHttp.js'
|
||||
* @returns {Promise} 概览数据
|
||||
*/
|
||||
export function getUserActivityOverview(params) {
|
||||
return weChatHttp.get(`/Server/GetUserActivityOverview?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
return http.get(`UserActivity/GetUserActivityOverview?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -19,7 +19,7 @@ export function getUserActivityOverview(params) {
|
||||
* @returns {Promise} 活跃用户数据
|
||||
*/
|
||||
export function getActiveUsersData(params) {
|
||||
return weChatHttp.get(`/Server/GetActiveUsersData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
return http.get(`UserActivity/GetActiveUsersData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ export function getActiveUsersData(params) {
|
||||
* @returns {Promise} 地域分析数据
|
||||
*/
|
||||
export function getRegionData(params) {
|
||||
return weChatHttp.get(`/Server/GetRegionData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
return http.get(`UserActivity/GetRegionData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -41,7 +41,7 @@ export function getRegionData(params) {
|
||||
* @returns {Promise} 人口统计数据
|
||||
*/
|
||||
export function getDemographicsData(params) {
|
||||
return weChatHttp.get(`/Server/GetDemographicsData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
return http.get(`UserActivity/GetDemographicsData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -55,7 +55,7 @@ export function getDemographicsData(params) {
|
||||
* @returns {Promise} 功能使用量数据
|
||||
*/
|
||||
export function getFeatureUsageData(params) {
|
||||
let url = `/Server/GetFeatureUsageData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`;
|
||||
let url = `UserActivity/GetFeatureUsageData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`;
|
||||
|
||||
if (params.module) {
|
||||
url += `&module=${encodeURIComponent(params.module)}`;
|
||||
@ -67,7 +67,7 @@ export function getFeatureUsageData(params) {
|
||||
url += `&button=${encodeURIComponent(params.button)}`;
|
||||
}
|
||||
|
||||
return weChatHttp.get(url);
|
||||
return http.get(url);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -78,7 +78,7 @@ export function getFeatureUsageData(params) {
|
||||
* @returns {Promise} 新增用户数据
|
||||
*/
|
||||
export function getNewUsersData(params) {
|
||||
return weChatHttp.get(`/Server/GetNewUsersData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
return http.get(`UserActivity/GetNewUsersData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -89,7 +89,7 @@ export function getNewUsersData(params) {
|
||||
* @returns {Promise} 用户总数数据
|
||||
*/
|
||||
export function getTotalUsersData(params) {
|
||||
return weChatHttp.get(`/Server/GetTotalUsersData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
return http.get(`UserActivity/GetTotalUsersData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -100,5 +100,5 @@ export function getTotalUsersData(params) {
|
||||
* @returns {Promise} 平均使用时长数据
|
||||
*/
|
||||
export function getAvgUsageTimeData(params) {
|
||||
return weChatHttp.get(`/Server/GetAvgUsageTimeData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
return http.get(`UserActivity/GetAvgUsageTimeData?timeRange=${params.timeRange}&date=${params.date.toISOString()}`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user