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,
Path: child.ParentID,
Name: child.Name,
Size: int64(child.Size),
Modified: time.Unix(int64(child.UpdateTime), 0),
Ctime: time.Unix(int64(child.CreateTime), 0),
Size: child.Size,
Modified: time.Unix(child.UpdateTime, 0),
Ctime: time.Unix(child.CreateTime, 0),
IsFolder: child.NodeType == 1,
},
Key: child.Key,

View File

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