2023-07-21 09:28:24 +08:00

21 lines
1002 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package verifyDun
// 请求返回值
type bankCardResultResponseData struct {
Code int `json:"code"` // 接口调用状态。200正常其它值调用出错
Msg string `json:"msg"` // 结果说明。如果接口调用出错,那么返回错误描述。成功则返回 ok
Result bankCardResult `json:"result"` // 接口返回结果,各个接口自定义,数据结构参考具体文档说明
}
type bankCardResult struct {
Status int `json:"status"` // 认证结果1-通过 2-不通过原因见reasonType) 0-待定
ReasonType int `json:"reasonType"` // 原因详情
TaskId string `json:"taskId"` // 本次请求数据标识,可以根据该标识在控制台进行数据查询
IsPayed int `json:"isPayed"` // 本次请求是否收费标识1代表收费0代表不收费
}
// CheckBankCard 银行卡三/四要素认证
func CheckBankCard(name, bankCardNo, idCardNo string) (bool, error) {
return false, nil
}