1. <?php
    2. namespace app\index\controller;
    3. /**
    4. * @OA\Info(title="积分", version="0.1")
    5. */
    6. class Ji
    7. {
    8. /**
    9. * @OA\Post(
    10. * path="/ji/subscribe",
    11. * tags={"用户预约游戏"},
    12. * summary="用户预约游戏",
    13. * description="用户预约游戏下载",
    14. * @OA\Parameter(
    15. * name="id",
    16. * in="path",
    17. * required=true,
    18. * description="123123",
    19. * @OA\Schema(type="integer")
    20. * ),
    21. * @OA\RequestBody(
    22. * @OA\MediaType(mediaType="application/x-www-form-urlencoded",
    23. * @OA\Schema(
    24. * required={"mobile", "route","sign","time"},
    25. * @OA\Property(property="mobile", type="string", description="手机号"),
    26. * @OA\Property(property="route", type="string", enum={"GZH":"公众号","APP":"APP","PC":"网页"}),
    27. * @OA\Property(property="sub_route", type="string", enum={"g_lgj":"龙管家公众号","g_rzx":"实名公众号","g_paojiao":"泡椒公众号","a_lgj":"龙管家APP","P_lz":"龙珠"}),
    28. * @OA\Property(property="wx_app_id", type="string", description="公众号APPID(公众号必填)"),
    29. * @OA\Property(property="wx_open_id", type="string", description="公众号openid(公众号必填)"),
    30. * @OA\Property(property="time", type="integer", description="时间戳"),
    31. * @OA\Property(property="sign", type="string", description="数据签名"),
    32. * )
    33. * )),
    34. * @OA\Response(
    35. * response=200,
    36. * description="SUCCESS/成功",
    37. * @OA\MediaType(
    38. * mediaType="application/json",
    39. * @OA\Schema(
    40. * @OA\Property(property="code", type="integer", format="int32", description="标识"),
    41. * @OA\Property(property="msg", type="string", format="int32", description="描述"),
    42. * @OA\Property(property="data",type="object",description="返回数据",
    43. * @OA\Property(property="no",type="string",description="版本号"),
    44. * @OA\Property(property="account",type="string",description="用户"),
    45. * @OA\Property(property="real_name",type="string",description="权限名称"),
    46. * ),
    47. * ),
    48. * example={"code": 0,"msg": "success","data": {"no": "1.3","account": "admin","real_name": "god"}}
    49. * )
    50. * )
    51. * )
    52. */
    53. public function subscribe(){
    54. }
    55. }