import request from '/@/utils/request';
import { appID } from '/@/api/common/common';

//查询全部版本详情
export const getTrendDetailAll = (data?: Object) => {
	return request({
		url: '/stats/user/version/detail',
		method: 'post',
		data:{appId: appID, ...data},
	});
};
//查询单个版本详情
export const getTrendDetailOne = (data?: Object) => {
	return request({
		url: '/stats/user/version/single/detail',
		method: 'post',
		data:{appId: appID, ...data},
	});
};
//查询单个版本用户来源详情
export const getTrendDetailSource = (data?: Object) => {
	return request({
		url: '/stats/user/version/distribution/detail',
		method: 'post',
		data:{appId: appID, ...data},
	});
};

//升级用户趋势图
export const getTrendUpgrade = (data?: Object) => {
	return request({
		url: '/stats/user/upgrade/trend',
		method: 'post',
		data:{appId: appID, ...data},
	});
};

//查询单个版本用户来源
export const getTrendSource = (data?: Object) => {
	return request({
		url: '/stats/user/version/distribution',
		method: 'post',
		data:{appId: appID, ...data},
	});
};