Ken hace 2 semanas
padre
commit
67604231b5
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      app/Http/Controllers/admin/Keyboard.php

+ 3 - 2
app/Http/Controllers/admin/Keyboard.php

@@ -8,6 +8,7 @@ use App\Http\Controllers\Controller;
 use App\Services\KeyboardService;
 use Exception;
 
+use Illuminate\Http\JsonResponse;
 use Illuminate\Support\Facades\DB;
 use Illuminate\Validation\ValidationException;
 
@@ -89,7 +90,7 @@ class Keyboard extends Controller
      *   //更多行...
      * ]
      */
-    public function store()
+    public function store(): JsonResponse
     {
         try {
             $id = request()->input('id', null);
@@ -130,7 +131,7 @@ class Keyboard extends Controller
      *
      * @apiParam {int} id 回复ID
      */
-    public function destroy()
+    public function destroy(): JsonResponse
     {
         return $this->error(HttpStatus::CUSTOM_ERROR, '禁止删除');
         $id = request()->post('id');