- 门店添加一堆与执照资料相关的属性

This commit is contained in:
gazebo
2019-05-15 16:41:41 +08:00
parent a3aabcf8a8
commit e395c7c891
2 changed files with 37 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
package model
import "time"
const (
StoreStatusAll = -9
StoreStatusDisabled = -1
@@ -131,6 +133,8 @@ type Store struct {
Status int `json:"status"`
ChangePriceType int8 `json:"changePriceType"` // 修改价格类型,即是否需要审核
DeliveryType int8 `orm:"-" json:"deliveryType"` // 仅用于传值
PrinterVendorID int `orm:"column(printer_vendor_id);" json:"printerVendorID"`
PrinterSN string `orm:"size(32);column(printer_sn);index" json:"printerSN"`
PrinterKey string `orm:"size(32)" json:"printerKey"`
@@ -141,7 +145,22 @@ type Store struct {
Licence string `orm:"size(255)" json:"licence"`
LicenceCode string `orm:"size(32)" json:"licenceCode"`
DeliveryType int8 `orm:"-" json:"deliveryType"` // 仅用于传值
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 time.Time `orm:"type(datetime);null" json:"licenceValid"` // 有效期开始
LicenceExpire time.Time `orm:"type(datetime);null" json:"licenceExpire"` // 有效期结束
IDName string `orm:"size(8);column(id_name)" json:"idName"` // 身份证姓名
IDCode string `orm:"size(32);column(id_code)" json:"idCode"` // 身份证号
IDValid time.Time `orm:"column(id_valid);type(datetime);null" json:"idValid"` // 有效期开始
IDExpire time.Time `orm:"column(id_expire);type(datetime);null" json:"idExpire"` // 有效期结束
Licence2Image string `orm:"size(255)" json:"licence2Image"` // 食品经营许可证
Licence2Code string `orm:"size(32)" json:"licence2Code"` // 食品经营许可证编号
Licence2Valid time.Time `orm:"type(datetime);null" json:"licence2Valid"` // 有效期开始
Licence2Expire time.Time `orm:"type(datetime);null" json:"licence2Expire"` // 有效期结束
}
func (*Store) TableUnique() [][]string {