add
wangpengfei
2023-07-06 c394edd0b3c3fda6741d09c494cda96606d27501
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package request
 
type AddCity struct {
    Names []string `json:"name"` // 城市名称
}
 
type SetCity struct {
    ProvinceId int   `json:"province_id"` // 省份ID
    CityIds    []int `json:"city_ids"`    // 城市ID列表
}
 
type UpdateCities struct {
    Cities []UpdateCity `json:"cities"` // 城市列表
}
 
type UpdateCity struct {
    Id    int    `json:"id"`   // 城市ID
    Color string `json:"-"`    // 城市颜色
    Turn  int    `json:"-"`    // 城市顺序
    Name  string `json:"name"` // 城市名称
}