... | @@ -96,4 +96,42 @@ class Person { |
... | @@ -96,4 +96,42 @@ class Person { |
|
|
|
|
|
### Swagger注释文档
|
|
### Swagger注释文档
|
|
[swagger php参考地址案例](https://github.com/zircote/swagger-php/tree/master/Examples)。
|
|
[swagger php参考地址案例](https://github.com/zircote/swagger-php/tree/master/Examples)。
|
|
|
|
#### Get方法
|
|
|
|
````
|
|
|
|
/**
|
|
|
|
* @OA\Get(
|
|
|
|
* path="/mp/fc",
|
|
|
|
* tags={"实地认证小程序"},
|
|
|
|
* summary="确认用户是否有权登录",
|
|
|
|
* @OA\Parameter(
|
|
|
|
* name="openid",
|
|
|
|
* in="query",
|
|
|
|
* description="openid",
|
|
|
|
* example="oKlGX5OlIfu3OaE21MXFxCOodexE",
|
|
|
|
* @OA\Schema(
|
|
|
|
* type="string"
|
|
|
|
* )
|
|
|
|
* ),
|
|
|
|
* @OA\Parameter(
|
|
|
|
* name="encryptedData",
|
|
|
|
* in="query",
|
|
|
|
* description="加密数据",
|
|
|
|
* @OA\Schema(
|
|
|
|
* type="string"
|
|
|
|
* )
|
|
|
|
* ),
|
|
|
|
* @OA\Parameter(
|
|
|
|
* name="iv",
|
|
|
|
* in="query",
|
|
|
|
* description="解密参数",
|
|
|
|
* @OA\Schema(
|
|
|
|
* type="string"
|
|
|
|
* )
|
|
|
|
* ),
|
|
|
|
* @OA\Response(
|
|
|
|
* response=200,
|
|
|
|
* description="OK"
|
|
|
|
* )
|
|
|
|
* )
|
|
|
|
*/
|
|
|
|
```` |