Files
hyperf_data/extend/Aether/PHP/Hyperf/AetherCrudInterface.php
2025-09-19 15:14:20 +08:00

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