- GetOrderEvents

- idcard and licence for store
This commit is contained in:
gazebo
2018-11-12 12:00:09 +08:00
parent 86b50e5c66
commit 920e6ba35a
9 changed files with 81 additions and 38 deletions

View File

@@ -24,13 +24,6 @@ const (
)
var (
StoreStatusName map[int]string
DeliveryRangeTypeName map[int]string
DeliveryTypeName map[int]string
BankName map[string]string
)
func init() {
StoreStatusName = map[int]string{
StoreStatusDisabled: "禁用",
StoreStatusClosed: "休息",
@@ -109,7 +102,7 @@ func init() {
"QLBANK": "齐鲁银行",
"YDRCB": "尧都农村商业银行",
}
}
)
type Store struct {
ModelIDCULD
@@ -130,6 +123,11 @@ type Store struct {
DeliveryRange string `orm:"type(text)" json:"deliveryRange"` // 如果DeliveryRangeType为DeliveryRangeTypePolygon则为逗号分隔坐标分号分隔的坐标点坐标与Lng和Lat一样都是整数比如 121361504,31189308;121420555,31150238。否则为半径单位为米
Status int `json:"status"`
IDCardFront string `orm:"size(255);column(id_card_front)" json:"idCardFront"`
IDCardBack string `orm:"size(255);column(id_card_back)" json:"idCardBack"`
IDCardHand string `orm:"size(255);column(id_card_hand)" json:"idCardHand"`
Licence string `orm:"size(255)" json:"licence"`
DeliveryType int8 `orm:"-" json:"-"`
}