瀏覽代碼

feat(response): 添加文件元数据中的内容类型字段

- 在 MetaData 结构体中新增 ContentType 字段
- 为 ContentType 字段添加 JSON 标签映射
- 重新排列结构体字段格式以提高可读性
- 保持原有 FileName、FileType、SizeStr 和 Size 字段不变
wangbo 2 周之前
父節點
當前提交
e8dd6ad2a6
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      response.go

+ 5 - 4
response.go

@@ -2,10 +2,11 @@ package osm_sdk
 
 type (
 	MetaData struct {
-		FileName string `json:"fileName"`
-		FileType string `json:"fileType"`
-		SizeStr  string `json:"size"`
-		Size     int64  `json:"-"`
+		FileName    string `json:"fileName"`
+		FileType    string `json:"fileType"`
+		SizeStr     string `json:"size"`
+		Size        int64  `json:"-"`
+		ContentType string `json:"contentType"`
 	}
 
 	UrlWithMetaData struct {