2022-11-07 16:29:37 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\JsonRpc;
|
|
|
|
|
2022-11-16 15:41:43 +08:00
|
|
|
use Hyperf\HttpServer\Contract\RequestInterface;
|
|
|
|
|
2022-11-07 16:29:37 +08:00
|
|
|
interface UserExternalServiceInterface
|
|
|
|
{
|
2022-11-08 15:45:26 +08:00
|
|
|
/**
|
|
|
|
* 获取用户信息
|
|
|
|
*
|
2022-11-15 16:33:33 +08:00
|
|
|
* @param string $openid
|
|
|
|
* @param array $field
|
2022-11-08 15:45:26 +08:00
|
|
|
* @return array
|
|
|
|
*/
|
2022-11-15 16:33:33 +08:00
|
|
|
public function getUserInfo(string $openid, array $field = []) : array;
|
2022-11-08 15:45:26 +08:00
|
|
|
|
2022-11-07 16:29:37 +08:00
|
|
|
/**
|
|
|
|
* 通过微信授权新建用户
|
|
|
|
*
|
2022-11-07 16:38:48 +08:00
|
|
|
* @param string $openid
|
2022-11-07 16:29:37 +08:00
|
|
|
* @return array
|
|
|
|
*/
|
2022-11-07 16:38:48 +08:00
|
|
|
public function wechatNewUser(string $openid) : array;
|
2022-11-16 15:41:43 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取紧急联系人关系列表
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function getEmergencyContactKinshipList() : array;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 保存紧急联系人
|
|
|
|
*
|
|
|
|
* @param RequestInterface $request
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function addEmergencyContact(RequestInterface $request) : array;
|
2022-11-07 16:29:37 +08:00
|
|
|
}
|