fix(doubao): update file size type to int64 (#8289)

This commit is contained in:
MadDogOwner 2025-04-03 20:34:27 +08:00 committed by GitHub
parent e4bd223d1c
commit 37640221c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -55,9 +55,9 @@ func (d *Doubao) List(ctx context.Context, dir model.Obj, args model.ListArgs) (
ID: child.ID, ID: child.ID,
Path: child.ParentID, Path: child.ParentID,
Name: child.Name, Name: child.Name,
Size: int64(child.Size), Size: child.Size,
Modified: time.Unix(int64(child.UpdateTime), 0), Modified: time.Unix(child.UpdateTime, 0),
Ctime: time.Unix(int64(child.CreateTime), 0), Ctime: time.Unix(child.CreateTime, 0),
IsFolder: child.NodeType == 1, IsFolder: child.NodeType == 1,
}, },
Key: child.Key, Key: child.Key,

View File

@ -22,15 +22,15 @@ type NodeInfo struct {
Name string `json:"name"` Name string `json:"name"`
Key string `json:"key"` Key string `json:"key"`
NodeType int `json:"node_type"` // 0: 文件, 1: 文件夹 NodeType int `json:"node_type"` // 0: 文件, 1: 文件夹
Size int `json:"size"` Size int64 `json:"size"`
Source int `json:"source"` Source int `json:"source"`
NameReviewStatus int `json:"name_review_status"` NameReviewStatus int `json:"name_review_status"`
ContentReviewStatus int `json:"content_review_status"` ContentReviewStatus int `json:"content_review_status"`
RiskReviewStatus int `json:"risk_review_status"` RiskReviewStatus int `json:"risk_review_status"`
ConversationID string `json:"conversation_id"` ConversationID string `json:"conversation_id"`
ParentID string `json:"parent_id"` ParentID string `json:"parent_id"`
CreateTime int `json:"create_time"` CreateTime int64 `json:"create_time"`
UpdateTime int `json:"update_time"` UpdateTime int64 `json:"update_time"`
} }
type GetFileUrlResp struct { type GetFileUrlResp struct {