基础数据-校区服务

This commit is contained in:
Aether
2025-09-19 15:14:20 +08:00
parent 824510d57c
commit b69f14ded2
16 changed files with 757 additions and 300 deletions

View File

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