chore(config): 更新端口配置从3001到3010
- 将 .env.example 中的 PORT 从 3001 更改为 3010 - 将 CORS_ORIGIN 从 http://localhost:5173 更改为 http://localhost:5180 - 更新 compose.yaml 中的服务端口和健康检查端口为 3010 - 修改 Dockerfile 中暴露的端口为 3010 - 更新文档中的 API 端口引用从 3001 到 3010 - 在 Vite 配置中设置开发服务器端口为 5180 - 更新 Vite 代理目标地址为 http://localhost:3010
This commit is contained in:
@@ -35,7 +35,7 @@ API Key 明文只在创建时返回一次,数据库仅保存 SHA-256 哈希。
|
||||
平台级 API Key 可以指定目标运营组。项目级 Key 不能创建项目。
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:3001/api/projects \
|
||||
curl -X POST http://localhost:3010/api/projects \
|
||||
-H "Authorization: Bearer $DELIVERY_DESK_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"name":"7 月内容计划","slug":"july-content","groupId":1,"client_description":"客户可见说明"}'
|
||||
@@ -46,7 +46,7 @@ curl -X POST http://localhost:3001/api/projects \
|
||||
## 创建作品交付集
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:3001/api/projects/1/collections \
|
||||
curl -X POST http://localhost:3010/api/projects/1/collections \
|
||||
-H "Authorization: Bearer $DELIVERY_DESK_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"name":"2026 年 7 月交付","client_description":"本月交付内容"}'
|
||||
@@ -57,7 +57,7 @@ curl -X POST http://localhost:3001/api/projects/1/collections \
|
||||
作品上传使用 `multipart/form-data`,至少一张、最多 30 张图片,单图最大 20 MB。图片数组顺序就是初始展示顺序,第一张为封面。
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:3001/api/notes \
|
||||
curl -X POST http://localhost:3010/api/notes \
|
||||
-H "Authorization: Bearer $DELIVERY_DESK_API_KEY" \
|
||||
-F "collectionId=1" \
|
||||
-F "title=作品标题" \
|
||||
@@ -72,7 +72,7 @@ curl -X POST http://localhost:3001/api/notes \
|
||||
## 创建新版本
|
||||
|
||||
```bash
|
||||
curl -X POST http://localhost:3001/api/notes/12/versions \
|
||||
curl -X POST http://localhost:3010/api/notes/12/versions \
|
||||
-H "Authorization: Bearer $DELIVERY_DESK_API_KEY" \
|
||||
-F "title=修改后的标题" \
|
||||
-F "description=修改后的正文" \
|
||||
@@ -91,4 +91,3 @@ curl -X POST http://localhost:3001/api/notes/12/versions \
|
||||
```
|
||||
|
||||
常见状态码:`400` 输入无效、`401` 未认证、`403` 越权、`404` 资源不存在、`409` 唯一性或状态冲突、`500` 服务端错误。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user