-
Notifications
You must be signed in to change notification settings - Fork 1
/
structure.go
37 lines (34 loc) · 759 Bytes
/
structure.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package rwanda
type Provinces []Province
type Province struct {
Id int `json:"id"`
Name string `json:"name"`
Districts []District `json:"districts"`
}
type Village struct {
Id int `json:"id"`
Name string `json:"name"`
CellID int `json:"cell_id"`
}
type Cell struct {
Id int `json:"id"`
Name string `json:"name"`
SectorID int `json:"sector_id"`
Villages []Village `json:"villages"`
}
type Sector struct {
Id int `json:"id"`
Name string `json:"name"`
DistrictID int `json:"district_id"`
Cells []Cell `json:"cells"`
}
type District struct {
Id int `json:"id"`
Name string `json:"name"`
ProvinceID string `json:"province_id"`
Sectors []Sector `json:"sectors"`
}
type StandaloneEntity struct {
Id int `json:"id"`
Name string `json:"name"`
}