phone

package
v0.0.0-...-4d909b8 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Province string `json:"province"` //省份
	City     string `json:"city"`     //城市
}

type Phone

type Phone struct {
	Index       int    `json:"index"`        //索引
	PhoneNumber string `json:"phone_number"` //号码
	Sp          string `json:"sp"`           //运营商
	Card        string `json:"card"`         //卡类型
	From        string `json:"from"`         //来源渠道
	//Org         string   `json:"org"`          // 组织
	Location Location `json:"location"` //归属地
	Tag      Tag      `json:"tag"`      //标记
}

func New

func New(phoneNumber string) (p *Phone)

新建查询号码

func (*Phone) QueryAll

func (p *Phone) QueryAll() (pr PhoneList, err error)

查询号码 所有渠道的信息

func (*Phone) QueryOne

func (p *Phone) QueryOne(from string) (pl PhoneList, err error)

查询号码 指定单独一个渠道的信息

func (*Phone) Query_360shoujiweishi

func (p *Phone) Query_360shoujiweishi() (pr Phone, err error)

func (*Phone) Query_baidushoujiweishi

func (p *Phone) Query_baidushoujiweishi() (pr Phone, err error)

func (*Phone) Query_sogouhaomatong

func (p *Phone) Query_sogouhaomatong() (pr Phone, err error)

type PhoneList

type PhoneList []*Phone

func (PhoneList) Len

func (p PhoneList) Len() int

func (PhoneList) Less

func (p PhoneList) Less(i, j int) bool

func (PhoneList) Swap

func (p PhoneList) Swap(i, j int)

type Tag

type Tag struct {
	TagName string `json:"tag_name"` //标记名称
	TagCnt  int    `json:"tag_cnt"`  //标记人数
}

Jump to

Keyboard shortcuts

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