Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
ed3f6baa
Commit
ed3f6baa
authored
Mar 19, 2019
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加论坛用户的关注与取关接口
parent
6e671fd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
User.php
src/bbs/User.php
+29
-0
No files found.
src/bbs/User.php
View file @
ed3f6baa
...
...
@@ -100,4 +100,33 @@ class User extends Client
return
self
::
call
(
'user.inactive'
,
compact
(
'uIds'
));
}
/**
* 关注一个用户
*
* @param int $uid 当前用户UID
* @param int $followUid 要关注的用户UID
* @param bool $silent 是否静默关注,是则不会发送消息提示,默认否
* @return void
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
follow
(
$uid
,
$followUid
,
$silent
=
false
)
{
return
self
::
call
(
'user.follow'
,
compact
(
'uid'
,
'followUid'
));
}
/**
* 取消关注一个用户
*
* @param int $uid 当前用户UID
* @param int $unfollowUid 要取消关注的用户UID
* @return void
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
unfollow
(
$uid
,
$unfollowUid
)
{
return
self
::
call
(
'user.unfollow'
,
compact
(
'uid'
,
'unfollowUid'
));
}
}
\ 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