From 9172336d351473199e7822ed6658b1dbc7f40f11 Mon Sep 17 00:00:00 2001 From: hexxa Date: Mon, 28 Mar 2022 15:58:03 +0800 Subject: [PATCH] fix(db): add yaml tags --- src/db/common.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/db/common.go b/src/db/common.go index 3c45cb5..d2be80d 100644 --- a/src/db/common.go +++ b/src/db/common.go @@ -88,11 +88,11 @@ var ( ) type FileInfo struct { - IsDir bool `json:"isDir"` - Shared bool `json:"shared"` - ShareID string `json:"shareID"` // for short url - Sha1 string `json:"sha1"` - Size int64 `json:"size"` + IsDir bool `json:"isDir" yaml:"isDir"` + Shared bool `json:"shared" yaml:"shared"` + ShareID string `json:"shareID" yaml:"shareID"` + Sha1 string `json:"sha1" yaml:"sha1"` + Size int64 `json:"size" yaml:"size"` } type UserCfg struct {