From af3cb9d730120479f5948cf0f2e79f4f173a3c2c Mon Sep 17 00:00:00 2001 From: weizong song Date: Mon, 29 Mar 2021 22:11:44 +0800 Subject: [PATCH] up --- app/Http/Controllers/Manager/AuthController.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/Http/Controllers/Manager/AuthController.php b/app/Http/Controllers/Manager/AuthController.php index e1e718d..1f97c51 100644 --- a/app/Http/Controllers/Manager/AuthController.php +++ b/app/Http/Controllers/Manager/AuthController.php @@ -126,6 +126,19 @@ class AuthController extends Controller return $this->respondWithToken($token); } + /** + * @OA\Post( + * path="/manager/login-by-username", + * summary="V2-通过用户名密码登录", + * description="", + * @OA\Parameter(name="username", in="query", @OA\Schema(type="string"), required=true, description="用户名"), + * @OA\Parameter(name="password", in="query", @OA\Schema(type="string"), required=true, description="密码"), + * @OA\Response( + * response="200", + * description="管理老师通过用户名密码登录" + * ) + * ) + */ public function loginByUsername() { $credentials = request(['username', 'password']);