You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.3 KiB
48 lines
1.3 KiB
<?php
|
|
|
|
namespace App\Service\v3\Interfaces;
|
|
|
|
interface UserRelationBindServiceInterface
|
|
{
|
|
/**
|
|
* 绑定
|
|
* 依据用户绑定一个关系,即每次都是新的绑定关系,原来的绑定关系解除(user_id不变,更新其他)
|
|
* @param $bind_type
|
|
* @param $source_id
|
|
* @param $user_id
|
|
* @param $extra_data
|
|
* @return mixed
|
|
*/
|
|
public function bindLimitByUser($bind_type, $source_id, $user_id, $extra_data);
|
|
|
|
/**
|
|
* 绑定
|
|
* 依据绑定人(根据bind_type确定)绑定一个关系,即每次都是新的绑定关系,原来的绑定关系解除(source_id不变,更新其他)
|
|
* @param $bind_type
|
|
* @param $source_id
|
|
* @param $user_id
|
|
* @param $extra_data
|
|
* @return mixed
|
|
*/
|
|
public function bindLimitBySource($bind_type, $source_id, $user_id, $extra_data);
|
|
|
|
/**
|
|
* 绑定
|
|
* 始终只绑定一个关系
|
|
* @param $bind_type
|
|
* @param $source_id
|
|
* @param $user_id
|
|
* @param $extra_data
|
|
* @return mixed
|
|
*/
|
|
public function bind($bind_type, $source_id, $user_id, $extra_data);
|
|
|
|
/**
|
|
* 是否已经存在绑定关系
|
|
* @param $bind_type
|
|
* @param $source_id
|
|
* @param $user_id
|
|
* @return mixed
|
|
*/
|
|
public function isBinded($bind_type, $source_id, $user_id);
|
|
}
|