MonthCountController.php
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
namespace App\Http\Controllers\Bside\HomeCount;
use App\Enums\Common\Code;
use App\Helper\FormGlobalsoApi;
use App\Http\Controllers\Bside\BaseController;
use App\Http\Logic\Bside\HomeCount\MonthCountLogic;
use App\Models\Project\DeployBuild;
use Carbon\Carbon;
use Illuminate\Support\Facades\DB;
/**
* @remark :月统计报告
* @name :MonthCountController
* @author :lyh
* @time :2023/6/30 17:53
*/
class MonthCountController extends BaseController
{
/**
* @remark :月统计报告
* @name :Count
* @author :lyh
* @method :post
* @time :2023/6/30 17:58
*/
public function lists(MonthCountLogic $monthCountLogic){
$lists = $monthCountLogic->getCountLists($this->map,$this->order);
$this->response('success',Code::SUCCESS,$lists);
}
/**
* @remark :根据时间获取ip,pv
* @name :getIpPvCount
* @author :lyh
* @method :post
* @time :2023/7/3 11:04
*/
public function getIpPvCount(MonthCountLogic $monthCountLogic){
$lists = $monthCountLogic->getIpPvCount();
$this->response('success',Code::SUCCESS,$lists);
}
/**
* @remark :获取关键字
* @name :getKeyword
* @author :lyh
* @method :post
* @time :2023/7/4 9:58
*/
public function getKeyword(MonthCountLogic $monthCountLogic){
$data = $monthCountLogic->getKeywordLists();
$this->response('success',Code::SUCCESS,$data);
}
}