From b825b0c98e171dce7a33ca410cf025d1796d4ca3 Mon Sep 17 00:00:00 2001 From: mountain Date: Wed, 7 Jun 2023 13:57:37 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EB=AC=B8=EC=9E=90=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/api.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/api.go b/core/api.go index ff10666..8e2950a 100644 --- a/core/api.go +++ b/core/api.go @@ -29,14 +29,14 @@ import ( ) type fileDocumentDesc struct { - Service string - Key string - Src string - Link string - Desc string - Extract bool - Timestamp int64 - Contents []byte `json:",omitempty"` + Service string `bson:"service" json:"service"` + Key string `bson:"key" json:"key"` + Src string `bson:"src" json:"src"` + Link string `bson:"link" json:"link"` + Desc string `bson:"desc" json:"desc"` + Extract bool `bson:"extract" json:"extract"` + Timestamp int64 `bson:"timestamp" json:"timestamp"` + Contents []byte `bson:"contents,omitempty" json:"contents,omitempty"` } func (fd *fileDocumentDesc) save() error {