forked from free-lancers/electricity_bill_calc_service
		
	feat(region):加入服务启动时同步行政区划。
This commit is contained in:
		| @@ -3,7 +3,7 @@ package model | ||||
| type Region struct { | ||||
| 	Code   string `xorm:"varchar(15) pk not null" json:"code"` | ||||
| 	Name   string `xorm:"varchar(50) not null" json:"name"` | ||||
| 	Level  int8   `xorm:"smallint not null default 0" json:"level"` | ||||
| 	Level  int    `xorm:"int not null default 0" json:"level"` | ||||
| 	Parent string `xorm:"varchar(15) not null default '0'" json:"parent"` | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -9,7 +9,6 @@ import ( | ||||
| type UserCharge struct { | ||||
| 	Created    `xorm:"extends"` | ||||
| 	Seq        int64           `xorm:"bigint pk not null " json:"seq"` | ||||
| 	CreatedAt  time.Time       `xorm:"timestampz not null" json:"createdAt"` | ||||
| 	UserId     string          `xorm:"varchar(120) not null" json:"userId"` | ||||
| 	Fee        decimal.Decimal `xorm:"numeric(12,2) not null" json:"fee"` | ||||
| 	Discount   decimal.Decimal `xorm:"numeric(5,4) not null" json:"discount"` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user