<?phpnamespace app\index\controller;/** * @OA\Info(title="积分", version="0.1") */class Ji{ /** * @OA\Post( * path="/ji/subscribe", * tags={"用户预约游戏"}, * summary="用户预约游戏", * description="用户预约游戏下载", * @OA\Parameter( * name="id", * in="path", * required=true, * description="123123", * @OA\Schema(type="integer") * ), * @OA\RequestBody( * @OA\MediaType(mediaType="application/x-www-form-urlencoded", * @OA\Schema( * required={"mobile", "route","sign","time"}, * @OA\Property(property="mobile", type="string", description="手机号"), * @OA\Property(property="route", type="string", enum={"GZH":"公众号","APP":"APP","PC":"网页"}), * @OA\Property(property="sub_route", type="string", enum={"g_lgj":"龙管家公众号","g_rzx":"实名公众号","g_paojiao":"泡椒公众号","a_lgj":"龙管家APP","P_lz":"龙珠"}), * @OA\Property(property="wx_app_id", type="string", description="公众号APPID(公众号必填)"), * @OA\Property(property="wx_open_id", type="string", description="公众号openid(公众号必填)"), * @OA\Property(property="time", type="integer", description="时间戳"), * @OA\Property(property="sign", type="string", description="数据签名"), * ) * )), * @OA\Response( * response=200, * description="SUCCESS/成功", * @OA\MediaType( * mediaType="application/json", * @OA\Schema( * @OA\Property(property="code", type="integer", format="int32", description="标识"), * @OA\Property(property="msg", type="string", format="int32", description="描述"), * @OA\Property(property="data",type="object",description="返回数据", * @OA\Property(property="no",type="string",description="版本号"), * @OA\Property(property="account",type="string",description="用户"), * @OA\Property(property="real_name",type="string",description="权限名称"), * ), * ), * example={"code": 0,"msg": "success","data": {"no": "1.3","account": "admin","real_name": "god"}} * ) * ) * ) */ public function subscribe(){ }}