添加获取所有边缘节点接口;重构相关数据结构与服务逻辑

This commit is contained in:
2025-05-23 18:58:03 +08:00
parent c83ffda611
commit 1524eef4a9
7 changed files with 152 additions and 22 deletions

View File

@@ -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 (