package model import "bkb-seller/global" type Address struct { global.MG_MODEL UserID string `gorm:"size:50" json:"userId"` FirstName string `gorm:"size:50" json:"firstName"` //first name LastName string `gorm:"size:50" json:"lastName"` //last name Phone string `gorm:"size:20" json:"phone"` //手机号 Street string `gorm:"size:50" json:"street"` //street Bldg string `gorm:"size:100" json:"bldg"` //apt,ste,bldg City string `gorm:"size:50" json:"city"` //city State string `gorm:"size:50" json:"state"` //state ZipCode string `gorm:"size:50" json:"zipCode"` //zip code Default int `gorm:"tinyint(1)" json:"default"` //是否默认地址 1-是 2-否 Platform string `gorm:"size:50" json:"platform"` //平台 saller(买家端) / customer(客户端) / influencer(网红端) } func (Address) TableName() string { return "address" }