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.
 
 

35 lines
876 B

<?php
namespace App\Service;
use App\Model\UserRelationBind;
class UserCommunityBindService implements UserRelationBindServiceInterface
{
/**
* @inheritDoc
*/
public function bindLimitByUser($bind_type, $source_id, $user_id, $extra_data)
{
return UserRelationBind::query()->updateOrCreate(
['bind_type' => $bind_type, 'user_id' => $user_id],
['source_id' => $source_id, 'json_data' => $extra_data]
);
}
public function bindLimitBySource($bind_type, $source_id, $user_id, $extra_data)
{
// TODO: Implement bindLimitBySource() method.
}
public function bind($bind_type, $source_id, $user_id, $extra_data)
{
// TODO: Implement bind() method.
}
public function isBinded($bind_type, $source_id, $user_id)
{
// TODO: Implement isBinded() method.
}
}