fix: ude uint64
This commit is contained in:
parent
a9834a81d3
commit
13e5d5770b
|
@ -7,7 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type FileVersion struct {
|
type FileVersion struct {
|
||||||
Ts int `json:"ts"`
|
Ts uint64 `json:"ts"`
|
||||||
EncryptedCID *encoding.EncryptedCID `json:"encryptedCID,string"`
|
EncryptedCID *encoding.EncryptedCID `json:"encryptedCID,string"`
|
||||||
PlaintextCID *encoding.CID `json:"cid,string"`
|
PlaintextCID *encoding.CID `json:"cid,string"`
|
||||||
Thumbnail *FileVersionThumbnail `json:"thumbnail"`
|
Thumbnail *FileVersionThumbnail `json:"thumbnail"`
|
||||||
|
@ -15,7 +15,7 @@ type FileVersion struct {
|
||||||
Ext map[string]interface{} `json:"ext"`
|
Ext map[string]interface{} `json:"ext"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewFileVersion(ts int, encryptedCID *encoding.EncryptedCID, plaintextCID *encoding.CID, thumbnail *FileVersionThumbnail, hashes []*encoding.Multihash, ext map[string]interface{}) *FileVersion {
|
func NewFileVersion(ts uint64, encryptedCID *encoding.EncryptedCID, plaintextCID *encoding.CID, thumbnail *FileVersionThumbnail, hashes []*encoding.Multihash, ext map[string]interface{}) *FileVersion {
|
||||||
return &FileVersion{
|
return &FileVersion{
|
||||||
Ts: ts,
|
Ts: ts,
|
||||||
EncryptedCID: encryptedCID,
|
EncryptedCID: encryptedCID,
|
||||||
|
|
Loading…
Reference in New Issue