添加获取所有边缘节点接口;重构相关数据结构与服务逻辑
This commit is contained in:
@@ -23,6 +23,19 @@ func ISPFromStr(str string) ISP {
|
||||
return IspUnknown
|
||||
}
|
||||
|
||||
func ISPToStr(isp ISP) string {
|
||||
switch isp {
|
||||
case IspChinaTelecom:
|
||||
return "电信"
|
||||
case IspChinaUnicom:
|
||||
return "联通"
|
||||
case IspChinaMobile:
|
||||
return "移动"
|
||||
default:
|
||||
return "未知"
|
||||
}
|
||||
}
|
||||
|
||||
type Type int32
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user