🐛 fix #397 139yun file size overflow int32
This commit is contained in:
parent
2ad27046fb
commit
4144afcc92
@ -136,7 +136,7 @@ func (driver Cloud139) GetFiles(catalogID string, account *model.Account) ([]mod
|
|||||||
f := model.File{
|
f := model.File{
|
||||||
Id: content.ContentID,
|
Id: content.ContentID,
|
||||||
Name: content.ContentName,
|
Name: content.ContentName,
|
||||||
Size: int64(content.ContentSize),
|
Size: content.ContentSize,
|
||||||
Type: utils.GetFileType(path.Ext(content.ContentName)),
|
Type: utils.GetFileType(path.Ext(content.ContentName)),
|
||||||
Driver: driver.Config().Name,
|
Driver: driver.Config().Name,
|
||||||
UpdatedAt: getTime(content.UpdateTime),
|
UpdatedAt: getTime(content.UpdateTime),
|
||||||
|
@ -43,7 +43,7 @@ func (driver Cloud139) familyGetFiles(catalogID string, account *model.Account)
|
|||||||
f := model.File{
|
f := model.File{
|
||||||
Id: content.ContentID,
|
Id: content.ContentID,
|
||||||
Name: content.ContentName,
|
Name: content.ContentName,
|
||||||
Size: int64(content.ContentSize),
|
Size: content.ContentSize,
|
||||||
Type: utils.GetFileType(path.Ext(content.ContentName)),
|
Type: utils.GetFileType(path.Ext(content.ContentName)),
|
||||||
Driver: driver.Config().Name,
|
Driver: driver.Config().Name,
|
||||||
UpdatedAt: getTime(content.LastUpdateTime),
|
UpdatedAt: getTime(content.LastUpdateTime),
|
||||||
|
@ -40,7 +40,7 @@ type Content struct {
|
|||||||
ContentID string `json:"contentID"`
|
ContentID string `json:"contentID"`
|
||||||
ContentName string `json:"contentName"`
|
ContentName string `json:"contentName"`
|
||||||
//ContentSuffix string `json:"contentSuffix"`
|
//ContentSuffix string `json:"contentSuffix"`
|
||||||
ContentSize int `json:"contentSize"`
|
ContentSize int64 `json:"contentSize"`
|
||||||
//ContentDesc string `json:"contentDesc"`
|
//ContentDesc string `json:"contentDesc"`
|
||||||
//ContentType int `json:"contentType"`
|
//ContentType int `json:"contentType"`
|
||||||
//ContentOrigin int `json:"contentOrigin"`
|
//ContentOrigin int `json:"contentOrigin"`
|
||||||
@ -133,42 +133,42 @@ type UploadResp struct {
|
|||||||
|
|
||||||
type CloudContent struct {
|
type CloudContent struct {
|
||||||
ContentID string `json:"contentID"`
|
ContentID string `json:"contentID"`
|
||||||
Modifier string `json:"modifier"`
|
//Modifier string `json:"modifier"`
|
||||||
Nickname string `json:"nickname"`
|
//Nickname string `json:"nickname"`
|
||||||
CloudNickName string `json:"cloudNickName"`
|
//CloudNickName string `json:"cloudNickName"`
|
||||||
ContentName string `json:"contentName"`
|
ContentName string `json:"contentName"`
|
||||||
ContentType int `json:"contentType"`
|
//ContentType int `json:"contentType"`
|
||||||
ContentSuffix string `json:"contentSuffix"`
|
//ContentSuffix string `json:"contentSuffix"`
|
||||||
ContentSize int `json:"contentSize"`
|
ContentSize int64 `json:"contentSize"`
|
||||||
ContentDesc string `json:"contentDesc"`
|
//ContentDesc string `json:"contentDesc"`
|
||||||
CreateTime string `json:"createTime"`
|
//CreateTime string `json:"createTime"`
|
||||||
Shottime interface{} `json:"shottime"`
|
//Shottime interface{} `json:"shottime"`
|
||||||
LastUpdateTime string `json:"lastUpdateTime"`
|
LastUpdateTime string `json:"lastUpdateTime"`
|
||||||
ThumbnailURL string `json:"thumbnailURL"`
|
ThumbnailURL string `json:"thumbnailURL"`
|
||||||
MidthumbnailURL string `json:"midthumbnailURL"`
|
//MidthumbnailURL string `json:"midthumbnailURL"`
|
||||||
BigthumbnailURL string `json:"bigthumbnailURL"`
|
//BigthumbnailURL string `json:"bigthumbnailURL"`
|
||||||
PresentURL string `json:"presentURL"`
|
//PresentURL string `json:"presentURL"`
|
||||||
PresentLURL string `json:"presentLURL"`
|
//PresentLURL string `json:"presentLURL"`
|
||||||
PresentHURL string `json:"presentHURL"`
|
//PresentHURL string `json:"presentHURL"`
|
||||||
ParentCatalogID string `json:"parentCatalogID"`
|
//ParentCatalogID string `json:"parentCatalogID"`
|
||||||
Uploader string `json:"uploader"`
|
//Uploader string `json:"uploader"`
|
||||||
UploaderNickName string `json:"uploaderNickName"`
|
//UploaderNickName string `json:"uploaderNickName"`
|
||||||
TreeInfo interface{} `json:"treeInfo"`
|
//TreeInfo interface{} `json:"treeInfo"`
|
||||||
UpdateTime interface{} `json:"updateTime"`
|
//UpdateTime interface{} `json:"updateTime"`
|
||||||
ExtInfo struct {
|
//ExtInfo struct {
|
||||||
Uploader string `json:"uploader"`
|
// Uploader string `json:"uploader"`
|
||||||
} `json:"extInfo"`
|
//} `json:"extInfo"`
|
||||||
EtagOprType interface{} `json:"etagOprType"`
|
//EtagOprType interface{} `json:"etagOprType"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CloudCatalog struct {
|
type CloudCatalog struct {
|
||||||
CatalogID string `json:"catalogID"`
|
CatalogID string `json:"catalogID"`
|
||||||
CatalogName string `json:"catalogName"`
|
CatalogName string `json:"catalogName"`
|
||||||
CloudID string `json:"cloudID"`
|
//CloudID string `json:"cloudID"`
|
||||||
CreateTime string `json:"createTime"`
|
//CreateTime string `json:"createTime"`
|
||||||
LastUpdateTime string `json:"lastUpdateTime"`
|
LastUpdateTime string `json:"lastUpdateTime"`
|
||||||
Creator string `json:"creator"`
|
//Creator string `json:"creator"`
|
||||||
CreatorNickname string `json:"creatorNickname"`
|
//CreatorNickname string `json:"creatorNickname"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type QueryContentListResp struct {
|
type QueryContentListResp struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user