Documentation ¶
Index ¶
Constants ¶
View Source
const ( UnknownRelationType = iota QQ Tel Email Address )
Variables ¶
View Source
var RelationTypeMap = map[int]string{ UnknownRelationType: "unknown", QQ: "qq", Tel: "tel", Email: "email", Address: "address", }
Functions ¶
func RelationTypeToString ¶
Types ¶
type Contact ¶
type Contact struct { xdb.Entity SupplierId int64 `gorm:"column:supplier_id;NOT NULL" json:"supplier_id"` // 供货商ID Firstname string `gorm:"column:firstname;NOT NULL" json:"firstname"` // 名 Lastname string `gorm:"column:lastname;NOT NULL" json:"lastname"` // 姓 Title string `gorm:"column:title;NOT NULL" json:"title"` // 职称 Relations []Relation `gorm:"ForeignKey:contact_id"` xdb.CUDTime }
func (*Contact) GetRelations ¶
type Relation ¶
Click to show internal directories.
Click to hide internal directories.