全栈小学生 abaa4201fb add shop
2026-01-13 09:16:43 +08:00

57 lines
1.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace addon\shop\app\service\admin;
use addon\shop\app\service\core\CoreStatService;
use core\base\BaseAdminService;
/**
* 统计
* Class StatService
* @package app\service\admin
*/
class StatService extends BaseAdminService
{
/**
* 获取统计数据
* @param string $start_date
* @param string $end_date
* @return array
*/
public function getStat(string $start_date = '', string $end_date = '')
{
return ( new CoreStatService() )->getStat($start_date, $end_date);
}
/**
* 获取区间统计数据
* @param string $start_date
* @param string $end_date
* @return array|null
*/
public function getStatData(string $start_date, string $end_date)
{
return ( new CoreStatService() )->getStatData($start_date, $end_date);
}
/**
* 获取某天统计数据
* @param string $start_date
* @param string $end_date
* @return array|null
*/
public function getHourStatData(string $date)
{
return ( new CoreStatService() )->getHourStatData($date);
}
}