package model import "shop-api/global" type SellerStore struct { // 店铺 StoreNo string `gorm:"unique;type:varchar(60);" json:"store_no"` // 店铺编号 Type int `gorm:"type:tinyint(1)" json:"type"` // 1:个人店铺 CreateBy string `gorm:"type:varchar(60);" json:"create_by"` // 创建人 Email string `gorm:"type:varchar(100);" json:"email"` // 店铺联系email(注册账号email) global.MG_MODEL } // 后续删除 type SellerUserDesc struct { Email string `json:"email" gorm:"unique;type:varchar(100);comment:邮箱"` // } type SellerStoreInfo struct { StoreNo string `json:"store_no"` // 店铺编号 Type int `json:"type"` // 1:个人店铺 CreateBy string `json:"-"` // Email string `json:"email"` // 店铺联系email(注册账号email) } func (SellerStore) TableName() string { return "seller_store" } func (SellerStoreInfo) TableName() string { return "seller_store" }