migr: migration json to x.json2

This commit is contained in:
meiseayoung
2025-12-30 12:40:30 +08:00
parent 85b001225e
commit a95485dd25
21 changed files with 223 additions and 145 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ module hono
import net.http
import os
import crypto.md5
import json
import x.json2
import time
// 分片上传配置
@@ -291,7 +291,7 @@ pub fn (manager ChunkUploadManager) get_upload_status(mut ctx Context) http.Resp
return ctx.resource_not_found('upload', file_hash)
}
return ctx.json(json.encode(upload_status))
return ctx.json(json2.encode[FileUploadStatus](upload_status))
}
// 更新上传状态