- store man almost ok.
This commit is contained in:
@@ -35,6 +35,8 @@ type Store struct {
|
||||
DeliveryRangeType int8 `json:"deliveryRangeType"` // 参见相关常量定义
|
||||
DeliveryRange string `orm:"size(2048)" json:"deliveryRange"` // 如果DeliveryRangeType为DeliveryRangeTypePolygon,则为逗号分隔坐标,分号分隔的坐标点(坐标与Lng和Lat一样,都是整数),比如 121361504,31189308;121420555,31150238。否则为半径,单位为米
|
||||
Status int `json:"status"`
|
||||
|
||||
DeliveryType int8 `orm:"-" json:"-"`
|
||||
}
|
||||
|
||||
type StoreSub struct {
|
||||
@@ -59,14 +61,16 @@ func (*StoreSub) TableUnique() [][]string {
|
||||
type StoreMap struct {
|
||||
ModelIDCUL
|
||||
|
||||
StoreID int `orm:"column(store_id)"`
|
||||
VendorID int `orm:"column(vendor_id)"`
|
||||
VendorStoreID string `orm:"column(vendor_store_id);size(48)"`
|
||||
Status int // 取值同Store.Status
|
||||
StoreID int `orm:"column(store_id)" json:"storeID"`
|
||||
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
|
||||
VendorStoreID string `orm:"column(vendor_store_id);size(48)" json:"vendorStoreID"`
|
||||
Status int `json:"status"` // 取值同Store.Status
|
||||
|
||||
AutoPickup int8 // 是否自动拣货
|
||||
DeliveryType int8 // 配送类型
|
||||
DeliveryCompetition int8 // 是否支持配送竞争
|
||||
SyncStatus int8 `orm:"default(2)" json:"syncStatus"`
|
||||
|
||||
AutoPickup int8 `json:"autoPickup"` // 是否自动拣货
|
||||
DeliveryType int8 `json:"deliveryType"` // 配送类型
|
||||
DeliveryCompetition int8 `json:"deliveryCompetition"` // 是否支持配送竞争
|
||||
}
|
||||
|
||||
func (*StoreMap) TableUnique() [][]string {
|
||||
|
||||
Reference in New Issue
Block a user