forked from free-lancers/electricity_bill_calc_service
		
	fix(model):补充模型定义时丢失的部分字段。
This commit is contained in:
		| @@ -6,6 +6,17 @@ import ( | ||||
| 	"github.com/shopspring/decimal" | ||||
| ) | ||||
|  | ||||
| const ( | ||||
| 	CATEGORY_TWO_PART int8 = iota | ||||
| 	CATEGORY_SINGLE_PV | ||||
| 	CATEGORY_SINGLE_NON_PV | ||||
| ) | ||||
|  | ||||
| const ( | ||||
| 	CUSTOMER_METER_NON_PV int8 = iota | ||||
| 	CUSTOMER_METER_PV | ||||
| ) | ||||
|  | ||||
| type Park struct { | ||||
| 	CreatedAndModified `xorm:"extends"` | ||||
| 	Deleted            `xorm:"extends"` | ||||
| @@ -16,8 +27,8 @@ type Park struct { | ||||
| 	Area               decimal.NullDecimal `xorm:"numeric(14,2)" json:"area"` | ||||
| 	TenementQuantity   decimal.NullDecimal `xorm:"numeric(8,0)" json:"tenement"` | ||||
| 	Capacity           decimal.NullDecimal `xorm:"numeric(16,2)" json:"capacity"` | ||||
| 	Category           int8                `xorm:"smallint not null" json:"category"` | ||||
| 	SubmeterType       int8                `xorm:"'meter_04kv_type' smallint not null" json:"meter04kvType"` | ||||
| 	Category           int8                `xorm:"smallint not null default 0" json:"category"` | ||||
| 	SubmeterType       int8                `xorm:"'meter_04kv_type' smallint not null default 0" json:"meter04kvType"` | ||||
| 	Region             *string             `xorm:"varchar(10)" json:"region"` | ||||
| 	Address            *string             `xorm:"varchar(120)" json:"address"` | ||||
| 	Contact            *string             `xorm:"varchar(100)" json:"contact"` | ||||
|   | ||||
| @@ -14,6 +14,8 @@ type Report struct { | ||||
| 	Id                    string     `xorm:"varchar(120) pk not null" json:"id"` | ||||
| 	ParkId                string     `xorm:"varchar(120) not null" json:"parkId"` | ||||
| 	Period                time.Time  `xorm:"date not null" json:"period" time_format:"simple_date" time_location:"shanghai"` | ||||
| 	Category              int8       `xorm:"smallint not null default 0" json:"category"` | ||||
| 	SubmeterType          int8       `xorm:"'meter_04kv_type' smallint not null default 0" json:"meter04kvType"` | ||||
| 	StepState             Steps      `xorm:"text not null json" json:"stepState"` | ||||
| 	Published             bool       `xorm:"bool not null default false" json:"published"` | ||||
| 	PublishedAt           *time.Time `xorm:"timestampz" json:"publishedAt" time_format:"simple_datetime" time_location:"shanghai"` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user