Documentation ¶
Index ¶
- Constants
- type Area
- type AreaModel
- func GetDistrictByCode(code string) *AreaModel
- func GetDistricts(filters []AreaModel) ([]AreaModel, int)
- func GetDistrictsByProvince(provinceCode string, filters []AreaModel) ([]AreaModel, int)
- func GetProvinceByCode(code string) *AreaModel
- func GetProvinces(filters []AreaModel) ([]AreaModel, int)
- func GetSubDistrictByCode(code string) *AreaModel
- func GetSubDistricts(filters []AreaModel) ([]AreaModel, int)
- func GetSubDistrictsByDistrict(districtCode string, filters []AreaModel) ([]AreaModel, int)
- func GetUrbanVillageByCode(code string) *AreaModel
- func GetUrbanVillages(filters []AreaModel) ([]AreaModel, int)
- func GetUrbanVillagesBySubDistrict(subDistrictCode string, filters []AreaModel) ([]AreaModel, int)
Constants ¶
View Source
const ( PROVINCE Area = "PROVINCE" DISTRICT = "DISTRICT" SUBDISTRICT = "SUBDISTRICT" URBANVILLAGE = "URBANVILLAGE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AreaModel ¶
type AreaModel struct { Code string `json:"code"` Name string `json:"name"` Parent string `json:"parent"` }
func GetDistrictByCode ¶
GetDistrictByCode find district by code
func GetDistricts ¶
GetDistricts generate district datas
func GetDistrictsByProvince ¶
GetDistrictsByProvince generate district by province code
func GetProvinceByCode ¶
GetProvinceByCode find province by code
func GetProvinces ¶
GetProvinces generate province datas
func GetSubDistrictByCode ¶
GetSubDistrictByCode find sub district by code
func GetSubDistricts ¶
GetSUbDistricts generate sub districts datas
func GetSubDistrictsByDistrict ¶
GetSubDistrictsByDistrict generate sub district by district code
func GetUrbanVillageByCode ¶
GetUrbanVillageByCode find urban village by code
func GetUrbanVillages ¶
GetUrbanVillages generate urban villages datas
Click to show internal directories.
Click to hide internal directories.