diff --git a/internal/bill/domain.go b/internal/bill/domain.go index 6f5c608..664ad3d 100644 --- a/internal/bill/domain.go +++ b/internal/bill/domain.go @@ -8,13 +8,12 @@ import ( // Bill represents 'bills' object. type Bill struct { gorm.Model - ID int `json:"id"` - Type string `json:"type"` - Date string `json:"date"` - Money float64 `json:"money"` - Class string `json:"class"` - Label string `json:"label"` - Options string `json:"options"` + Type string + Date string + Money float64 + Class string + Label string + Options string } // BDate 用于判断获取bill的时间范围 diff --git a/internal/label/domain.go b/internal/label/domain.go index 9a86a02..eebfcbe 100644 --- a/internal/label/domain.go +++ b/internal/label/domain.go @@ -7,11 +7,9 @@ import ( type Label struct { gorm.Model - ID int `json:"id"` - Type string `json:"type"` - Name string `json:"name"` - RelativeId int `json:"relativeId"` - Count int `json:"count"` + Type string + Name string + Count int } type LabelRepository interface {