hyperf-gateway/app/JsonRpc/UserExternalServiceInterface.php

22 lines
405 B
PHP
Raw Normal View History

2022-11-07 16:29:37 +08:00
<?php
namespace App\JsonRpc;
interface UserExternalServiceInterface
{
2022-11-08 15:45:26 +08:00
/**
* 获取用户信息
*
* @param string $name
* @return array
*/
public function getUserInfo(string $name = 'test') : array;
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-07 16:29:37 +08:00
}