门店审核
This commit is contained in:
@@ -697,3 +697,62 @@ func (*StorePushClient) TableUnique() [][]string {
|
|||||||
[]string{"StoreID", "ClientID"},
|
[]string{"StoreID", "ClientID"},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type StoreAudit struct {
|
||||||
|
ModelIDCULD
|
||||||
|
|
||||||
|
Name string `orm:"size(255)" json:"name"`
|
||||||
|
CityCode int `orm:"default(0);null" json:"cityCode"` // todo ?
|
||||||
|
DistrictCode int `orm:"default(0);null" json:"districtCode"` // todo ?
|
||||||
|
Address string `orm:"size(255)" json:"address"`
|
||||||
|
Tel1 string `orm:"size(32);index" json:"tel1"`
|
||||||
|
Tel2 string `orm:"size(32);index" json:"tel2"`
|
||||||
|
OpenTime1 int16 `json:"openTime1" validate:"max=2359,min=1,ltfield=CloseTime1"` // 930就表示9点半,用两个的原因是为了支持中午休息,1与2的时间段不能交叉,为0表示没有
|
||||||
|
CloseTime1 int16 `json:"closeTime1" validate:"max=2359,min=1` // 格式同上
|
||||||
|
OpenTime2 int16 `json:"openTime2" validate:"max=2359,min=1,ltfield=CloseTime2"` // 格式同上
|
||||||
|
CloseTime2 int16 `json:"closeTime2" validate:"max=2359,min=1` // 格式同上
|
||||||
|
Lng int `json:"-"` // 乘了10的6次方
|
||||||
|
Lat int `json:"-"` // 乘了10的6次方
|
||||||
|
DeliveryRangeType int8 `json:"deliveryRangeType"` // 参见相关常量定义
|
||||||
|
DeliveryRange string `orm:"type(text)" json:"deliveryRange"` // 如果DeliveryRangeType为DeliveryRangeTypePolygon,则为逗号分隔坐标,分号分隔的坐标点(坐标与Lng和Lat一样,都是整数),比如 121361504,31189308;121420555,31150238。否则为半径,单位为米
|
||||||
|
Status int `json:"status"`
|
||||||
|
SMSNotify int8 `orm:"column(sms_notify);" json:"smsNotify"` // 是否通过短信接收订单消息(每天只推一条)
|
||||||
|
|
||||||
|
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"` // 营业执照图片
|
||||||
|
LicenceCode string `orm:"size(32)" json:"licenceCode"`
|
||||||
|
|
||||||
|
LicenceType int8 `json:"licenceType"` // 营业执照类型,0:个人,1:公司
|
||||||
|
LicenceCorpName string `orm:"size(64)" json:"licenceCorpName"` // 营业执照公司名称
|
||||||
|
LicenceOwnerName string `orm:"size(8)" json:"licenceOwnerName"` // 法人姓名
|
||||||
|
LicenceAddress string `orm:"size(255)" json:"licenceAddress"` // 地址
|
||||||
|
LicenceValid string `orm:"size(32)" json:"licenceValid"` // 有效期开始
|
||||||
|
LicenceExpire string `orm:"size(32)" json:"licenceExpire"` // 有效期结束
|
||||||
|
|
||||||
|
IDName string `orm:"size(8);column(id_name)" json:"idName"` // 身份证姓名
|
||||||
|
IDCode string `orm:"size(32);column(id_code)" json:"idCode"` // 身份证号
|
||||||
|
IDValid string `orm:"column(id_valid);size(32)" json:"idValid"` // 有效期开始
|
||||||
|
IDExpire string `orm:"column(id_expire);size(32)" json:"idExpire"` // 有效期结束
|
||||||
|
|
||||||
|
Licence2Image string `orm:"size(255)" json:"licence2Image"` // 食品经营许可证
|
||||||
|
Licence2Code string `orm:"size(32)" json:"licence2Code"` // 食品经营许可证编号
|
||||||
|
Licence2Valid string `orm:"size(32)" json:"licence2Valid"` // 有效期开始
|
||||||
|
Licence2Expire string `orm:"size(32)" json:"licence2Expire"` // 有效期结束
|
||||||
|
|
||||||
|
UserID string `orm:"column(user_id);size(32)" json:"userID"` //谁发起的审核就把谁添加到这个门店里
|
||||||
|
AuditStatus int `json:"auditStatus"` //0是待审核,1是通过,-1是不通过
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*StoreAudit) TableUnique() [][]string {
|
||||||
|
return [][]string{
|
||||||
|
[]string{"Name"},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*StoreAudit) TableIndex() [][]string {
|
||||||
|
return [][]string{
|
||||||
|
[]string{"UserID"},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ func Init() {
|
|||||||
orm.RegisterModel(&model.ThingMap{})
|
orm.RegisterModel(&model.ThingMap{})
|
||||||
orm.RegisterModel(&model.SkuExinfoMap{})
|
orm.RegisterModel(&model.SkuExinfoMap{})
|
||||||
orm.RegisterModel(&model.StorePushClient{})
|
orm.RegisterModel(&model.StorePushClient{})
|
||||||
|
orm.RegisterModel(&model.StoreAudit{})
|
||||||
|
|
||||||
orm.RegisterModel(&model.AuthBind{}, &model.User{})
|
orm.RegisterModel(&model.AuthBind{}, &model.User{})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user