refactor(backend): 优化API文档、认证路由和分页查询,统一响应格式并添加字段验证
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
|
||||
### 1.1 基础信息
|
||||
|
||||
- **Base URL**: `https://api.niumall.com/v1`
|
||||
- **协议**: HTTPS
|
||||
- **Base URL**: `http://localhost:4330/v1` (本地开发环境即测试环境)
|
||||
- **协议**: HTTPS/HTTP
|
||||
- **数据格式**: JSON
|
||||
- **字符编码**: UTF-8
|
||||
- **API版本**: v1
|
||||
@@ -1612,8 +1612,7 @@ def get_transport_task(task_id):
|
||||
|
||||
### 13.1 环境信息
|
||||
|
||||
- **本地开发环境**: `http://localhost:4330`
|
||||
- **测试环境**: `https://api-test.niumall.com/v1`
|
||||
- **本地开发环境**: `http://localhost:4330/v1`
|
||||
- **生产环境**: `https://wapi.yunniushi.cn/v1`
|
||||
|
||||
### 13.2 测试账号
|
||||
@@ -1629,11 +1628,7 @@ def get_transport_task(task_id):
|
||||
// 环境配置示例
|
||||
const environments = {
|
||||
development: {
|
||||
baseURL: 'http://localhost:4330',
|
||||
apiVersion: 'v1'
|
||||
},
|
||||
test: {
|
||||
baseURL: 'https://api-test.niumall.com/v1',
|
||||
baseURL: 'http://localhost:4330/v1',
|
||||
apiVersion: 'v1'
|
||||
},
|
||||
production: {
|
||||
|
||||
Reference in New Issue
Block a user