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.
yanzong/app/api/service/Data.php

71 lines
1.5 KiB

<?php
namespace app\api\service;
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 [
//订单金额
"orderMoney" => 0,
//订单数
"orderCount" => 0,
//支持人数
'orderPayUser' => 0,
//订单成本金额
'orderCostMoney' => 0,
//预估利益
'orderInterest' => 0,
//付费会员数
'payMemberCount' => 0,
//付费分销商数
'payDealerCount' => 0
];
}
/**
* 退款数据
* @return mixed
*/
public function getRefundData($startDate = null, $endDate = null): array {
return [
'refundCount' => 0,
'refundTotalMoney' => 0
];
}
/**
* 用户数据
* @return mixed
*/
public function getUserData($startDate = null, $endDate = null): array {
return [
'visitorCount' => 0,
'viewCount' => 0,
'newUserCount' => 0,
];
}
/**
* 佣金数据
* @return mixed
*/
public function getCommissionData($startDate = null, $endDate = null) : array{
return [
'settleTotalMoney' => 0,
'noSettleTotalMoney' => 0
];
}
}