utils

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

type Operator struct {
	MCC      int    `json:"mcc,omitempty"`      // 移动国家代码
	MNC      int    `json:"mnc,omitempty"`      // 移动网络代码
	PLMN     int    `json:"plmn,omitempty"`     // PLMN代码
	Region   string `json:"region,omitempty"`   // 地区
	Country  string `json:"country,omitempty"`  // 国家名称
	ISO      string `json:"iso,omitempty"`      // ISO国家代码
	Operator string `json:"operator,omitempty"` // 运营商名称
	Brand    string `json:"brand,omitempty"`    // 品牌名称
	TADIG    string `json:"tadig,omitempty"`    // TADIG代码
	Bands    string `json:"bands,omitempty"`    // 频段信息
	Network  string `json:"network,omitempty"`  // 网络类型 (GSM, LTE, etc.)
	Status   string `json:"status,omitempty"`   // 状态 (active, inactive)
	Note     string `json:"note,omitempty"`     // 备注
}

Operator 表示运营商信息

func QueryPLMN

func QueryPLMN(arg string) (*Operator, error)

QueryPLMN 通过 PLMN、国家代码或模糊搜索查询运营商信息 参数 arg 可以是 PLMN (如 "46001")、ISO 国家代码 (如 "CN") 或模糊搜索词 (如 "China Mobile") 返回 Operator 指针和错误信息。API总是返回单个对象。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL