..
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user