This commit is contained in:
Aether
2025-09-29 10:15:17 +08:00
parent e7c5d7d098
commit 9a1c120c4f
7 changed files with 107 additions and 183 deletions

View File

@@ -8,6 +8,7 @@ use Hyperf\Contract\ContainerInterface;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Contract\ResponseInterface;
use Throwable;
abstract class AetherController
{
@@ -41,6 +42,7 @@ abstract class AetherController
/**
* 创建资源 (RESTFul: POST resources).
* @throws Throwable
*/
public function create(): array
{
@@ -51,6 +53,7 @@ abstract class AetherController
/**
* 更新资源 (RESTFul: PUT resources/{id}).
* @throws Throwable
*/
public function update(int $id): array
{
@@ -61,6 +64,7 @@ abstract class AetherController
/**
* 删除资源 (RESTFul: DELETE resources/{id}).
* @throws Throwable
*/
public function delete(int $id): array
{