Commit 6c76b5e0 authored by 夏彬's avatar 夏彬

添加关注api

parent 18050765
<?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
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