liujiandao
2024-01-11 40e540f8ca398fee68f4520dbebd6db6fe2e164c
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"` // 地区名称
}