Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
3fbcabaf
Commit
3fbcabaf
authored
Nov 22, 2019
by
xmy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'comments'
parents
ae149c03
30bf31df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
src/Comments/Enum/StarEnum.php
+25
-0
src/Comments/Lib/CommentsInterface.php
+26
-0
No files found.
src/Comments/Enum/StarEnum.php
0 → 100644
View file @
3fbcabaf
<?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
src/Comments/Lib/CommentsInterface.php
0 → 100644
View file @
3fbcabaf
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment