Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
Types ¶
type Phone ¶
type Phone struct { // 7位前缀 Num string `gorm:"column:phone"` // 省份 Province string `gorm:"column:province"` // 城市 City string `gorm:"column:city"` // 运营商 Isp string `gorm:"column:isp"` }
func (*Phone) MarshalLogObject ¶
func (p *Phone) MarshalLogObject(enc zapcore.ObjectEncoder) error
zap 日志格式化
type PhoneRepository ¶
func NewPhoneRepository ¶
func NewPhoneRepository() *PhoneRepository
func (*PhoneRepository) Phones ¶
func (p *PhoneRepository) Phones() ([]Phone, error)
Click to show internal directories.
Click to hide internal directories.