You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
986 B
46 lines
986 B
9 months ago
|
<?php
|
||
|
|
||
|
namespace app\api\service\statistics;
|
||
|
|
||
|
use app\common\service\BaseService;
|
||
|
|
||
|
/**
|
||
|
* 数据概况服务类
|
||
|
* Class Data
|
||
|
* @package app\api\service\statistics
|
||
|
*/
|
||
|
class Data extends BaseService
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* 订单数据
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function getOrderData($startDate = null, $endDate = null): array {
|
||
|
return (new OrderData())->getOrderData();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 退款数据
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function getRefundData($startDate = null, $endDate = null): array {
|
||
|
return (new RefundData())->getRefundData();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 用户数据
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function getUserData($startDate = null, $endDate = null): array {
|
||
|
return (new UserData())->getUserData();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 佣金数据
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function getCommissionData($startDate = null, $endDate = null) : array{
|
||
|
return (new CommissionData())->getCommissionData();
|
||
|
}
|
||
|
}
|