优化一键生成API文档

优化接口请求方法
pull/331/MERGE
Karson 2021-07-05 11:27:38 +08:00
parent 9a7e29a080
commit 7adc36ae4f
5 changed files with 84 additions and 64 deletions

View File

@ -31,6 +31,7 @@ class Ems extends Api
/** /**
* 发送验证码 * 发送验证码
* *
* @ApiMethod (POST)
* @param string $email 邮箱 * @param string $email 邮箱
* @param string $event 事件名称 * @param string $event 事件名称
*/ */
@ -68,6 +69,7 @@ class Ems extends Api
/** /**
* 检测验证码 * 检测验证码
* *
* @ApiMethod (POST)
* @param string $email 邮箱 * @param string $email 邮箱
* @param string $event 事件名称 * @param string $event 事件名称
* @param string $captcha 验证码 * @param string $captcha 验证码

View File

@ -18,6 +18,7 @@ class Sms extends Api
/** /**
* 发送验证码 * 发送验证码
* *
* @ApiMethod (POST)
* @param string $mobile 手机号 * @param string $mobile 手机号
* @param string $event 事件名称 * @param string $event 事件名称
*/ */
@ -65,6 +66,7 @@ class Sms extends Api
/** /**
* 检测验证码 * 检测验证码
* *
* @ApiMethod (POST)
* @param string $mobile 手机号 * @param string $mobile 手机号
* @param string $event 事件名称 * @param string $event 事件名称
* @param string $captcha 验证码 * @param string $captcha 验证码

View File

@ -32,13 +32,14 @@ class User extends Api
/** /**
* 会员登录 * 会员登录
* *
* @ApiMethod (POST)
* @param string $account 账号 * @param string $account 账号
* @param string $password 密码 * @param string $password 密码
*/ */
public function login() public function login()
{ {
$account = $this->request->request('account'); $account = $this->request->post('account');
$password = $this->request->request('password'); $password = $this->request->post('password');
if (!$account || !$password) { if (!$account || !$password) {
$this->error(__('Invalid parameters')); $this->error(__('Invalid parameters'));
} }
@ -54,13 +55,14 @@ class User extends Api
/** /**
* 手机验证码登录 * 手机验证码登录
* *
* @ApiMethod (POST)
* @param string $mobile 手机号 * @param string $mobile 手机号
* @param string $captcha 验证码 * @param string $captcha 验证码
*/ */
public function mobilelogin() public function mobilelogin()
{ {
$mobile = $this->request->request('mobile'); $mobile = $this->request->post('mobile');
$captcha = $this->request->request('captcha'); $captcha = $this->request->post('captcha');
if (!$mobile || !$captcha) { if (!$mobile || !$captcha) {
$this->error(__('Invalid parameters')); $this->error(__('Invalid parameters'));
} }
@ -92,6 +94,7 @@ class User extends Api
/** /**
* 注册会员 * 注册会员
* *
* @ApiMethod (POST)
* @param string $username 用户名 * @param string $username 用户名
* @param string $password 密码 * @param string $password 密码
* @param string $email 邮箱 * @param string $email 邮箱
@ -100,11 +103,11 @@ class User extends Api
*/ */
public function register() public function register()
{ {
$username = $this->request->request('username'); $username = $this->request->post('username');
$password = $this->request->request('password'); $password = $this->request->post('password');
$email = $this->request->request('email'); $email = $this->request->post('email');
$mobile = $this->request->request('mobile'); $mobile = $this->request->post('mobile');
$code = $this->request->request('code'); $code = $this->request->post('code');
if (!$username || !$password) { if (!$username || !$password) {
$this->error(__('Invalid parameters')); $this->error(__('Invalid parameters'));
} }
@ -139,6 +142,7 @@ class User extends Api
/** /**
* 修改会员个人信息 * 修改会员个人信息
* *
* @ApiMethod (POST)
* @param string $avatar 头像地址 * @param string $avatar 头像地址
* @param string $username 用户名 * @param string $username 用户名
* @param string $nickname 昵称 * @param string $nickname 昵称
@ -147,10 +151,10 @@ class User extends Api
public function profile() public function profile()
{ {
$user = $this->auth->getUser(); $user = $this->auth->getUser();
$username = $this->request->request('username'); $username = $this->request->post('username');
$nickname = $this->request->request('nickname'); $nickname = $this->request->post('nickname');
$bio = $this->request->request('bio'); $bio = $this->request->post('bio');
$avatar = $this->request->request('avatar', '', 'trim,strip_tags,htmlspecialchars'); $avatar = $this->request->post('avatar', '', 'trim,strip_tags,htmlspecialchars');
if ($username) { if ($username) {
$exists = \app\common\model\User::where('username', $username)->where('id', '<>', $this->auth->id)->find(); $exists = \app\common\model\User::where('username', $username)->where('id', '<>', $this->auth->id)->find();
if ($exists) { if ($exists) {
@ -174,6 +178,7 @@ class User extends Api
/** /**
* 修改邮箱 * 修改邮箱
* *
* @ApiMethod (POST)
* @param string $email 邮箱 * @param string $email 邮箱
* @param string $captcha 验证码 * @param string $captcha 验证码
*/ */
@ -181,7 +186,7 @@ class User extends Api
{ {
$user = $this->auth->getUser(); $user = $this->auth->getUser();
$email = $this->request->post('email'); $email = $this->request->post('email');
$captcha = $this->request->request('captcha'); $captcha = $this->request->post('captcha');
if (!$email || !$captcha) { if (!$email || !$captcha) {
$this->error(__('Invalid parameters')); $this->error(__('Invalid parameters'));
} }
@ -208,14 +213,15 @@ class User extends Api
/** /**
* 修改手机号 * 修改手机号
* *
* @ApiMethod (POST)
* @param string $mobile 手机号 * @param string $mobile 手机号
* @param string $captcha 验证码 * @param string $captcha 验证码
*/ */
public function changemobile() public function changemobile()
{ {
$user = $this->auth->getUser(); $user = $this->auth->getUser();
$mobile = $this->request->request('mobile'); $mobile = $this->request->post('mobile');
$captcha = $this->request->request('captcha'); $captcha = $this->request->post('captcha');
if (!$mobile || !$captcha) { if (!$mobile || !$captcha) {
$this->error(__('Invalid parameters')); $this->error(__('Invalid parameters'));
} }
@ -242,14 +248,15 @@ class User extends Api
/** /**
* 第三方登录 * 第三方登录
* *
* @ApiMethod (POST)
* @param string $platform 平台名称 * @param string $platform 平台名称
* @param string $code Code码 * @param string $code Code码
*/ */
public function third() public function third()
{ {
$url = url('user/index'); $url = url('user/index');
$platform = $this->request->request("platform"); $platform = $this->request->post("platform");
$code = $this->request->request("code"); $code = $this->request->post("code");
$config = get_addon_config('third'); $config = get_addon_config('third');
if (!$config || !isset($config[$platform])) { if (!$config || !isset($config[$platform])) {
$this->error(__('Invalid parameters')); $this->error(__('Invalid parameters'));
@ -273,17 +280,18 @@ class User extends Api
/** /**
* 重置密码 * 重置密码
* *
* @ApiMethod (POST)
* @param string $mobile 手机号 * @param string $mobile 手机号
* @param string $newpassword 新密码 * @param string $newpassword 新密码
* @param string $captcha 验证码 * @param string $captcha 验证码
*/ */
public function resetpwd() public function resetpwd()
{ {
$type = $this->request->request("type"); $type = $this->request->post("type");
$mobile = $this->request->request("mobile"); $mobile = $this->request->post("mobile");
$email = $this->request->request("email"); $email = $this->request->post("email");
$newpassword = $this->request->request("newpassword"); $newpassword = $this->request->post("newpassword");
$captcha = $this->request->request("captcha"); $captcha = $this->request->post("captcha");
if (!$newpassword || !$captcha) { if (!$newpassword || !$captcha) {
$this->error(__('Invalid parameters')); $this->error(__('Invalid parameters'));
} }

View File

@ -22,6 +22,7 @@ class Validate extends Api
/** /**
* 检测邮箱 * 检测邮箱
* *
* @ApiMethod (POST)
* @param string $email 邮箱 * @param string $email 邮箱
* @param string $id 排除会员ID * @param string $id 排除会员ID
*/ */
@ -39,6 +40,7 @@ class Validate extends Api
/** /**
* 检测用户名 * 检测用户名
* *
* @ApiMethod (POST)
* @param string $username 用户名 * @param string $username 用户名
* @param string $id 排除会员ID * @param string $id 排除会员ID
*/ */
@ -56,6 +58,7 @@ class Validate extends Api
/** /**
* 检测昵称 * 检测昵称
* *
* @ApiMethod (POST)
* @param string $nickname 昵称 * @param string $nickname 昵称
* @param string $id 排除会员ID * @param string $id 排除会员ID
*/ */
@ -73,6 +76,7 @@ class Validate extends Api
/** /**
* 检测手机 * 检测手机
* *
* @ApiMethod (POST)
* @param string $mobile 手机号 * @param string $mobile 手机号
* @param string $id 排除会员ID * @param string $id 排除会员ID
*/ */
@ -90,6 +94,7 @@ class Validate extends Api
/** /**
* 检测手机 * 检测手机
* *
* @ApiMethod (POST)
* @param string $mobile 手机号 * @param string $mobile 手机号
*/ */
public function check_mobile_exist() public function check_mobile_exist()
@ -105,6 +110,7 @@ class Validate extends Api
/** /**
* 检测邮箱 * 检测邮箱
* *
* @ApiMethod (POST)
* @param string $mobile 邮箱 * @param string $mobile 邮箱
*/ */
public function check_email_exist() public function check_email_exist()
@ -120,6 +126,7 @@ class Validate extends Api
/** /**
* 检测手机验证码 * 检测手机验证码
* *
* @ApiMethod (POST)
* @param string $mobile 手机号 * @param string $mobile 手机号
* @param string $captcha 验证码 * @param string $captcha 验证码
* @param string $event 事件 * @param string $event 事件
@ -138,6 +145,7 @@ class Validate extends Api
/** /**
* 检测邮箱验证码 * 检测邮箱验证码
* *
* @ApiMethod (POST)
* @param string $email 邮箱 * @param string $email 邮箱
* @param string $captcha 验证码 * @param string $captcha 验证码
* @param string $event 事件 * @param string $event 事件

View File

@ -1119,7 +1119,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-6"> <div class="panel-heading" id="heading-6">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion6" href="#collapseOne6"> 发送验证码 <span class="text-muted">/api/ems/send</span></a> <a data-toggle="collapse" data-parent="#accordion6" href="#collapseOne6"> 发送验证码 <span class="text-muted">/api/ems/send</span></a>
</h4> </h4>
</div> </div>
@ -1208,7 +1208,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/ems/send" method="get" name="form6" id="form6"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/ems/send" method="POST" name="form6" id="form6">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="email">email</label> <label class="control-label" for="email">email</label>
<input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email"> <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
@ -1260,7 +1260,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-7"> <div class="panel-heading" id="heading-7">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion7" href="#collapseOne7"> 检测验证码 <span class="text-muted">/api/ems/check</span></a> <a data-toggle="collapse" data-parent="#accordion7" href="#collapseOne7"> 检测验证码 <span class="text-muted">/api/ems/check</span></a>
</h4> </h4>
</div> </div>
@ -1355,7 +1355,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/ems/check" method="get" name="form7" id="form7"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/ems/check" method="POST" name="form7" id="form7">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="email">email</label> <label class="control-label" for="email">email</label>
<input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email"> <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
@ -1528,7 +1528,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-9"> <div class="panel-heading" id="heading-9">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion9" href="#collapseOne9"> 发送验证码 <span class="text-muted">/api/sms/send</span></a> <a data-toggle="collapse" data-parent="#accordion9" href="#collapseOne9"> 发送验证码 <span class="text-muted">/api/sms/send</span></a>
</h4> </h4>
</div> </div>
@ -1617,7 +1617,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/sms/send" method="get" name="form9" id="form9"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/sms/send" method="POST" name="form9" id="form9">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="mobile">mobile</label> <label class="control-label" for="mobile">mobile</label>
<input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@ -1669,7 +1669,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-10"> <div class="panel-heading" id="heading-10">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion10" href="#collapseOne10"> 检测验证码 <span class="text-muted">/api/sms/check</span></a> <a data-toggle="collapse" data-parent="#accordion10" href="#collapseOne10"> 检测验证码 <span class="text-muted">/api/sms/check</span></a>
</h4> </h4>
</div> </div>
@ -1764,7 +1764,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/sms/check" method="get" name="form10" id="form10"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/sms/check" method="POST" name="form10" id="form10">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="mobile">mobile</label> <label class="control-label" for="mobile">mobile</label>
<input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@ -2163,7 +2163,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-14"> <div class="panel-heading" id="heading-14">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion14" href="#collapseOne14"> 会员登录 <span class="text-muted">/api/user/login</span></a> <a data-toggle="collapse" data-parent="#accordion14" href="#collapseOne14"> 会员登录 <span class="text-muted">/api/user/login</span></a>
</h4> </h4>
</div> </div>
@ -2252,7 +2252,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/login" method="get" name="form14" id="form14"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/login" method="POST" name="form14" id="form14">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="account">account</label> <label class="control-label" for="account">account</label>
<input type="string" class="form-control input-sm" id="account" required placeholder="账号" name="account"> <input type="string" class="form-control input-sm" id="account" required placeholder="账号" name="account">
@ -2304,7 +2304,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-15"> <div class="panel-heading" id="heading-15">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion15" href="#collapseOne15"> 手机验证码登录 <span class="text-muted">/api/user/mobilelogin</span></a> <a data-toggle="collapse" data-parent="#accordion15" href="#collapseOne15"> 手机验证码登录 <span class="text-muted">/api/user/mobilelogin</span></a>
</h4> </h4>
</div> </div>
@ -2393,7 +2393,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/mobilelogin" method="get" name="form15" id="form15"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/mobilelogin" method="POST" name="form15" id="form15">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="mobile">mobile</label> <label class="control-label" for="mobile">mobile</label>
<input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@ -2445,7 +2445,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-16"> <div class="panel-heading" id="heading-16">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion16" href="#collapseOne16"> 注册会员 <span class="text-muted">/api/user/register</span></a> <a data-toggle="collapse" data-parent="#accordion16" href="#collapseOne16"> 注册会员 <span class="text-muted">/api/user/register</span></a>
</h4> </h4>
</div> </div>
@ -2552,7 +2552,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/register" method="get" name="form16" id="form16"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/register" method="POST" name="form16" id="form16">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="username">username</label> <label class="control-label" for="username">username</label>
<input type="string" class="form-control input-sm" id="username" required placeholder="用户名" name="username"> <input type="string" class="form-control input-sm" id="username" required placeholder="用户名" name="username">
@ -2729,7 +2729,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-18"> <div class="panel-heading" id="heading-18">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion18" href="#collapseOne18"> 修改会员个人信息 <span class="text-muted">/api/user/profile</span></a> <a data-toggle="collapse" data-parent="#accordion18" href="#collapseOne18"> 修改会员个人信息 <span class="text-muted">/api/user/profile</span></a>
</h4> </h4>
</div> </div>
@ -2830,7 +2830,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/profile" method="get" name="form18" id="form18"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/profile" method="POST" name="form18" id="form18">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="avatar">avatar</label> <label class="control-label" for="avatar">avatar</label>
<input type="string" class="form-control input-sm" id="avatar" required placeholder="头像地址" name="avatar"> <input type="string" class="form-control input-sm" id="avatar" required placeholder="头像地址" name="avatar">
@ -2890,7 +2890,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-19"> <div class="panel-heading" id="heading-19">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion19" href="#collapseOne19"> 修改邮箱 <span class="text-muted">/api/user/changeemail</span></a> <a data-toggle="collapse" data-parent="#accordion19" href="#collapseOne19"> 修改邮箱 <span class="text-muted">/api/user/changeemail</span></a>
</h4> </h4>
</div> </div>
@ -2979,7 +2979,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/changeemail" method="get" name="form19" id="form19"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/changeemail" method="POST" name="form19" id="form19">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="email">email</label> <label class="control-label" for="email">email</label>
<input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email"> <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
@ -3031,7 +3031,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-20"> <div class="panel-heading" id="heading-20">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion20" href="#collapseOne20"> 修改手机号 <span class="text-muted">/api/user/changemobile</span></a> <a data-toggle="collapse" data-parent="#accordion20" href="#collapseOne20"> 修改手机号 <span class="text-muted">/api/user/changemobile</span></a>
</h4> </h4>
</div> </div>
@ -3120,7 +3120,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/changemobile" method="get" name="form20" id="form20"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/changemobile" method="POST" name="form20" id="form20">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="mobile">mobile</label> <label class="control-label" for="mobile">mobile</label>
<input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@ -3172,7 +3172,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-21"> <div class="panel-heading" id="heading-21">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion21" href="#collapseOne21"> 第三方登录 <span class="text-muted">/api/user/third</span></a> <a data-toggle="collapse" data-parent="#accordion21" href="#collapseOne21"> 第三方登录 <span class="text-muted">/api/user/third</span></a>
</h4> </h4>
</div> </div>
@ -3261,7 +3261,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/third" method="get" name="form21" id="form21"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/third" method="POST" name="form21" id="form21">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="platform">platform</label> <label class="control-label" for="platform">platform</label>
<input type="string" class="form-control input-sm" id="platform" required placeholder="平台名称" name="platform"> <input type="string" class="form-control input-sm" id="platform" required placeholder="平台名称" name="platform">
@ -3313,7 +3313,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-22"> <div class="panel-heading" id="heading-22">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion22" href="#collapseOne22"> 重置密码 <span class="text-muted">/api/user/resetpwd</span></a> <a data-toggle="collapse" data-parent="#accordion22" href="#collapseOne22"> 重置密码 <span class="text-muted">/api/user/resetpwd</span></a>
</h4> </h4>
</div> </div>
@ -3408,7 +3408,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/resetpwd" method="get" name="form22" id="form22"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/resetpwd" method="POST" name="form22" id="form22">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="mobile">mobile</label> <label class="control-label" for="mobile">mobile</label>
<input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@ -3466,7 +3466,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-23"> <div class="panel-heading" id="heading-23">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion23" href="#collapseOne23"> 检测邮箱 <span class="text-muted">/api/validate/check_email_available</span></a> <a data-toggle="collapse" data-parent="#accordion23" href="#collapseOne23"> 检测邮箱 <span class="text-muted">/api/validate/check_email_available</span></a>
</h4> </h4>
</div> </div>
@ -3555,7 +3555,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_available" method="get" name="form23" id="form23"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_available" method="POST" name="form23" id="form23">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="email">email</label> <label class="control-label" for="email">email</label>
<input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email"> <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
@ -3607,7 +3607,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-24"> <div class="panel-heading" id="heading-24">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion24" href="#collapseOne24"> 检测用户名 <span class="text-muted">/api/validate/check_username_available</span></a> <a data-toggle="collapse" data-parent="#accordion24" href="#collapseOne24"> 检测用户名 <span class="text-muted">/api/validate/check_username_available</span></a>
</h4> </h4>
</div> </div>
@ -3696,7 +3696,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_username_available" method="get" name="form24" id="form24"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_username_available" method="POST" name="form24" id="form24">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="username">username</label> <label class="control-label" for="username">username</label>
<input type="string" class="form-control input-sm" id="username" required placeholder="用户名" name="username"> <input type="string" class="form-control input-sm" id="username" required placeholder="用户名" name="username">
@ -3748,7 +3748,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-25"> <div class="panel-heading" id="heading-25">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion25" href="#collapseOne25"> 检测昵称 <span class="text-muted">/api/validate/check_nickname_available</span></a> <a data-toggle="collapse" data-parent="#accordion25" href="#collapseOne25"> 检测昵称 <span class="text-muted">/api/validate/check_nickname_available</span></a>
</h4> </h4>
</div> </div>
@ -3837,7 +3837,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_nickname_available" method="get" name="form25" id="form25"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_nickname_available" method="POST" name="form25" id="form25">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="nickname">nickname</label> <label class="control-label" for="nickname">nickname</label>
<input type="string" class="form-control input-sm" id="nickname" required placeholder="昵称" name="nickname"> <input type="string" class="form-control input-sm" id="nickname" required placeholder="昵称" name="nickname">
@ -3889,7 +3889,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-26"> <div class="panel-heading" id="heading-26">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion26" href="#collapseOne26"> 检测手机 <span class="text-muted">/api/validate/check_mobile_available</span></a> <a data-toggle="collapse" data-parent="#accordion26" href="#collapseOne26"> 检测手机 <span class="text-muted">/api/validate/check_mobile_available</span></a>
</h4> </h4>
</div> </div>
@ -3978,7 +3978,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_available" method="get" name="form26" id="form26"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_available" method="POST" name="form26" id="form26">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="mobile">mobile</label> <label class="control-label" for="mobile">mobile</label>
<input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@ -4030,7 +4030,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-27"> <div class="panel-heading" id="heading-27">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion27" href="#collapseOne27"> 检测手机 <span class="text-muted">/api/validate/check_mobile_exist</span></a> <a data-toggle="collapse" data-parent="#accordion27" href="#collapseOne27"> 检测手机 <span class="text-muted">/api/validate/check_mobile_exist</span></a>
</h4> </h4>
</div> </div>
@ -4113,7 +4113,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_exist" method="get" name="form27" id="form27"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_exist" method="POST" name="form27" id="form27">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="mobile">mobile</label> <label class="control-label" for="mobile">mobile</label>
<input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@ -4161,7 +4161,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-28"> <div class="panel-heading" id="heading-28">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion28" href="#collapseOne28"> 检测邮箱 <span class="text-muted">/api/validate/check_email_exist</span></a> <a data-toggle="collapse" data-parent="#accordion28" href="#collapseOne28"> 检测邮箱 <span class="text-muted">/api/validate/check_email_exist</span></a>
</h4> </h4>
</div> </div>
@ -4244,7 +4244,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_exist" method="get" name="form28" id="form28"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_exist" method="POST" name="form28" id="form28">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="mobile">mobile</label> <label class="control-label" for="mobile">mobile</label>
<input type="string" class="form-control input-sm" id="mobile" required placeholder="邮箱" name="mobile"> <input type="string" class="form-control input-sm" id="mobile" required placeholder="邮箱" name="mobile">
@ -4292,7 +4292,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-29"> <div class="panel-heading" id="heading-29">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion29" href="#collapseOne29"> 检测手机验证码 <span class="text-muted">/api/validate/check_sms_correct</span></a> <a data-toggle="collapse" data-parent="#accordion29" href="#collapseOne29"> 检测手机验证码 <span class="text-muted">/api/validate/check_sms_correct</span></a>
</h4> </h4>
</div> </div>
@ -4387,7 +4387,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_sms_correct" method="get" name="form29" id="form29"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_sms_correct" method="POST" name="form29" id="form29">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="mobile">mobile</label> <label class="control-label" for="mobile">mobile</label>
<input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile">
@ -4443,7 +4443,7 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" id="heading-30"> <div class="panel-heading" id="heading-30">
<h4 class="panel-title"> <h4 class="panel-title">
<span class="label label-success">GET</span> <span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion30" href="#collapseOne30"> 检测邮箱验证码 <span class="text-muted">/api/validate/check_ems_correct</span></a> <a data-toggle="collapse" data-parent="#accordion30" href="#collapseOne30"> 检测邮箱验证码 <span class="text-muted">/api/validate/check_ems_correct</span></a>
</h4> </h4>
</div> </div>
@ -4538,7 +4538,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_ems_correct" method="get" name="form30" id="form30"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_ems_correct" method="POST" name="form30" id="form30">
<div class="form-group"> <div class="form-group">
<label class="control-label" for="email">email</label> <label class="control-label" for="email">email</label>
<input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email"> <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email">
@ -4600,7 +4600,7 @@
</div> </div>
<div class="col-md-6" align="right"> <div class="col-md-6" align="right">
Generated on 2020-12-21 11:39:26 <a href="./" target="_blank">我的网站</a> Generated on 2021-06-08 17:27:40 <a href="./" target="_blank">我的网站</a>
</div> </div>
</div> </div>