-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d753f0e
commit b81f7ae
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace api\swagger\request; | ||
|
||
use OpenApi\Annotations as OA; | ||
|
||
/** | ||
* @OA\Schema() | ||
*/ | ||
class LoginRequest | ||
{ | ||
|
||
/** | ||
* @OA\Property( | ||
* type="string", | ||
* example="user", | ||
* description="手机号,邮箱,账户" | ||
* ) | ||
*/ | ||
public $username; | ||
|
||
/** | ||
* @OA\Property( | ||
* type="string", | ||
* example="000000", | ||
* description="密码" | ||
* ) | ||
* @var string | ||
*/ | ||
public $password; | ||
|
||
/** | ||
* @OA\Property( | ||
* type="string", | ||
* example="web", | ||
* description="设备类型:mobile,android,iphone,ipad,web,pc,mac,wxapp,ios" | ||
* ) | ||
* @var object | ||
*/ | ||
public $device_type; | ||
|
||
} |