Add region and etrap APIs for branch create form.
Expose distinct regions and etraps-by-region under provinces and branches, and seed real etraps per welayat. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -37,3 +37,12 @@ type ListProvinceDTO struct {
|
||||
Count int64 `json:"count"`
|
||||
Provinces []ProvinceDTO `json:"provinces"`
|
||||
}
|
||||
|
||||
type ListRegionsDTO struct {
|
||||
Regions []LocalizedName `json:"regions"`
|
||||
}
|
||||
|
||||
type ListEtrapsDTO struct {
|
||||
Count int64 `json:"count"`
|
||||
Etraps []ProvinceDTO `json:"etraps"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user