From a7bb94c1cc0628b58f57761fe4b69d98615c7df2 Mon Sep 17 00:00:00 2001 From: Aimerny Date: Sat, 1 Jun 2024 11:11:40 +0800 Subject: [PATCH] fix: :bug: some card fields set omitempty --- app/core/model/card.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/core/model/card.go b/app/core/model/card.go index 5b81303..7129aae 100644 --- a/app/core/model/card.go +++ b/app/core/model/card.go @@ -36,12 +36,12 @@ type CardModule struct { Value string `json:"value,omitempty"` Src string `json:"src,omitempty"` StartTime int64 `json:"startTime,omitempty"` - EndTime int64 `json:"endTime"` + EndTime int64 `json:"endTime,omitempty"` } type CardText struct { - Type string `json:"type"` - Content string `json:"content"` + Type string `json:"type,omitempty"` + Content string `json:"content,omitempty"` Cols int `json:"cols,omitempty"` Fields []CardText `json:"fields,omitempty"` }