ing
This commit is contained in:
parent
6d6ac17b0a
commit
846c510a1a
|
@ -83,6 +83,10 @@ var (
|
|||
}
|
||||
)
|
||||
|
||||
func (e MetaCryptoTypeEnum) String() string {
|
||||
return metaCryptoTypeEnumID[e]
|
||||
}
|
||||
|
||||
func ToMetaCryptoTypeEnum(v *MetaCryptoType) MetaCryptoTypeEnum {
|
||||
return metaCryptoTypeEnumKey[v.Key]
|
||||
}
|
||||
|
|
|
@ -32,6 +32,10 @@ var (
|
|||
}
|
||||
)
|
||||
|
||||
func (e MetaIPTypeEnum) String() string {
|
||||
return metaIPTypeEnumID[e]
|
||||
}
|
||||
|
||||
func ToMetaIPTypeEnum(v *MetaIPType) MetaIPTypeEnum {
|
||||
return metaIPTypeEnumKey[v.Key]
|
||||
}
|
||||
|
|
|
@ -35,6 +35,10 @@ var (
|
|||
}
|
||||
)
|
||||
|
||||
func (e MetaInfraTypeEnum) String() string {
|
||||
return metaInfraTypeEnumID[e]
|
||||
}
|
||||
|
||||
func ToMetaInfraTypeEnum(v *MetaInfraType) MetaInfraTypeEnum {
|
||||
return metaInfraTypeEnumKey[v.Key]
|
||||
}
|
||||
|
|
|
@ -38,6 +38,10 @@ var (
|
|||
}
|
||||
)
|
||||
|
||||
func (e MetaMemberStatusEnum) String() string {
|
||||
return metaMemberStatusEnumID[e]
|
||||
}
|
||||
|
||||
func ToMetaMemberStatusEnum(v *MetaMemberStatus) MetaMemberStatusEnum {
|
||||
return metaMemberStatusEnumKey[v.Key]
|
||||
}
|
||||
|
|
|
@ -35,6 +35,10 @@ var (
|
|||
}
|
||||
)
|
||||
|
||||
func (e NoAuthProbeStatusEnum) String() string {
|
||||
return noAuthProbeStatusEnumID[e]
|
||||
}
|
||||
|
||||
func ToNoAuthProbeStatusEnum(v *MetaNoAuthProbeStatus) NoAuthProbeStatusEnum {
|
||||
return noAuthProbeStatusEnumKey[v.Key]
|
||||
}
|
||||
|
|
|
@ -32,6 +32,10 @@ var (
|
|||
}
|
||||
)
|
||||
|
||||
func (e MetaPortTypeEnum) String() string {
|
||||
return metaPortTypeEnumID[e]
|
||||
}
|
||||
|
||||
func ToMetaPortTypeEnum(v *MetaPortType) MetaPortTypeEnum {
|
||||
return metaPortTypeEnumKey[v.Key]
|
||||
}
|
||||
|
|
|
@ -32,6 +32,10 @@ var (
|
|||
}
|
||||
)
|
||||
|
||||
func (e MetaProbeStatusEnum) String() string {
|
||||
return metaProbeStatusEnumID[e]
|
||||
}
|
||||
|
||||
func ToMetaProbeStatusEnum(v *MetaProbeStatus) MetaProbeStatusEnum {
|
||||
return metaProbeStatusEnumKey[v.Key]
|
||||
}
|
||||
|
|
|
@ -20,6 +20,10 @@ var (
|
|||
}
|
||||
)
|
||||
|
||||
func (e MetaTargetHostTypeEnum) String() string {
|
||||
return metaTargetHostTypeEnumID[e]
|
||||
}
|
||||
|
||||
func ToMetaTargetHostTypeEnum(v *MetaTargetHostType) MetaTargetHostTypeEnum {
|
||||
return metaTargetHostTypeEnumKey[v.Key]
|
||||
}
|
||||
|
|
|
@ -20,6 +20,10 @@ var (
|
|||
}
|
||||
)
|
||||
|
||||
func (e MetaTargetServiceTypeEnum) String() string {
|
||||
return metaTargetServiceTypeEnumID[e]
|
||||
}
|
||||
|
||||
func ToMetaTargetServiceTypeEnum(v *MetaTargetServiceType) MetaTargetServiceTypeEnum {
|
||||
return metaTargetServiceTypeEnumKey[v.Key]
|
||||
}
|
||||
|
|
|
@ -23,6 +23,10 @@ var (
|
|||
}
|
||||
)
|
||||
|
||||
func (e MetaTargetZoneTypeEnum) String() string {
|
||||
return metaTargetZoneTypeEnumID[e]
|
||||
}
|
||||
|
||||
func ToMetaTargetZoneTypeEnum(v *MetaTargetZoneType) MetaTargetZoneTypeEnum {
|
||||
return metaTargetZoneTypeEnumKey[v.Key]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user