Commit 30bf31df by xmy

feat:评论

parent 1eab15de
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/7/26
* Time: 16:00
*/
namespace Hdll\Services\Comments\Enum;
class StarEnum
{
const STAR = 1;//点赞
const CANCEL = 2;//取消点赞
const HAS_START_KEY = 'comments:hasStar';
const STAR_KEY = 'comments:star';
const VIRTUAL_COMMENTS = 0; //虚拟评论
const REAL_COMMENTS = 1;//真实评论
const CHILD_COMMENTS = 2;//子评论
const CATEGORY_ACTIVITY_TLP = 0;//活动模版分类
}
\ No newline at end of file
<?php
namespace Hdll\Services\Comments\Lib;
use Swoft\Core\ResultInterface;
/**
* @method ResultInterface deferGetNum(array $itemIds)
* Class CommentsInterface
* @package Hdll\Services\CommentsInterface\Lib
*/
interface CommentsInterface
{
/**
* 获取item评论数
* @param array $itemIds
* @return array
* [1=>['virtual'=>1,'real'=>2]]
* @throws BaseException
*/
public function getNum(array $itemIds);
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment