调整所有返工接口的响应返回数据,为兼容RPC调用做支持
This commit is contained in:
23
Server/extend/library/s2/interfaces/AccountInterface.php
Normal file
23
Server/extend/library/s2/interfaces/AccountInterface.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace library\s2\interfaces;
|
||||
|
||||
interface AccountInterface
|
||||
{
|
||||
/**
|
||||
* 创建账号
|
||||
*
|
||||
* @param string $accout
|
||||
* @param string $password
|
||||
* @return mixed
|
||||
*/
|
||||
public function create(string $accout, string $password);
|
||||
|
||||
/**
|
||||
* 删除账号
|
||||
*
|
||||
* @param int $id
|
||||
* @return mixed
|
||||
*/
|
||||
public function delete(int $id);
|
||||
}
|
||||
13
Server/extend/library/s2/interfaces/DeviceInterface.php
Normal file
13
Server/extend/library/s2/interfaces/DeviceInterface.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace library\s2\interfaces;
|
||||
|
||||
interface DeviceInterface
|
||||
{
|
||||
/**
|
||||
* 获取设备列表
|
||||
* @param array $params
|
||||
* @return array
|
||||
*/
|
||||
public function getlist(array $params): array;
|
||||
}
|
||||
15
Server/extend/library/s2/interfaces/LoginInterface.php
Normal file
15
Server/extend/library/s2/interfaces/LoginInterface.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace library\s2\interfaces;
|
||||
|
||||
interface LoginInterface
|
||||
{
|
||||
/**
|
||||
* 创建账号
|
||||
*
|
||||
* @param string $accout
|
||||
* @param string $password
|
||||
* @return mixed
|
||||
*/
|
||||
public function login(string $accout, string $password): LoginInterface;
|
||||
}
|
||||
Reference in New Issue
Block a user