hyperf-gateway/app/JsonRpc/UserExternalServiceInterface.php

40 lines
834 B
PHP
Raw Normal View History

2022-11-07 16:29:37 +08:00
<?php
namespace App\JsonRpc;
use Hyperf\HttpServer\Contract\RequestInterface;
2022-11-07 16:29:37 +08:00
interface UserExternalServiceInterface
{
2022-11-08 15:45:26 +08:00
/**
* 获取用户信息
*
* @param string $openid
* @param array $field
2022-11-08 15:45:26 +08:00
* @return array
*/
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;
/**
* 获取紧急联系人关系列表
*
* @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
}