|
|
@@ -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');
|