Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldsAddress ¶
type FieldsAddress struct { //所属国家 国家代码 // eg: china => 86 Country int `db:"country" json:"country" check:"country" empty:"true"` //省份 编码 // eg: 710000 Province int `db:"province" json:"province"` //所属城市 City int `db:"city" json:"city" check:"city" empty:"true"` //街道详细信息 Address string `db:"address" json:"address"` //地图制式 // 0 WGS-84 / 1 GCJ-02 / 2 BD-09 MapType int `db:"map_type" json:"mapType"` //坐标位置 Longitude float64 `db:"longitude" json:"longitude"` Latitude float64 `db:"latitude" json:"latitude"` //联系人姓名 Name string `db:"name" json:"name"` //联系人国家代码 NationCode string `db:"nation_code" json:"nationCode"` //联系人手机号 Phone string `db:"phone" json:"phone"` }
FieldsAddress 通用地址结构
func (*FieldsAddress) Check ¶
func (t *FieldsAddress) Check() (err error)
func (*FieldsAddress) GetMapType ¶
func (t *FieldsAddress) GetMapType() (data string)
func (*FieldsAddress) Scan ¶
func (t *FieldsAddress) Scan(value interface{}) error
Click to show internal directories.
Click to hide internal directories.