models

package
v1.47.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 0 Imported by: 10 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmountStatistics

type AmountStatistics struct {

	/* 体验总数 (Optional) */
	Free int `json:"free"`

	/* 付费总数 (Optional) */
	Charge int `json:"charge"`

	/* 总数 (Optional) */
	Total int `json:"total"`
}

type ApplicationInfo

type ApplicationInfo struct {

	/* 是否可用, 0-不可用 1-可用 (Optional) */
	Valid int `json:"valid"`
}

type Bwcfg

type Bwcfg struct {

	/* 数据的id,更新数据时需要传此ID (Optional) */
	Id *int `json:"id"`

	/* 关联内容 (Optional) */
	Content *string `json:"content"`

	/* 黑白名单类型,黑名单-black,白名单-white (Optional) */
	BwType *string `json:"bwType"`

	/* 数据类型,ip-IP,phone-手机,addr-地址,card-身份,pin-账户,eid-设备 (Optional) */
	ResourceType *string `json:"resourceType"`
}

type BwcfgSet

type BwcfgSet struct {

	/* 新增还是更新,add-新增,update-更新 (Optional) */
	Action *string `json:"action"`

	/* 黑白名单数据 (Optional) */
	Item []Bwcfg `json:"item"`
}

type CreditResult

type CreditResult struct {

	/* 是否成功,没成功会在failMsg附上错误信息 (Optional) */
	Success bool `json:"success"`

	/* 错误描述信息 (Optional) */
	FailMsg string `json:"failMsg"`

	/* 对应请求的dataId (Optional) */
	DataId string `json:"dataId"`

	/* 是否命中黑白名单,black-在黑名单中 white-在白名单中 none-不在任何名单中 (Optional) */
	InBWList string `json:"inBWList"`

	/* 对应请求的内容 (Optional) */
	Content string `json:"content"`

	/* 数据类型,ip-IP,phone-手机,addr-地址,card-身份,pin-账户,eid-设备 (Optional) */
	ResourceType string `json:"resourceType"`

	/* 评分数据 (Optional) */
	ScoreDetail CreditScoreDetail `json:"scoreDetail"`
}

type CreditScoreDetail

type CreditScoreDetail struct {

	/* 风险类型,对应riskCode的中文描述 (Optional) */
	RiskTag string `json:"riskTag"`

	/* 风险类型编码 (Optional) */
	RiskCode string `json:"riskCode"`

	/* 风险分类,对应riskCode的分类,101~106账号综合风险,201~207手机综合风险,301设备综合风险,401~403身份综合风险,501~506IP综合风险 (Optional) */
	RiskClass string `json:"riskClass"`

	/* 风险评分,1-低风险 2-中低风险 3-中风险 4-中高风险 5-高风险 0-未知 (Optional) */
	Score string `json:"score"`

	/* 对应score的中文描述,1-低风险 2-中低风险 3-中风险 4-中高风险 5-高风险 0-未知 (Optional) */
	ScoreDesc string `json:"scoreDesc"`
}

type CreditTask

type CreditTask struct {

	/* 数据Id。需要保证在一次请求中所有的Id不重复 (Optional) */
	DataId string `json:"dataId"`

	/* 待检测数据,最长512个字符 (Optional) */
	Content string `json:"content"`

	/* 数据类型,ip-IP,phone-手机,addr-地址,card-身份,pin-账户,eid-设备 (Optional) */
	ResourceType string `json:"resourceType"`
}

type DataOverview

type DataOverview struct {

	/* 总量 (Optional) */
	Total int `json:"total"`

	/* 已调用的量 (Optional) */
	Consume int `json:"consume"`

	/*  (Optional) */
	Detail RiskDetail `json:"detail"`
}

type DataResult

type DataResult struct {

	/* 检测时间,秒级时间戳 (Optional) */
	Timestamp int `json:"timestamp"`

	/* 数据类型,ip-IP,phone-手机,addr-地址,card-身份,pin-账户,eid-设备 (Optional) */
	ResourceType string `json:"resourceType"`

	/* 文本类型为检测内容,图片类型为图片短链 (Optional) */
	Content string `json:"content"`

	/* 风险级别,1-低风险 2-中低风险 3-中风险 4-中高风险 5-高风险 0-未知 (Optional) */
	RiskLevel int `json:"riskLevel"`

	/* 风险标签 (Optional) */
	RiskTag string `json:"riskTag"`
}

type DataStatement

type DataStatement struct {

	/* 时间, yyyy-mm-dd hh:mm:ss格式 (Optional) */
	Time string `json:"time"`

	/*  (Optional) */
	Data DataOverview `json:"data"`
}

type GetPriceReq

type GetPriceReq struct {

	/* 地域信息  */
	Region string `json:"region"`

	/* 购买类型, 1:创建 2:续费 3:升配  */
	BuyType int `json:"buyType"`

	/* 购买时长  */
	TimeSpan int `json:"timeSpan"`

	/* 时间单位,month, year  */
	TimeUnit string `json:"timeUnit"`

	/* 套餐类型 1.phone 2.IP 3.addr 4.eid 5.signup 6.login 7.marketing 8.pin 9.card  */
	PackageType int `json:"packageType"`
}

type OrderInfo

type OrderInfo struct {

	/* 用户名 (Optional) */
	Pin string `json:"pin"`

	/* 资源包类型 (Optional) */
	PackageType string `json:"packageType"`

	/* 时长 (Optional) */
	Validity string `json:"validity"`

	/* 规格 (Optional) */
	Specs string `json:"specs"`

	/* 资源包数量 (Optional) */
	Quantity int `json:"quantity"`

	/* 价格 (Optional) */
	TotalFee string `json:"totalFee"`

	/* 支付时间 (Optional) */
	PayTime string `json:"payTime"`
}

type OrderReq

type OrderReq struct {

	/* 地域信息  */
	Region string `json:"region"`

	/* 购买类型, 1:创建 2:续费 3:升配  */
	BuyType int `json:"buyType"`

	/* 购买时长  */
	TimeSpan int `json:"timeSpan"`

	/* 时间单位,month, year  */
	TimeUnit string `json:"timeUnit"`

	/* 创建时间  */
	StartTime int `json:"startTime"`

	/* 套餐类型 1.phone 2.IP 3.addr 4.eid 5.signup 6.login 7.marketing 8.pin 9.card  */
	PackageType int `json:"packageType"`

	/* 下单成功后返回的url, eg:http://abc.com  */
	ReturnURL string `json:"returnURL"`
}

type PackInfo

type PackInfo struct {

	/* 资源包类型 (Optional) */
	PackageType string `json:"packageType"`

	/* 来源,1-免费,2-付费 (Optional) */
	From int `json:"from"`

	/* 总用量 (Optional) */
	TotalAmount string `json:"totalAmount"`

	/* 剩余用量 (Optional) */
	BalanceAmount string `json:"balanceAmount"`

	/* 生效时间 (Optional) */
	StartTime string `json:"startTime"`

	/* 失效时间 (Optional) */
	EndTime string `json:"endTime"`

	/* 资源包id (Optional) */
	PackId string `json:"packId"`
}

type ResourceDataOverview

type ResourceDataOverview struct {

	/* 总量 (Optional) */
	Total int `json:"total"`

	/* 已调用的量 (Optional) */
	Consume int `json:"consume"`

	/*  (Optional) */
	Detail ResourceDetail `json:"detail"`
}

type ResourceDetail

type ResourceDetail struct {

	/* IP (Optional) */
	Ip int `json:"ip"`

	/* 地址 (Optional) */
	Addr int `json:"addr"`

	/* 设备 (Optional) */
	Eid int `json:"eid"`

	/* 手机 (Optional) */
	Phone int `json:"phone"`

	/* 账号 (Optional) */
	Pin int `json:"pin"`

	/* 身份 (Optional) */
	Card int `json:"card"`
}

type RiskDetail

type RiskDetail struct {

	/* 中风险 (Optional) */
	MeRisk int `json:"meRisk"`

	/* 低风险 (Optional) */
	LowRisk int `json:"lowRisk"`

	/* 中低风险 (Optional) */
	MedLoRisk int `json:"medLoRisk"`

	/* 中高风险 (Optional) */
	MedHiRisk int `json:"medHiRisk"`

	/* 高风险 (Optional) */
	HiRisk int `json:"hiRisk"`

	/* 未知 (Optional) */
	Unknown int `json:"unknown"`
}

type UserDetail

type UserDetail struct {

	/* 用户名称 (Optional) */
	Pin string `json:"pin"`

	/* 更新时间, yyyy-mm-dd hh:mm:ss格式 (Optional) */
	UpdateTime string `json:"updateTime"`

	/* 创建时间, yyyy-mm-dd hh:mm:ss格式 (Optional) */
	CreateTime string `json:"createTime"`

	/* 用户类型,0-全部类型,1-有效用户,2-无效用户,3-付费用户,4-免费用户 (Optional) */
	UserType string `json:"userType"`

	/* 累计调用量(1个月内) (Optional) */
	UsedAmount int `json:"usedAmount"`

	/* 购入流量包数 (Optional) */
	PackagesAmount int `json:"packagesAmount"`

	/* 跟踪描述 (Optional) */
	Tracking string `json:"tracking"`
}

Jump to

Keyboard shortcuts

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