refactor: revise field
This commit is contained in:
parent
1c906262ad
commit
8540470c62
|
@ -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的时间范围
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user