refactor: use uint64

This commit is contained in:
Derrick Hammer 2024-01-17 14:12:18 -05:00
parent e9baacd55e
commit 47048ed2ab
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 4 deletions

View File

@ -18,8 +18,8 @@ type extMap struct {
type FileReference struct {
Name string `json:"name"`
Created int `json:"created"`
Version int `json:"version"`
Created uint64 `json:"created"`
Version uint64 `json:"version"`
File *FileVersion `json:"file"`
Ext extMap `json:"ext"`
History fileHistoryMap `json:"history"`
@ -28,7 +28,7 @@ type FileReference struct {
Key string `json:"key"`
}
func NewFileReference(name string, created, version int, file *FileVersion, ext extMap, history fileHistoryMap, mimeType string) *FileReference {
func NewFileReference(name string, created, version uint64, file *FileVersion, ext extMap, history fileHistoryMap, mimeType string) *FileReference {
return &FileReference{
Name: name,
Created: created,
@ -106,7 +106,7 @@ func (fr *FileReference) DecodeMsgpack(dec *msgpack.Decoder) error {
return err
}
fr.Version = val
fr.Version = uint64(val)
case int8(6):
err := dec.Decode(&fr.MimeType)
if err != nil {