From c8c1573c272ca6b9381892f6b069cb69133c0bf0 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 26 Feb 2024 22:22:59 +0800 Subject: [PATCH 01/25] =?UTF-8?q?docs:=20=E6=8C=89=E7=85=A7=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E8=A7=84=E5=88=99=E4=BF=AE=E6=94=B9API=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E4=B8=8B=E6=8E=A7=E5=88=B6=E5=99=A8=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E7=9A=84=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Common.php | 10 +++--- application/api/controller/Ems.php | 10 +++--- application/api/controller/Sms.php | 10 +++--- application/api/controller/User.php | 44 ++++++++++++------------- application/api/controller/Validate.php | 32 +++++++++--------- 5 files changed, 53 insertions(+), 53 deletions(-) diff --git a/application/api/controller/Common.php b/application/api/controller/Common.php index 6ffd1a5a7..e90476f30 100644 --- a/application/api/controller/Common.php +++ b/application/api/controller/Common.php @@ -38,9 +38,9 @@ class Common extends Api /** * 加载初始化 * - * @param string $version 版本号 - * @param string $lng 经度 - * @param string $lat 纬度 + * @ApiParams (name="version", type="string", required=true, description="版本号") + * @ApiParams (name="lng", type="string", required=true, description="经度") + * @ApiParams (name="lat", type="string", required=true, description="纬度") */ public function init() { @@ -80,7 +80,7 @@ class Common extends Api /** * 上传文件 * @ApiMethod (POST) - * @param File $file 文件流 + * @ApiParams (name="file", type="File", required=true, description="文件流") */ public function upload() { @@ -148,7 +148,7 @@ class Common extends Api /** * 验证码 - * @param $id + * @ApiParams (name="id", type="string", required=true, description="要生成验证码的标识") * @return \think\Response */ public function captcha($id = "") diff --git a/application/api/controller/Ems.php b/application/api/controller/Ems.php index 68f336cf4..01123ebb5 100644 --- a/application/api/controller/Ems.php +++ b/application/api/controller/Ems.php @@ -24,8 +24,8 @@ class Ems extends Api * 发送验证码 * * @ApiMethod (POST) - * @param string $email 邮箱 - * @param string $event 事件名称 + * @ApiParams (name="email", type="string", required=true, description="邮箱") + * @ApiParams (name="event", type="string", required=true, description="事件名称") */ public function send() { @@ -68,9 +68,9 @@ class Ems extends Api * 检测验证码 * * @ApiMethod (POST) - * @param string $email 邮箱 - * @param string $event 事件名称 - * @param string $captcha 验证码 + * @ApiParams (name="email", type="string", required=true, description="邮箱") + * @ApiParams (name="event", type="string", required=true, description="事件名称") + * @ApiParams (name="captcha", type="string", required=true, description="验证码") */ public function check() { diff --git a/application/api/controller/Sms.php b/application/api/controller/Sms.php index 373b1299c..a5010cb48 100644 --- a/application/api/controller/Sms.php +++ b/application/api/controller/Sms.php @@ -19,8 +19,8 @@ class Sms extends Api * 发送验证码 * * @ApiMethod (POST) - * @param string $mobile 手机号 - * @param string $event 事件名称 + * @ApiParams (name="mobile", type="string", required=true, description="手机号") + * @ApiParams (name="event", type="string", required=true, description="事件名称") */ public function send() { @@ -67,9 +67,9 @@ class Sms extends Api * 检测验证码 * * @ApiMethod (POST) - * @param string $mobile 手机号 - * @param string $event 事件名称 - * @param string $captcha 验证码 + * @ApiParams (name="mobile", type="string", required=true, description="手机号") + * @ApiParams (name="event", type="string", required=true, description="事件名称") + * @ApiParams (name="captcha", type="string", required=true, description="验证码") */ public function check() { diff --git a/application/api/controller/User.php b/application/api/controller/User.php index d77a67ade..d26901679 100644 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -39,8 +39,8 @@ class User extends Api * 会员登录 * * @ApiMethod (POST) - * @param string $account 账号 - * @param string $password 密码 + * @ApiParams (name="account", type="string", required=true, description="账号") + * @ApiParams (name="password", type="string", required=true, description="密码") */ public function login() { @@ -62,8 +62,8 @@ class User extends Api * 手机验证码登录 * * @ApiMethod (POST) - * @param string $mobile 手机号 - * @param string $captcha 验证码 + * @ApiParams (name="mobile", type="string", required=true, description="手机号") + * @ApiParams (name="captcha", type="string", required=true, description="验证码") */ public function mobilelogin() { @@ -101,11 +101,11 @@ class User extends Api * 注册会员 * * @ApiMethod (POST) - * @param string $username 用户名 - * @param string $password 密码 - * @param string $email 邮箱 - * @param string $mobile 手机号 - * @param string $code 验证码 + * @ApiParams (name="username", type="string", required=true, description="用户名") + * @ApiParams (name="password", type="string", required=true, description="密码") + * @ApiParams (name="email", type="string", required=true, description="邮箱") + * @ApiParams (name="mobile", type="string", required=true, description="手机号") + * @ApiParams (name="code", type="string", required=true, description="验证码") */ public function register() { @@ -153,10 +153,10 @@ class User extends Api * 修改会员个人信息 * * @ApiMethod (POST) - * @param string $avatar 头像地址 - * @param string $username 用户名 - * @param string $nickname 昵称 - * @param string $bio 个人简介 + * @ApiParams (name="avatar", type="string", required=true, description="头像地址") + * @ApiParams (name="username", type="string", required=true, description="用户名") + * @ApiParams (name="nickname", type="string", required=true, description="昵称") + * @ApiParams (name="bio", type="string", required=true, description="个人简介") */ public function profile() { @@ -189,8 +189,8 @@ class User extends Api * 修改邮箱 * * @ApiMethod (POST) - * @param string $email 邮箱 - * @param string $captcha 验证码 + * @ApiParams (name="email", type="string", required=true, description="邮箱") + * @ApiParams (name="captcha", type="string", required=true, description="验证码") */ public function changeemail() { @@ -224,8 +224,8 @@ class User extends Api * 修改手机号 * * @ApiMethod (POST) - * @param string $mobile 手机号 - * @param string $captcha 验证码 + * @ApiParams (name="mobile", type="string", required=true, description="手机号") + * @ApiParams (name="captcha", type="string", required=true, description="验证码") */ public function changemobile() { @@ -259,8 +259,8 @@ class User extends Api * 第三方登录 * * @ApiMethod (POST) - * @param string $platform 平台名称 - * @param string $code Code码 + * @ApiParams (name="platform", type="string", required=true, description="平台名称") + * @ApiParams (name="code", type="string", required=true, description="Code码") */ public function third() { @@ -291,9 +291,9 @@ class User extends Api * 重置密码 * * @ApiMethod (POST) - * @param string $mobile 手机号 - * @param string $newpassword 新密码 - * @param string $captcha 验证码 + * @ApiParams (name="mobile", type="string", required=true, description="手机号") + * @ApiParams (name="newpassword", type="string", required=true, description="新密码") + * @ApiParams (name="captcha", type="string", required=true, description="验证码") */ public function resetpwd() { diff --git a/application/api/controller/Validate.php b/application/api/controller/Validate.php index adb36d0ff..6538f8d84 100644 --- a/application/api/controller/Validate.php +++ b/application/api/controller/Validate.php @@ -23,8 +23,8 @@ class Validate extends Api * 检测邮箱 * * @ApiMethod (POST) - * @param string $email 邮箱 - * @param string $id 排除会员ID + * @ApiParams (name="email", type="string", required=true, description="邮箱") + * @ApiParams (name="id", type="string", required=true, description="排除会员ID") */ public function check_email_available() { @@ -41,8 +41,8 @@ class Validate extends Api * 检测用户名 * * @ApiMethod (POST) - * @param string $username 用户名 - * @param string $id 排除会员ID + * @ApiParams (name="username", type="string", required=true, description="用户名") + * @ApiParams (name="id", type="string", required=true, description="排除会员ID") */ public function check_username_available() { @@ -59,8 +59,8 @@ class Validate extends Api * 检测昵称 * * @ApiMethod (POST) - * @param string $nickname 昵称 - * @param string $id 排除会员ID + * @ApiParams (name="nickname", type="string", required=true, description="昵称") + * @ApiParams (name="id", type="string", required=true, description="排除会员ID") */ public function check_nickname_available() { @@ -77,8 +77,8 @@ class Validate extends Api * 检测手机 * * @ApiMethod (POST) - * @param string $mobile 手机号 - * @param string $id 排除会员ID + * @ApiParams (name="mobile", type="string", required=true, description="手机号") + * @ApiParams (name="id", type="string", required=true, description="排除会员ID") */ public function check_mobile_available() { @@ -95,7 +95,7 @@ class Validate extends Api * 检测手机 * * @ApiMethod (POST) - * @param string $mobile 手机号 + * @ApiParams (name="mobile", type="string", required=true, description="手机号") */ public function check_mobile_exist() { @@ -111,7 +111,7 @@ class Validate extends Api * 检测邮箱 * * @ApiMethod (POST) - * @param string $mobile 邮箱 + * @ApiParams (name="email", type="string", required=true, description="邮箱") */ public function check_email_exist() { @@ -127,9 +127,9 @@ class Validate extends Api * 检测手机验证码 * * @ApiMethod (POST) - * @param string $mobile 手机号 - * @param string $captcha 验证码 - * @param string $event 事件 + * @ApiParams (name="mobile", type="string", required=true, description="手机号") + * @ApiParams (name="captcha", type="string", required=true, description="验证码") + * @ApiParams (name="event", type="string", required=true, description="事件") */ public function check_sms_correct() { @@ -146,9 +146,9 @@ class Validate extends Api * 检测邮箱验证码 * * @ApiMethod (POST) - * @param string $email 邮箱 - * @param string $captcha 验证码 - * @param string $event 事件 + * @ApiParams (name="email", type="string", required=true, description="邮箱") + * @ApiParams (name="captcha", type="string", required=true, description="验证码") + * @ApiParams (name="event", type="string", required=true, description="事件") */ public function check_ems_correct() { -- Gitee From ee0be09841c553ed8e32c469477678f165bbed8f Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 26 Feb 2024 22:34:06 +0800 Subject: [PATCH 02/25] =?UTF-8?q?style:=20=E5=8E=BB=E6=8E=89=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E7=9A=84=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Common.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/api/controller/Common.php b/application/api/controller/Common.php index e90476f30..4113a7d77 100644 --- a/application/api/controller/Common.php +++ b/application/api/controller/Common.php @@ -38,9 +38,9 @@ class Common extends Api /** * 加载初始化 * - * @ApiParams (name="version", type="string", required=true, description="版本号") - * @ApiParams (name="lng", type="string", required=true, description="经度") - * @ApiParams (name="lat", type="string", required=true, description="纬度") + * @ApiParams (name="version", type="string", required=true, description="版本号") + * @ApiParams (name="lng", type="string", required=true, description="经度") + * @ApiParams (name="lat", type="string", required=true, description="纬度") */ public function init() { -- Gitee From 5400c6ff2ad564e36a77ae76b4080b885d83f8cd Mon Sep 17 00:00:00 2001 From: Karson Date: Tue, 3 Sep 2024 10:20:59 +0800 Subject: [PATCH 03/25] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/view/auth/admin/edit.html | 2 +- application/admin/view/auth/rule/edit.html | 6 ++--- application/admin/view/category/edit.html | 4 ++-- .../admin/view/general/attachment/edit.html | 10 ++++----- application/admin/view/user/group/edit.html | 2 +- application/admin/view/user/rule/edit.html | 2 +- application/admin/view/user/user/edit.html | 22 +++++++++---------- 7 files changed, 24 insertions(+), 24 deletions(-) diff --git a/application/admin/view/auth/admin/edit.html b/application/admin/view/auth/admin/edit.html index a36d0096f..20c7a45db 100644 --- a/application/admin/view/auth/admin/edit.html +++ b/application/admin/view/auth/admin/edit.html @@ -39,7 +39,7 @@
- +
diff --git a/application/admin/view/auth/rule/edit.html b/application/admin/view/auth/rule/edit.html index 658a408b1..0aee82fbd 100644 --- a/application/admin/view/auth/rule/edit.html +++ b/application/admin/view/auth/rule/edit.html @@ -34,8 +34,8 @@ @@ -67,7 +67,7 @@
- +
diff --git a/application/admin/view/category/edit.html b/application/admin/view/category/edit.html index 4beea83d8..61c3ae971 100644 --- a/application/admin/view/category/edit.html +++ b/application/admin/view/category/edit.html @@ -52,7 +52,7 @@
- +
@@ -77,7 +77,7 @@
- +
diff --git a/application/admin/view/general/attachment/edit.html b/application/admin/view/general/attachment/edit.html index 9ae1b4ba7..b27e07718 100644 --- a/application/admin/view/general/attachment/edit.html +++ b/application/admin/view/general/attachment/edit.html @@ -22,13 +22,13 @@
- +
- +
@@ -40,7 +40,7 @@
- +
@@ -52,7 +52,7 @@
- +
@@ -76,7 +76,7 @@
- +