yinbentan
2024-09-26 2030ec81f18f4ec9ea1800f13046acafff6d50f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package request
 
type AddRegion struct {
    Name string `json:"name"` // 地区名称
}
 
type SetRegions struct {
    CityId    int   `json:"city_id"`    // 城市ID
    RegionIds []int `json:"region_ids"` // 地区ID列表
}
 
type UpdateRegions struct {
    Regions []UpdateRegion `json:"regions"` // 地区列表
}
 
type UpdateRegion struct {
    Id   int    `json:"id"`   // 地区ID
    Name string `json:"name"` // 地区名称
}