- add changePriceType to model.Store

- send weixin msg when op request handled.
This commit is contained in:
gazebo
2018-12-24 11:59:29 +08:00
parent c26ac82d72
commit dffa68612e
5 changed files with 148 additions and 38 deletions

View File

@@ -23,6 +23,11 @@ const (
StoreDeliveryTypeByStore = 2 //完全门店自送
)
const (
StoreChangePriceTypeDirect = 0
StoreChangePriceTypeNeedApprove = 1
)
var (
StoreStatusName = map[int]string{
StoreStatusDisabled: "禁用",
@@ -122,6 +127,7 @@ type Store struct {
DeliveryRangeType int8 `json:"deliveryRangeType"` // 参见相关常量定义
DeliveryRange string `orm:"type(text)" json:"deliveryRange"` // 如果DeliveryRangeType为DeliveryRangeTypePolygon则为逗号分隔坐标分号分隔的坐标点坐标与Lng和Lat一样都是整数比如 121361504,31189308;121420555,31150238。否则为半径单位为米
Status int `json:"status"`
ChangePriceType int8 `json:"changePriceType"`
IDCardFront string `orm:"size(255);column(id_card_front)" json:"idCardFront"`
IDCardBack string `orm:"size(255);column(id_card_back)" json:"idCardBack"`