From 8a94f79768642f8587eabeada1ade225c6aaf02b Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 15 May 2019 17:39:04 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E5=B0=86store=E4=B8=AD=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E7=B1=BB=E5=9E=8B=E9=83=BD=E6=94=B9=E4=B8=BAtime.Time?= =?UTF-8?q?=E6=8C=87=E9=92=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/store.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/business/model/store.go b/business/model/store.go index 7fce0bb51..cc1fb3b89 100644 --- a/business/model/store.go +++ b/business/model/store.go @@ -145,22 +145,22 @@ type Store struct { 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 time.Time `orm:"type(datetime);null" json:"licenceValid"` // 有效期开始 - LicenceExpire time.Time `orm:"type(datetime);null" json:"licenceExpire"` // 有效期结束 + 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"` // 有效期结束 + 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"` // 有效期结束 + 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 {