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:
2026-08-11 12:12:07 +05:00
parent 51283ffa14
commit 1987d4f596
10 changed files with 822 additions and 15 deletions

View File

@@ -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"`
}