UserActionService.class.php
1.37 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
<?php
/**
* Created by PhpStorm.
* User: zhonglei
* Date: 17/7/25
* Time: 11:36
*/
namespace Common\Service;
use Common\Model\UserActionModel;
class UserActionService extends AbstractService
{
// 构造方法
public function __construct()
{
parent::__construct();
$this->_d = new UserActionModel();
}
/**
* 根据用户ID计算今日动作总数
* @author zhonglei
* @param array $action_keys 动作Key数组
* @param string $uid 用户ID
* @return array
* + string action_key 动作
* + int total 动作总数
* + int data_total 不重复的数据总数
*/
public function countTodayActionKeyByUid($action_keys, $uid)
{
return $this->_d->countTodayActionKeyByUid($action_keys, $uid);
}
/**
* 根据用户ID计算今日动作总数
* @author zhonglei
* @param array $action_keys 动作Key数组
* @param string $uid 用户ID
* @return array
* + string action_key 动作
* + int total 动作总数
* + int data_total 不重复的数据总数
*/
public function countTodayActionKeyByUidWithOutDomain($action_keys, $uid)
{
return $this->_d->countTodayActionKeyByUidWithOutDomain($action_keys, $uid);
}
}