docs: 统一时间格式为亚洲友好的日期时间字符串
所有文档中的时间字段统一为 yyyy-MM-dd HH:mm:ss 格式(Asia/Shanghai): - 移除 ISO 8601 格式(2026-02-27T10:00:00Z) - 移除 Unix 时间戳(1740700000) - 响应字段从 timestamp(int64) 改为 time(string) - API README 新增「时间格式规范」章节 - 涉及 10 个文档文件 Made-with: Cursor
This commit is contained in:
@@ -587,7 +587,7 @@ echo:ws:conn:{conn_id} → 连接信息 JSON (STRING)
|
||||
"event": "im.message.send",
|
||||
"seq": 1001,
|
||||
"data": {},
|
||||
"timestamp": 1740700000
|
||||
"time": "2026-02-27 18:06:40"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -720,7 +720,7 @@ DELETE /media/room/:id
|
||||
"code": 0,
|
||||
"message": "ok",
|
||||
"data": {},
|
||||
"timestamp": 1740700000
|
||||
"time": "2026-02-27 18:00:00"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -224,9 +224,9 @@ type LogConfig struct {
|
||||
type Response struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
Data interface{} `json:"data,omitempty"`
|
||||
TraceID string `json:"trace_id,omitempty"`
|
||||
Timestamp int64 `json:"timestamp"`
|
||||
Data interface{} `json:"data,omitempty"`
|
||||
TraceID string `json:"trace_id,omitempty"`
|
||||
Time string `json:"time"`
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user