34 lines
470 B
PHP
34 lines
470 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Aether;
|
|
|
|
interface AetherCrudInterface
|
|
{
|
|
/**
|
|
* 列表.
|
|
*/
|
|
public function list(): array;
|
|
|
|
/**
|
|
* 查询.
|
|
*/
|
|
public function detail(int $id): object;
|
|
|
|
/**
|
|
* 新增.
|
|
*/
|
|
public function create(array $data): int;
|
|
|
|
/**
|
|
* 更新.
|
|
*/
|
|
public function update(int $id, array $data): bool;
|
|
|
|
/**
|
|
* 删除.
|
|
*/
|
|
public function delete(int $id): bool;
|
|
}
|