models

package
v1.69.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 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 added in v1.56.0

type AmountStatistics struct {

	/* 免费总数 (Optional) */
	Free int `json:"free"`

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

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

type App

type App struct {

	/* 应用id (Optional) */
	AppId int64 `json:"appId"`

	/* 应用名称  */
	AppName string `json:"appName"`

	/* 应用类型,可选值 app, pc, wxapp, m  */
	AppType string `json:"appType"`

	/* 应用系统,支持多选多选以逗号分隔, 选择appType是app时可选android,ios 其余为空  */
	AppOs string `json:"appOs"`

	/* android应用的package name(应用是android的时候androidPkgName必须) (Optional) */
	AndroidPkgName string `json:"androidPkgName"`

	/* ios应用的bundle id(应用是ios的时候iosBundleId必须) (Optional) */
	IosBundleId string `json:"iosBundleId"`

	/* 应用描述 (Optional) */
	Description string `json:"description"`

	/* app下关联场景数 (Optional) */
	SceneCount int `json:"sceneCount"`

	/* 应用创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 应用更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type ApplicationInfo

type ApplicationInfo struct {

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

type Captcha

type Captcha struct {

	/* 验证码名称 (Optional) */
	Name string `json:"name"`

	/* tp值 (Optional) */
	Tp int `json:"tp"`
}

type CountData

type CountData struct {

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

	/* 占比 (Optional) */
	Rate int `json:"rate"`
}

type DataOverview

type DataOverview struct {

	/* 应用数 (Optional) */
	AppCount int `json:"appCount"`

	/* 场景数 (Optional) */
	SceneCount int `json:"sceneCount"`

	/* 请求量 (Optional) */
	RequestCount int `json:"requestCount"`

	/* 之前请求量,用于计算环比 (Optional) */
	RequestCountPre int `json:"requestCountPre"`

	/* 通过量 (Optional) */
	PassCount int `json:"passCount"`

	/* 之前通过量,用于计算环比 (Optional) */
	PassCountPre int `json:"passCountPre"`

	/* 防御量 (Optional) */
	BlockCount int `json:"blockCount"`

	/* 之前的防御量,用于计算环比 (Optional) */
	BlockCountPre int `json:"blockCountPre"`
}

type DataStatement

type DataStatement struct {

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

	/* 总体请求量 (Optional) */
	RequestCount int `json:"requestCount"`

	/* 静默验证请求量 (Optional) */
	SilentCount int `json:"silentCount"`

	/* 静默验证通过量 (Optional) */
	SilentPassCount int `json:"silentPassCount"`

	/* 静默验证防御量 (Optional) */
	SilentBlockCount int `json:"silentBlockCount"`

	/* 验证码请求量 (Optional) */
	CaptchaCount int `json:"captchaCount"`

	/* 验证码通过量 (Optional) */
	CaptchaPassCount int `json:"captchaPassCount"`

	/* 验证码防御量 (Optional) */
	CaptchaBlockCount int `json:"captchaBlockCount"`

	/* 总通过率 (Optional) */
	PassRate int `json:"passRate"`

	/* 静默通过率 (Optional) */
	SilentPassRate int `json:"silentPassRate"`

	/* 验证码通过率 (Optional) */
	CaptchaPassRate int `json:"captchaPassRate"`
}

type GetDataOverviewReq

type GetDataOverviewReq struct {

	/* 开始时间戳,单位秒,时间间隔要求大于5分钟,小于30天  */
	Start int `json:"start"`

	/* 结束时间戳,单位秒,时间间隔要求大于5分钟,小于30天  */
	End int `json:"end"`

	/* 应用id (Optional) */
	AppIds []int64 `json:"appIds"`

	/* 场景id (Optional) */
	SceneIds []int64 `json:"sceneIds"`
}

type GetDataStatementReq

type GetDataStatementReq struct {

	/* 开始时间戳,单位毫秒,时间间隔要求大于5分钟,小于30天  */
	Start int `json:"start"`

	/* 结束时间戳,单位毫秒,时间间隔要求大于5分钟,小于30天  */
	End int `json:"end"`

	/* 查询QPS的类型,默认total, 可选: all(总体请求量趋势), silent(静默验证请求量趋势), captcha(验证码请求量趋势) (Optional) */
	RequestType string `json:"requestType"`

	/* 应用id (Optional) */
	AppIds []int64 `json:"appIds"`

	/* 场景id (Optional) */
	SceneIds []int64 `json:"sceneIds"`

	/* 每页显示的个数,默认是10 (Optional) */
	PageSize int `json:"pageSize"`

	/* 页数,默认是1 (Optional) */
	PageIndex int `json:"pageIndex"`

	/* 默认:升序;(升序:asc; 降序:desc) (Optional) */
	OrderBy string `json:"orderBy"`
}

type GetPassRateDataTrendReq

type GetPassRateDataTrendReq struct {

	/* 开始时间戳,单位秒,时间间隔要求大于5分钟,小于30天  */
	Start int `json:"start"`

	/* 结束时间戳,单位秒,时间间隔要求大于5分钟,小于30天  */
	End int `json:"end"`

	/* 应用id (Optional) */
	AppIds []int64 `json:"appIds"`

	/* 场景id (Optional) */
	SceneIds []int64 `json:"sceneIds"`
}

type GetRequestDataTrendReq

type GetRequestDataTrendReq struct {

	/* 开始时间戳,单位毫秒,时间间隔要求大于5分钟,小于30天  */
	Start int `json:"start"`

	/* 结束时间戳,单位毫秒,时间间隔要求大于5分钟,小于30天  */
	End int `json:"end"`

	/* 查询QPS的类型,默认all, 可选: all(总体请求量趋势), silent(静默验证请求量趋势), captcha(验证码请求量趋势) (Optional) */
	RequestType string `json:"requestType"`

	/* 应用id (Optional) */
	AppIds []int64 `json:"appIds"`

	/* 场景id (Optional) */
	SceneIds []int64 `json:"sceneIds"`
}

type Label

type Label struct {

	/* 标签值,下发策略时需要传递的数据 (Optional) */
	Value string `json:"value"`

	/* 标签名称 (Optional) */
	Name string `json:"name"`

	/* dtc_id (Optional) */
	DtcId int `json:"dtcId"`

	/* 维度 (Optional) */
	Dimension string `json:"dimension"`

	/* 字段名 (Optional) */
	FieldName string `json:"fieldName"`
}

type ModifyReq added in v1.56.0

type ModifyReq struct {

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

type OrderDetail added in v1.56.0

type OrderDetail struct {

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

	/* 产品名称 (Optional) */
	Pkgname string `json:"pkgname"`

	/* 规格 (Optional) */
	BalanceAmount string `json:"balanceAmount"`

	/* 付费类型 (Optional) */
	OrderType string `json:"orderType"`

	/* 下单时间,yyyy-mm-dd hh:mm:ss格式 (Optional) */
	StartTime string `json:"startTime"`

	/* 订单状态 (Optional) */
	OrderState string `json:"orderState"`

	/* 订单金额 (Optional) */
	OrderAmount int `json:"orderAmount"`

	/* 代金券 (Optional) */
	Voucher int `json:"voucher"`

	/* 余额 (Optional) */
	Yue int `json:"yue"`

	/* 实付款总额 (Optional) */
	PaymentAmount int `json:"paymentAmount"`
}

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 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 RiskConfig

type RiskConfig struct {

	/* 风险标签 (Optional) */
	Risk_labels []string `json:"risk_labels"`

	/* 验证码类型 (Optional) */
	Captcha_type int `json:"captcha_type"`
}

type Scene

type Scene struct {

	/* 场景id,更新时必填 (Optional) */
	SceneId int64 `json:"sceneId"`

	/* 场景密钥 (Optional) */
	SceneSecret string `json:"sceneSecret"`

	/* 所属应用id  */
	AppId int64 `json:"appId"`

	/* 所属应用名称 (Optional) */
	AppName string `json:"appName"`

	/* 场景名称  */
	SceneName string `json:"sceneName"`

	/* 场景类型:account:账号场景(登录、注册等)activity:活动场景(秒杀、领券等)content:内容场景(发帖评论、签到投票等)other:其它  */
	SceneType string `json:"sceneType"`

	/* 平均qps  */
	SceneAvgQps int `json:"sceneAvgQps"`

	/* 高峰期qps  */
	SceneMaxQps int `json:"sceneMaxQps"`

	/* 场景描述 (Optional) */
	Description string `json:"description"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`
}

type Sdk added in v1.56.0

type Sdk struct {

	/* 应用id  */
	AppId int64 `json:"appId"`

	/* sdk类型, 可选值android或者ios  */
	SdkType string `json:"sdkType"`

	/* sdk版本号  */
	SdkVersion string `json:"sdkVersion"`
}

type SessionData

type SessionData struct {

	/* 应用id  */
	AppId int64 `json:"appId"`

	/* 场景id  */
	SceneId int64 `json:"sceneId"`

	/* 密钥,从界面获取  */
	Secret string `json:"secret"`

	/* uuid,ios客户端传openudid, android客户端传androidid, pc和wxapp客户端可不传 (Optional) */
	Uuid string `json:"uuid"`

	/* 客户端ip  */
	Ip string `json:"ip"`

	/* 客户端userAgent  */
	UserAgent string `json:"userAgent"`

	/* 指纹,客户端sdk获取 (Optional) */
	FingerPrint string `json:"fingerPrint"`

	/* 客户端类型, android, ios, pc, wxapp, m  */
	ClientType string `json:"clientType"`

	/* 客户端版本,用户端app版本,可选 (Optional) */
	ClientVersion string `json:"clientVersion"`
}

type SessionDataResp

type SessionDataResp struct {

	/* 代号, 0000:通过,0001:拒绝,0002:内部错误,0003:补充验证 (Optional) */
	Code string `json:"code"`

	/* 会话id,0003补充验证时返回 (Optional) */
	SessionId string `json:"sessionId"`
}

type Tactics

type Tactics struct {

	/* 场景id  */
	SceneId int64 `json:"sceneId"`

	/* 所属应用id  */
	AppId int64 `json:"appId"`

	/* 策略类型:1 智能组合,2过载保护,3自有策略,4验证码策略 (Optional) */
	TacticsType int `json:"tacticsType"`

	/* 可疑请求配置 (Optional) */
	SuspiciousRiskConfig RiskConfig `json:"suspiciousRiskConfig"`

	/* 问题请求配置 (Optional) */
	AbandonRiskConfig RiskConfig `json:"abandonRiskConfig"`
}

type TacticsItem added in v1.56.0

type TacticsItem struct {

	/* 策略类型:1 智能组合,2过载保护,3自有策略,4验证码策略 (Optional) */
	TacticsType int `json:"tacticsType"`

	/* 可疑请求配置 (Optional) */
	SuspiciousRiskConfig RiskConfig `json:"suspiciousRiskConfig"`

	/* 问题请求配置 (Optional) */
	AbandonRiskConfig RiskConfig `json:"abandonRiskConfig"`
}

type Trial added in v1.56.0

type Trial struct {

	/* 应用id (Optional) */
	AppId int64 `json:"appId"`

	/* 场景id (Optional) */
	SceneId int64 `json:"sceneId"`

	/* 场景secret,前端调用时需要先解密再调用,解密请联系相关研发 (Optional) */
	Secret string `json:"secret"`

	/* 支持的APP类型,有的验证码类型不支持pc端体验,需要切换到移动端体验, eg["pc","m"] (Optional) */
	Supports []string `json:"supports"`

	/* 验证码类型 (Optional) */
	CaptchaType int `json:"captchaType"`

	/* 验证码名称 (Optional) */
	CaptchaName string `json:"captchaName"`
}

type UserDetail added in v1.56.0

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-无效用户 (Optional) */
	UserType string `json:"userType"`

	/* 剩余调用量 (Optional) */
	SurplusAmount int `json:"surplusAmount"`

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

	/* 总购买量 (Optional) */
	PackagesAmount int `json:"packagesAmount"`

	/* 资源包数量 (Optional) */
	PackagesNum int `json:"packagesNum"`

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

type UserPkgDetail added in v1.56.0

type UserPkgDetail struct {

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

	/* 购买流量包数 (Optional) */
	Pkg []int `json:"pkg"`
}

type VerifyData

type VerifyData struct {

	/* 提交后台校验的token,客户端sdk获取  */
	VerifyToken string `json:"verifyToken"`

	/* 验证码回话id,getsessionid返回  */
	SessionId string `json:"sessionId"`

	/* 应用id  */
	AppId int `json:"appId"`

	/* 场景id  */
	SceneId int `json:"sceneId"`

	/* 密钥,从界面获取 (Optional) */
	Secret string `json:"secret"`

	/* 客户端ip  */
	Ip string `json:"ip"`

	/* 客户端userAgent  */
	UserAgent string `json:"userAgent"`

	/* 客户端类型, android, ios, pc, wxapp (Optional) */
	ClientType string `json:"clientType"`

	/* 客户端版本,用户端app版本,可选 (Optional) */
	ClientVersion string `json:"clientVersion"`
}

type VerifyDataResp

type VerifyDataResp struct {

	/* 代号,0000:验证成功,0001:验证失败,0002:内部错误 (Optional) */
	Code string `json:"code"`

	/* 会话id,验证失败后返回 (Optional) */
	SessionId string `json:"sessionId"`
}

Jump to

Keyboard shortcuts

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