| Version | Update Time | Status | Author | Description |
|---|---|---|---|---|
v2025-10-23 15:41:00 | 2025-10-23 15:41:00 | auto | @Krcia | Created by smart-doc |
2. 鉴权
2.1. 获取令牌
Type: POST
Content-Type: application/json
Description: 获取令牌
Request-headers:
| Header | Value | Type | Required | Description | |
|---|---|---|---|---|---|
captcha | string | true | 验证码值 | ||
captcha-code | string | true | 验证码代码 |
Body-parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
user | string | false | 用户名 |
password | string | false | 密码 |
Request-body:
{
+智能AI聊天服务器 智能AI聊天服务器
Version Update Time Status Author Description v2025-12-16 16:25:26
2025-12-16 16:25:26
auto
@Krcia
Created by smart-doc
2. 鉴权
2.1. 获取令牌
Type: POST
Content-Type: application/json
Description: 获取令牌
Request-headers:
Header Value Type Required Description captcha
string
true
验证码值
captcha-code
string
true
验证码代码
Body-parameters:
Parameter Type Required Description user
string
false
用户名
password
string
false
密码
Request-body:
{
"user": "admin",
"password": "vir_sh@2025"
}
Response-fields:
Field Type Description Since code
int32
状态编码
-
message
string
状态
-
data
string
数据
-
Response-example:
{
@@ -12,7 +12,7 @@
"code": 200,
"message": "success",
"data": {}
-}
Curl-example:
curl -X POST -H "Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzM4NCJ9.eyJpZCI6MTAwMDAwfQ.yBaS2nSUJoD2kbhj3lXnHvkmc-qwJF_5djhQf_2A069j9HzYVmUObXcDwaAhHQf-" -i '/api/authorization/forgot-password-mail' --data 'email=""&password=""&emailCode=""'
2.3. 修改密码
Type: PUT
Content-Type: application/json
Description: 修改密码
Request-headers:
Header Value Type Required Description Authorization
string
true
鉴权信息
captcha
string
true
验证码值
captcha-code
string
true
验证码代码
Body-parameters:
Parameter Type Required Description oldPassword
string
false
密码
newPassword
string
false
密码
Request-body:
{
+}
Curl-example:
curl -X POST -H "Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzM4NCJ9.eyJpZCI6MTAwMDAwfQ.yBaS2nSUJoD2kbhj3lXnHvkmc-qwJF_5djhQf_2A069j9HzYVmUObXcDwaAhHQf-" -i '/api/authorization/forgot-password-mail' --data 'emailCode=""&email=""&password=""'
2.3. 修改密码
Type: PUT
Content-Type: application/json
Description: 修改密码
Request-headers:
Header Value Type Required Description Authorization
string
true
鉴权信息
captcha
string
true
验证码值
captcha-code
string
true
验证码代码
Body-parameters:
Parameter Type Required Description oldPassword
string
false
密码
newPassword
string
false
密码
Request-body:
{
"oldPassword": "vir_sh@2025",
"newPassword": "vir_sh@2025"
}
Response-fields:
Field Type Description Since code
int32
状态编码
-
message
string
状态
-
data
object
数据
-
Response-example:
{
@@ -26,7 +26,7 @@
"code": 200,
"message": "success",
"data": {}
-}
Curl-example:
curl -X POST -H "Content-Type: multipart/form-data" -F 'avatar=' -i '/api/authorization/register' --data 'email=""&nickname=""&name=""&password=""&emailCode=""&userName=""&deepseekKey=""'
2.5. 用户信息
Type: POST
Content-Type: application/x-www-form-urlencoded
Description: 用户信息
Request-headers:
Header Value Type Required Description Authorization
string
true
鉴权信息
Response-fields:
Field Type Description Since code
int32
状态编码
-
message
string
状态
-
data
object
数据
-
└─name
string
姓名
-
└─avatar
string
头像
-
└─nickname
string
昵称
-
└─userName
string
用户名
-
└─status
int32
状态:0启用,1禁用,-1删除
-
└─statusTime
string
状态时间
-
└─email
string
邮箱
-
└─createTime
string
创建时间
-
Response-example:
{
+}
Curl-example:
curl -X POST -H "Content-Type: multipart/form-data" -F 'avatar=' -i '/api/authorization/register' --data 'password=""&userName=""&nickname=""&email=""&deepseekKey=""&name=""&emailCode=""'
2.5. 用户信息
Type: POST
Content-Type: application/x-www-form-urlencoded
Description: 用户信息
Request-headers:
Header Value Type Required Description Authorization
string
true
鉴权信息
Response-fields:
Field Type Description Since code
int32
状态编码
-
message
string
状态
-
data
object
数据
-
└─name
string
姓名
-
└─avatar
string
头像
-
└─nickname
string
昵称
-
└─userName
string
用户名
-
└─status
int32
状态:0启用,1禁用,-1删除
-
└─statusTime
string
状态时间
-
└─email
string
邮箱
-
└─createTime
string
创建时间
-
Response-example:
{
"code": 200,
"message": "success",
"data": {
@@ -43,8 +43,8 @@
"code": 200,
"message": "success",
"data": {}
-}
Curl-example:
curl -X GET -H "Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzM4NCJ9.eyJpZCI6MTAwMDAwfQ.yBaS2nSUJoD2kbhj3lXnHvkmc-qwJF_5djhQf_2A069j9HzYVmUObXcDwaAhHQf-" -i '/api/authorization/register-mail?mail=1503175889@qq.com&=crtfqe'
3.3. 发送忘记密码邮箱验证码
Type: GET
Content-Type: application/x-www-form-urlencoded
Description: 发送忘记密码邮箱验证码
Request-headers:
Header Value Type Required Description Authorization
string
true
鉴权信息
Query-parameters:
Parameter Value Type Required Description mail
string
false
邮箱
Response-fields:
Field Type Description Since code
int32
状态编码
-
message
string
状态
-
data
object
数据
-
Response-example:
{
+}
Curl-example:
curl -X GET -H "Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzM4NCJ9.eyJpZCI6MTAwMDAwfQ.yBaS2nSUJoD2kbhj3lXnHvkmc-qwJF_5djhQf_2A069j9HzYVmUObXcDwaAhHQf-" -i '/api/authorization/register-mail?mail=1503175889@qq.com&=rmfwky'
3.3. 发送忘记密码邮箱验证码
Type: GET
Content-Type: application/x-www-form-urlencoded
Description: 发送忘记密码邮箱验证码
Request-headers:
Header Value Type Required Description Authorization
string
true
鉴权信息
Query-parameters:
Parameter Value Type Required Description mail
string
false
邮箱
Response-fields:
Field Type Description Since code
int32
状态编码
-
message
string
状态
-
data
object
数据
-
Response-example:
{
"code": 200,
"message": "success",
"data": {}
-}
Curl-example:
curl -X GET -H "Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzM4NCJ9.eyJpZCI6MTAwMDAwfQ.yBaS2nSUJoD2kbhj3lXnHvkmc-qwJF_5djhQf_2A069j9HzYVmUObXcDwaAhHQf-" -i '/api/authorization/forgot-password-mail?mail=1503175889@qq.com&=pkvmy2'
Top
\ No newline at end of file
+}Curl-example:
curl -X GET -H "Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzM4NCJ9.eyJpZCI6MTAwMDAwfQ.yBaS2nSUJoD2kbhj3lXnHvkmc-qwJF_5djhQf_2A069j9HzYVmUObXcDwaAhHQf-" -i '/api/authorization/forgot-password-mail?mail=1503175889@qq.com&=sndfiz'