You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
965 B

6 months ago
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"
}