基础数据-校区服务
This commit is contained in:
@@ -1,40 +1,33 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Aether;
|
||||
|
||||
interface AetherCrudInterface
|
||||
{
|
||||
/**
|
||||
* 列表
|
||||
* @return array
|
||||
* 列表.
|
||||
*/
|
||||
public function list(): array;
|
||||
|
||||
/**
|
||||
* 查询
|
||||
* @param int $id
|
||||
* @return object
|
||||
* 查询.
|
||||
*/
|
||||
public function detail(int $id): object;
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param array $data
|
||||
* @return int
|
||||
* 新增.
|
||||
*/
|
||||
public function create(array $data): int;
|
||||
|
||||
/**
|
||||
* 更新
|
||||
* @param int $id
|
||||
* @param array $data
|
||||
* @return bool
|
||||
* 更新.
|
||||
*/
|
||||
public function update(int $id, array $data): bool;
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @param int $id
|
||||
* @return bool
|
||||
* 删除.
|
||||
*/
|
||||
public function delete(int $id): bool;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user