mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	省份表增加线路字段
This commit is contained in:
		@@ -14,11 +14,12 @@ const (
 | 
			
		||||
	RegionCountryField_DataId      dbs.FieldName = "dataId"      // 原始数据ID
 | 
			
		||||
	RegionCountryField_Pinyin      dbs.FieldName = "pinyin"      // 拼音
 | 
			
		||||
	RegionCountryField_IsCommon    dbs.FieldName = "isCommon"    // 是否常用
 | 
			
		||||
	RegionCountryField_RouteCode   dbs.FieldName = "routeCode"   // 线路代号
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// RegionCountry 区域-国家/地区
 | 
			
		||||
type RegionCountry struct {
 | 
			
		||||
	Id1          uint32   `field:"id"`          // ID
 | 
			
		||||
	Id          uint32   `field:"id"`          // ID
 | 
			
		||||
	ValueId     uint32   `field:"valueId"`     // 实际ID
 | 
			
		||||
	ValueCode   string   `field:"valueCode"`   // 值代号
 | 
			
		||||
	Name        string   `field:"name"`        // 名称
 | 
			
		||||
@@ -29,6 +30,7 @@ type RegionCountry struct {
 | 
			
		||||
	DataId      string   `field:"dataId"`      // 原始数据ID
 | 
			
		||||
	Pinyin      dbs.JSON `field:"pinyin"`      // 拼音
 | 
			
		||||
	IsCommon    bool     `field:"isCommon"`    // 是否常用
 | 
			
		||||
	RouteCode   string   `field:"routeCode"`   // 线路代号
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type RegionCountryOperator struct {
 | 
			
		||||
@@ -43,6 +45,7 @@ type RegionCountryOperator struct {
 | 
			
		||||
	DataId      any // 原始数据ID
 | 
			
		||||
	Pinyin      any // 拼音
 | 
			
		||||
	IsCommon    any // 是否常用
 | 
			
		||||
	RouteCode   any // 线路代号
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewRegionCountryOperator() *RegionCountryOperator {
 | 
			
		||||
 
 | 
			
		||||
@@ -12,11 +12,12 @@ const (
 | 
			
		||||
	RegionProvinceField_CustomCodes dbs.FieldName = "customCodes" // 自定义代号
 | 
			
		||||
	RegionProvinceField_State       dbs.FieldName = "state"       // 状态
 | 
			
		||||
	RegionProvinceField_DataId      dbs.FieldName = "dataId"      // 原始数据ID
 | 
			
		||||
	RegionProvinceField_RouteCode   dbs.FieldName = "routeCode"   // 线路代号
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// RegionProvince 区域-省份
 | 
			
		||||
type RegionProvince struct {
 | 
			
		||||
	Id1          uint32   `field:"id"`          // ID
 | 
			
		||||
	Id          uint32   `field:"id"`          // ID
 | 
			
		||||
	ValueId     uint32   `field:"valueId"`     // 实际ID
 | 
			
		||||
	CountryId   uint32   `field:"countryId"`   // 国家ID
 | 
			
		||||
	Name        string   `field:"name"`        // 名称
 | 
			
		||||
@@ -25,6 +26,7 @@ type RegionProvince struct {
 | 
			
		||||
	CustomCodes dbs.JSON `field:"customCodes"` // 自定义代号
 | 
			
		||||
	State       uint8    `field:"state"`       // 状态
 | 
			
		||||
	DataId      string   `field:"dataId"`      // 原始数据ID
 | 
			
		||||
	RouteCode   string   `field:"routeCode"`   // 线路代号
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type RegionProvinceOperator struct {
 | 
			
		||||
@@ -37,6 +39,7 @@ type RegionProvinceOperator struct {
 | 
			
		||||
	CustomCodes any // 自定义代号
 | 
			
		||||
	State       any // 状态
 | 
			
		||||
	DataId      any // 原始数据ID
 | 
			
		||||
	RouteCode   any // 线路代号
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewRegionProvinceOperator() *RegionProvinceOperator {
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user