package entity import "gopkg.in/guregu/null.v3" type UserLinker struct { Id int `db:"id"` CustomId int `db:"custom_id"` Name string `db:"name"` //联系人姓名 Gender int `db:"gender"` Mobile string `db:"mobile"` Age int `db:"age"` Birthday string `db:"birthday"` Province string `db:"province"` CityId int `db:"city_id"` City string `db:"city"` County string `db:"county"` CountyId int `db:"county_id"` Address string `db:"address"` DetailAddress string `db:"detail_address"` Long float32 `db:"longitude"` Lat float32 `db:"latitude"` IsDefault int `db:"is_default"` CreatedAt string `db:"created_at"` UpdatedAt string `db:"updated_at"` RelId int `db:"rel_id"` IdNumber string `db:"id_number",json:"IdNumber"` IdType string `db:"id_type",json:"IdType"` } type UserLinkerDB struct { Id int `db:"id"` CustomId int `db:"custom_id"` Name string `db:"name"` //联系人姓名 Gender int `db:"gender"` Mobile string `db:"mobile"` Age int `db:"age"` Birthday null.String `db:"birthday"` Province null.String `db:"province"` CityId int `db:"city_id"` City null.String `db:"city"` CountyId int `db:"county_id"` County null.String `db:"county"` Address null.String `db:"address"` DetailAddress null.String `db:"detail_address"` Long null.Float `db:"longitude"` Lat null.Float `db:"latitude"` RelId null.Int `db:"rel_id"` IsDefault int `db:"is_default"` CreatedAt string `db:"created_at"` UpdatedAt string `db:"updated_at"` IdNumber string `db:"id_number"` IdType string `db:"id_type"` }