hyperf-gateway/app/JsonRpc/UserExternalServiceInterface.php

22 lines
405 B
PHP

<?php
namespace App\JsonRpc;
interface UserExternalServiceInterface
{
/**
* 获取用户信息
*
* @param string $name
* @return array
*/
public function getUserInfo(string $name = 'test') : array;
/**
* 通过微信授权新建用户
*
* @param string $openid
* @return array
*/
public function wechatNewUser(string $openid) : array;
}