feat(user): 更新用户表字段及认证接口
- 将用户表中的 `han_note_id` 注释更新为 "小憨书号" - 将用户表中的 `phone` 字段改为 `email` 并更新注释 - 更新分布式ID生成器中相关SQL表名引用从 `leaf_alloc` 到 `leaf` - 在HTTP客户端配置文件中新增认证API请求示例 - 修改Feign接口方法名以匹配邮箱查询逻辑 - 调整RPC服务调用方法名保持一致性
This commit is contained in:
27
http-client/gateApi.http
Normal file
27
http-client/gateApi.http
Normal file
@@ -0,0 +1,27 @@
|
||||
### 获取验证码
|
||||
POST http://localhost:8000/auth/verification/code/send
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"email": "ssw010723@gmail.com"
|
||||
}
|
||||
|
||||
### 登录/注册
|
||||
POST http://localhost:8000/auth/login
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"email": "ssw010723@gmail.com",
|
||||
"code": "135466",
|
||||
"type": 1
|
||||
}
|
||||
|
||||
### 修改密码
|
||||
POST http://localhost:8000/auth/password/update
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"newPassword": "wwgb1314"
|
||||
}
|
||||
|
||||
0
http-client/http-client.env.json
Normal file
0
http-client/http-client.env.json
Normal file
5
http-client/http-client.private.env.json
Normal file
5
http-client/http-client.private.env.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"dev": {
|
||||
"token": "4bXpiBbjXEDFE4ZpqjCOHu1rP81qepl2ROOygrxRGb61K536ckLuyAwfyQHSMcyRdUzf8CxntLEMfbU2ynbYx9nJKlx4vpWZrHqv2mI4iMhnShQ4mPBi7OPPgZi22O2f"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user