Documentation
¶
Overview ¶
Package antifraud 包含反欺诈风控API相关结构体
Index ¶
- type AccountRiskDetail
- type CollinadataContext
- type CollinadataQueryResult
- type ParamAccountQuery
- type ResultWrapper
- type SigAuthenticateContext
- type SigAuthenticateResult
- type TaobaoAntifraudRiskassessmentGetAPIRequest
- func (r TaobaoAntifraudRiskassessmentGetAPIRequest) GetApiMethodName() string
- func (r TaobaoAntifraudRiskassessmentGetAPIRequest) GetApiParams() url.Values
- func (r TaobaoAntifraudRiskassessmentGetAPIRequest) GetCollinadataContext() *CollinadataContext
- func (r *TaobaoAntifraudRiskassessmentGetAPIRequest) SetCollinadataContext(_collinadataContext *CollinadataContext) error
- type TaobaoAntifraudRiskassessmentGetAPIResponse
- type TaobaoAntifraudRiskassessmentGetAPIResponseModel
- type TaobaoAntifraudRiskuserGetAPIRequest
- func (r TaobaoAntifraudRiskuserGetAPIRequest) GetApiMethodName() string
- func (r TaobaoAntifraudRiskuserGetAPIRequest) GetApiParams() url.Values
- func (r TaobaoAntifraudRiskuserGetAPIRequest) GetParamAccountQuery() *ParamAccountQuery
- func (r *TaobaoAntifraudRiskuserGetAPIRequest) SetParamAccountQuery(_paramAccountQuery *ParamAccountQuery) error
- type TaobaoAntifraudRiskuserGetAPIResponse
- type TaobaoAntifraudRiskuserGetAPIResponseModel
- type TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest
- func (r TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) GetApiMethodName() string
- func (r TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) GetApiParams() url.Values
- func (r TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) GetSigAuthenticateContext() *SigAuthenticateContext
- func (r *TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) SetSigAuthenticateContext(_sigAuthenticateContext *SigAuthenticateContext) error
- type TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponse
- type TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRiskDetail ¶
type AccountRiskDetail struct { // 表示一个具体的用户风险详情 Name string `json:"name,omitempty" xml:"name,omitempty"` }
AccountRiskDetail 结构体
type CollinadataContext ¶
type CollinadataContext struct { // 客户标识,由ISP指定 AppKey string `json:"app_key,omitempty" xml:"app_key,omitempty"` // 页面生成的请求的标识. TokenId string `json:"token_id,omitempty" xml:"token_id,omitempty"` // 场景标识, 由ISP指 SceneId string `json:"scene_id,omitempty" xml:"scene_id,omitempty"` // 参数签名, 签名函数由ISP提供 SerialNo string `json:"serial_no,omitempty" xml:"serial_no,omitempty"` // 透传参数 Trans string `json:"trans,omitempty" xml:"trans,omitempty"` // 发起查询的时间,用于加密serial_no TimeStamp int64 `json:"time_stamp,omitempty" xml:"time_stamp,omitempty"` }
CollinadataContext 结构体
type CollinadataQueryResult ¶
type CollinadataQueryResult struct { // 积分信息.千分制 Score string `json:"score,omitempty" xml:"score,omitempty"` // pass,review,reject RiskLevel string `json:"risk_level,omitempty" xml:"risk_level,omitempty"` // 字符串格式, 关于score生成的描述信息. 本字段可能为空. Detail string `json:"detail,omitempty" xml:"detail,omitempty"` }
CollinadataQueryResult 结构体
type ParamAccountQuery ¶
type ParamAccountQuery struct { // 反欺诈服务AppKey AppKey string `json:"app_key,omitempty" xml:"app_key,omitempty"` // 时间戳 Timestamp string `json:"timestamp,omitempty" xml:"timestamp,omitempty"` // 身份校验信息 AppToken string `json:"app_token,omitempty" xml:"app_token,omitempty"` // 场景ID SceneId string `json:"scene_id,omitempty" xml:"scene_id,omitempty"` // 手机号 PhoneNumber string `json:"phone_number,omitempty" xml:"phone_number,omitempty"` // IP Ip string `json:"ip,omitempty" xml:"ip,omitempty"` // 透传参数,是一个json形式的字符串 Trans string `json:"trans,omitempty" xml:"trans,omitempty"` }
ParamAccountQuery 结构体
type ResultWrapper ¶
type ResultWrapper struct { // 描述 Msg string `json:"msg,omitempty" xml:"msg,omitempty"` // 返回风控结果信息 Result *CollinadataQueryResult `json:"result,omitempty" xml:"result,omitempty"` // 返回结果码 0为成功,其他为错误码 Code int64 `json:"code,omitempty" xml:"code,omitempty"` // 返回是否成功 Success bool `json:"success,omitempty" xml:"success,omitempty"` }
ResultWrapper 结构体
type SigAuthenticateContext ¶
type SigAuthenticateContext struct { // 接入密码 AccessKey string `json:"access_key,omitempty" xml:"access_key,omitempty"` // 接入应用标识 AppKey string `json:"app_key,omitempty" xml:"app_key,omitempty"` // 接入应用采集到的最终用户ip RemoteIp string `json:"remote_ip,omitempty" xml:"remote_ip,omitempty"` // collinaface JS分配的会话id SessionId string `json:"session_id,omitempty" xml:"session_id,omitempty"` // 签名串 Sig string `json:"sig,omitempty" xml:"sig,omitempty"` // 会话标识,由sip提供的tokenutil工具类生成 Token string `json:"token,omitempty" xml:"token,omitempty"` }
SigAuthenticateContext 结构体
type SigAuthenticateResult ¶
type SigAuthenticateResult struct { // 100 验证通过 验证通过 200 服务器故障,此时ResultWrapper的success=false 服务自身正确识别的服务器故障行为,请视同验证通过处理 900 验证不通过 预留9XX做为扩展,901:NOPASS_USER_APP,应用方传入参数有误,如appkey与access_key不匹配等 Code string `json:"code,omitempty" xml:"code,omitempty"` // 错误描述消息 Msg string `json:"msg,omitempty" xml:"msg,omitempty"` // detail Detail string `json:"detail,omitempty" xml:"detail,omitempty"` // 签名串生成的毫秒值(System.currentTimeMillis()).使用方自行判断此签名串是否已过期 Timestamp int64 `json:"timestamp,omitempty" xml:"timestamp,omitempty"` }
SigAuthenticateResult 结构体
type TaobaoAntifraudRiskassessmentGetAPIRequest ¶ added in v1.2.0
type TaobaoAntifraudRiskassessmentGetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoAntifraudRiskassessmentGetAPIRequest 反欺诈风险识别 API请求 taobao.antifraud.riskassessment.get
反欺诈服务是阿里大数据风控服务能力的对外输出,通过用户信誉、行为分析精准识别可信用户和风险用户并实时防御,解决交易、支付、活动等关键业务环节存在的欺诈威胁,保护企业品牌和数据,降低企业经济损失
func NewTaobaoAntifraudRiskassessmentGetRequest ¶
func NewTaobaoAntifraudRiskassessmentGetRequest() *TaobaoAntifraudRiskassessmentGetAPIRequest
NewTaobaoAntifraudRiskassessmentGetRequest 初始化TaobaoAntifraudRiskassessmentGetAPIRequest对象
func (TaobaoAntifraudRiskassessmentGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoAntifraudRiskassessmentGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoAntifraudRiskassessmentGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoAntifraudRiskassessmentGetAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoAntifraudRiskassessmentGetAPIRequest) GetCollinadataContext ¶ added in v1.2.0
func (r TaobaoAntifraudRiskassessmentGetAPIRequest) GetCollinadataContext() *CollinadataContext
GetCollinadataContext CollinadataContext Getter
func (*TaobaoAntifraudRiskassessmentGetAPIRequest) SetCollinadataContext ¶ added in v1.2.0
func (r *TaobaoAntifraudRiskassessmentGetAPIRequest) SetCollinadataContext(_collinadataContext *CollinadataContext) error
SetCollinadataContext is CollinadataContext Setter 风控查询参数
type TaobaoAntifraudRiskassessmentGetAPIResponse ¶
type TaobaoAntifraudRiskassessmentGetAPIResponse struct { model.CommonResponse TaobaoAntifraudRiskassessmentGetAPIResponseModel }
TaobaoAntifraudRiskassessmentGetAPIResponse 反欺诈风险识别 API返回值 taobao.antifraud.riskassessment.get
反欺诈服务是阿里大数据风控服务能力的对外输出,通过用户信誉、行为分析精准识别可信用户和风险用户并实时防御,解决交易、支付、活动等关键业务环节存在的欺诈威胁,保护企业品牌和数据,降低企业经济损失
type TaobaoAntifraudRiskassessmentGetAPIResponseModel ¶ added in v1.2.0
type TaobaoAntifraudRiskassessmentGetAPIResponseModel struct { XMLName xml.Name `xml:"antifraud_riskassessment_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // result RiskResult *ResultWrapper `json:"risk_result,omitempty" xml:"risk_result,omitempty"` }
TaobaoAntifraudRiskassessmentGetAPIResponseModel is 反欺诈风险识别 成功返回结果
type TaobaoAntifraudRiskuserGetAPIRequest ¶ added in v1.2.0
type TaobaoAntifraudRiskuserGetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoAntifraudRiskuserGetAPIRequest 反欺诈用户风险查询 API请求 taobao.antifraud.riskuser.get
根据用户基础信息,核实平台上的用户是否存在欺诈风险
func NewTaobaoAntifraudRiskuserGetRequest ¶
func NewTaobaoAntifraudRiskuserGetRequest() *TaobaoAntifraudRiskuserGetAPIRequest
NewTaobaoAntifraudRiskuserGetRequest 初始化TaobaoAntifraudRiskuserGetAPIRequest对象
func (TaobaoAntifraudRiskuserGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoAntifraudRiskuserGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoAntifraudRiskuserGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoAntifraudRiskuserGetAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoAntifraudRiskuserGetAPIRequest) GetParamAccountQuery ¶ added in v1.2.0
func (r TaobaoAntifraudRiskuserGetAPIRequest) GetParamAccountQuery() *ParamAccountQuery
GetParamAccountQuery ParamAccountQuery Getter
func (*TaobaoAntifraudRiskuserGetAPIRequest) SetParamAccountQuery ¶ added in v1.2.0
func (r *TaobaoAntifraudRiskuserGetAPIRequest) SetParamAccountQuery(_paramAccountQuery *ParamAccountQuery) error
SetParamAccountQuery is ParamAccountQuery Setter 风险用户查询条件
type TaobaoAntifraudRiskuserGetAPIResponse ¶
type TaobaoAntifraudRiskuserGetAPIResponse struct { model.CommonResponse TaobaoAntifraudRiskuserGetAPIResponseModel }
TaobaoAntifraudRiskuserGetAPIResponse 反欺诈用户风险查询 API返回值 taobao.antifraud.riskuser.get
根据用户基础信息,核实平台上的用户是否存在欺诈风险
type TaobaoAntifraudRiskuserGetAPIResponseModel ¶ added in v1.2.0
type TaobaoAntifraudRiskuserGetAPIResponseModel struct { XMLName xml.Name `xml:"antifraud_riskuser_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 风险结果详情列表,包含多个风险结果单项 DetailList []AccountRiskDetail `json:"detail_list,omitempty" xml:"detail_list>account_risk_detail,omitempty"` // 服务调用成功时, 返回的系统流水号 EventId string `json:"event_id,omitempty" xml:"event_id,omitempty"` // 风险分值 Score string `json:"score,omitempty" xml:"score,omitempty"` // 风险结果, 为reject, review, pass三者之一 RiskLevel string `json:"risk_level,omitempty" xml:"risk_level,omitempty"` }
TaobaoAntifraudRiskuserGetAPIResponseModel is 反欺诈用户风险查询 成功返回结果
type TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest ¶ added in v1.2.0
type TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest 人机识别 API请求 taobao.collinafacade.nocaptcha.sig.authenticate
人机识别颁发签名串后,本接口负责向ISV提供签名串校验服务
func NewTaobaoCollinafacadeNocaptchaSigAuthenticateRequest ¶
func NewTaobaoCollinafacadeNocaptchaSigAuthenticateRequest() *TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest
NewTaobaoCollinafacadeNocaptchaSigAuthenticateRequest 初始化TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest对象
func (TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) GetSigAuthenticateContext ¶ added in v1.2.0
func (r TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) GetSigAuthenticateContext() *SigAuthenticateContext
GetSigAuthenticateContext SigAuthenticateContext Getter
func (*TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) SetSigAuthenticateContext ¶ added in v1.2.0
func (r *TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) SetSigAuthenticateContext(_sigAuthenticateContext *SigAuthenticateContext) error
SetSigAuthenticateContext is SigAuthenticateContext Setter 签名串校验接口入参
type TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponse ¶
type TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponse struct { model.CommonResponse TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponseModel }
TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponse 人机识别 API返回值 taobao.collinafacade.nocaptcha.sig.authenticate
人机识别颁发签名串后,本接口负责向ISV提供签名串校验服务
type TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponseModel ¶ added in v1.2.0
type TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponseModel struct { XMLName xml.Name `xml:"collinafacade_nocaptcha_sig_authenticate_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 服务出参 Ret int64 `json:"ret,omitempty" xml:"ret,omitempty"` // 返回authenticateResult RetDetail *SigAuthenticateResult `json:"ret_detail,omitempty" xml:"ret_detail,omitempty"` }
TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponseModel is 人机识别 成功返回结果
Source Files
¶
- AccountRiskDetail.go
- CollinadataContext.go
- CollinadataQueryResult.go
- ParamAccountQuery.go
- ResultWrapper.go
- SigAuthenticateContext.go
- SigAuthenticateResult.go
- TaobaoAntifraudRiskassessmentGetAPIRequest.go
- TaobaoAntifraudRiskassessmentGetAPIResponse.go
- TaobaoAntifraudRiskuserGetAPIRequest.go
- TaobaoAntifraudRiskuserGetAPIResponse.go
- TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest.go
- TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponse.go
- doc.go