mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-30 18:16:36 +08:00
字段中的blob和JSON类型映射为[]byte和dbs.JSON
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
package regions
|
||||
|
||||
//
|
||||
import "github.com/iwind/TeaGo/dbs"
|
||||
|
||||
// RegionCity 区域城市
|
||||
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
|
||||
Id uint32 `field:"id"` // ID
|
||||
ProvinceId uint32 `field:"provinceId"` // 省份ID
|
||||
Name string `field:"name"` // 名称
|
||||
Codes dbs.JSON `field:"codes"` // 代号
|
||||
State uint8 `field:"state"` // 状态
|
||||
DataId string `field:"dataId"` // 原始数据ID
|
||||
}
|
||||
|
||||
type RegionCityOperator struct {
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
package regions
|
||||
|
||||
//
|
||||
import "github.com/iwind/TeaGo/dbs"
|
||||
|
||||
// RegionCountry 区域国家|地区
|
||||
type RegionCountry struct {
|
||||
Id uint32 `field:"id"` // ID
|
||||
Name string `field:"name"` // 名称
|
||||
Codes string `field:"codes"` // 代号
|
||||
State uint8 `field:"state"` // 状态
|
||||
DataId string `field:"dataId"` // 原始数据ID
|
||||
Pinyin string `field:"pinyin"` // 拼音
|
||||
Id uint32 `field:"id"` // ID
|
||||
Name string `field:"name"` // 名称
|
||||
Codes dbs.JSON `field:"codes"` // 代号
|
||||
State uint8 `field:"state"` // 状态
|
||||
DataId string `field:"dataId"` // 原始数据ID
|
||||
Pinyin dbs.JSON `field:"pinyin"` // 拼音
|
||||
}
|
||||
|
||||
type RegionCountryOperator struct {
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
package regions
|
||||
|
||||
//
|
||||
import "github.com/iwind/TeaGo/dbs"
|
||||
|
||||
// RegionProvider 区域ISP
|
||||
type RegionProvider struct {
|
||||
Id uint32 `field:"id"` // ID
|
||||
Name string `field:"name"` // 名称
|
||||
Codes string `field:"codes"` // 代号
|
||||
State uint8 `field:"state"` // 状态
|
||||
Id uint32 `field:"id"` // ID
|
||||
Name string `field:"name"` // 名称
|
||||
Codes dbs.JSON `field:"codes"` // 代号
|
||||
State uint8 `field:"state"` // 状态
|
||||
}
|
||||
|
||||
type RegionProviderOperator struct {
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
package regions
|
||||
|
||||
//
|
||||
import "github.com/iwind/TeaGo/dbs"
|
||||
|
||||
// RegionProvince 区域省份
|
||||
type RegionProvince struct {
|
||||
Id uint32 `field:"id"` // ID
|
||||
CountryId uint32 `field:"countryId"` // 国家ID
|
||||
Name string `field:"name"` // 名称
|
||||
Codes string `field:"codes"` // 代号
|
||||
State uint8 `field:"state"` // 状态
|
||||
DataId string `field:"dataId"` // 原始数据ID
|
||||
Id uint32 `field:"id"` // ID
|
||||
CountryId uint32 `field:"countryId"` // 国家ID
|
||||
Name string `field:"name"` // 名称
|
||||
Codes dbs.JSON `field:"codes"` // 代号
|
||||
State uint8 `field:"state"` // 状态
|
||||
DataId string `field:"dataId"` // 原始数据ID
|
||||
}
|
||||
|
||||
type RegionProvinceOperator struct {
|
||||
|
||||
Reference in New Issue
Block a user