LikeService.class.php
655 Bytes
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
<?php
/**
* 点赞表Service
* @author: houyingcai
* @email: 594609175@qq.com
* @date : 2017-08-29 16:40:17
* @version $Id$
*/
namespace Common\Service;
use Common\Model\LikeModel;
class LikeService extends AbstractService
{
// 点赞类型:评价
const LIKE_TYPE_COMMENT = 1;
// 点赞类型:照片
const LIKE_TYPE_PIC = 2;
// 用户未点赞
const USER_UNLIKE = 0;
// 用户已点赞
const USER_LIKE = 1;
/** @var LikeModel */
protected $_d;
public function __construct()
{
// 实例化点赞model
$this->_d = new LikeModel();
parent::__construct();
}
}