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
6c76b5e0
Commit
6c76b5e0
authored
Nov 29, 2017
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加关注api
parent
18050765
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
Follow.php
src/ucenter/Follow.php
+52
-0
No files found.
src/ucenter/Follow.php
0 → 100644
View file @
6c76b5e0
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 29/11/2017
* Time: 2:53 PM
*/
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
class
Follow
extends
Client
{
/**
* @param $userId
* @param $followUserId
* @return mixed
*/
public
static
function
add
(
$userId
,
$followUserId
)
{
return
self
::
call
(
'follow.add'
,
compact
(
'userId'
,
'followUserId'
));
}
/**
* @param $userId
* @param $followUserId
* @return mixed
*/
public
static
function
delete
(
$userId
,
$followUserId
)
{
return
self
::
call
(
'follow.delete'
,
compact
(
'userId'
,
'followUserId'
));
}
/**
* 判断是否关注
* @param $userId
* @param $followUserId
* @return bool
*/
public
static
function
check
(
$userId
,
$followUserId
)
{
return
self
::
call
(
'follow.check'
,
compact
(
'userId'
,
'followUserId'
));
}
}
\ 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