mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-01-04 06:16:35 +08:00
对服务增加基础的数据统计/部分代码分Package
This commit is contained in:
24
internal/db/models/regions/region_city_model.go
Normal file
24
internal/db/models/regions/region_city_model.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package regions
|
||||
|
||||
//
|
||||
type RegionCity struct {
|
||||
Id uint32 `field:"id"` // ID
|
||||
ProvinceId uint32 `field:"provinceId"` // 省份ID
|
||||
Name string `field:"name"` // 名称
|
||||
Codes string `field:"codes"` // 代号
|
||||
State uint8 `field:"state"` // 状态
|
||||
DataId string `field:"dataId"` // 原始数据ID
|
||||
}
|
||||
|
||||
type RegionCityOperator struct {
|
||||
Id interface{} // ID
|
||||
ProvinceId interface{} // 省份ID
|
||||
Name interface{} // 名称
|
||||
Codes interface{} // 代号
|
||||
State interface{} // 状态
|
||||
DataId interface{} // 原始数据ID
|
||||
}
|
||||
|
||||
func NewRegionCityOperator() *RegionCityOperator {
|
||||
return &RegionCityOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user