代码提交

This commit is contained in:
wong
2025-06-06 17:09:27 +08:00
parent c0f80df780
commit 034d7f6c48
6 changed files with 446 additions and 0 deletions

View 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);
}

View File

@@ -0,0 +1,13 @@
<?php
namespace library\s2\interfaces;
interface DeviceInterface
{
/**
* 获取设备列表
* @param array $params
* @return array
*/
public function getlist(array $params): array;
}

View 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;
}