Documentation
¶
Index ¶
Constants ¶
View Source
const ( // URL 接口地址 URL = "https://bankcard4c.shumaidata.com/bankcard4c" // MsgSuccess 认证成功消息 MsgSuccess = "认证信息匹配" // MsgFailure 认证失败消息 MsgFailure = "认证失败,请稍后再试" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticateRequest ¶
type AuthenticateRequest struct { Name string `validate:"required" label:"姓名"` // 姓名 IDCard string `validate:"required,idcard" label:"身份证号"` // 身份证号 BankCard string `validate:"required,bankcard" label:"银行卡卡号"` // 银行卡卡号 Mobile string `validate:"required,len=11,number" label:"电话号码"` // 电话号码 }
AuthenticateRequest 银行卡四要素认证请求
type AuthenticateResponse ¶
type AuthenticateResponse struct {
OrderNo string // 订单号
}
AuthenticateResponse 银行卡四要素认证响应
type BankCard4C ¶
type BankCard4C struct {
// contains filtered or unexported fields
}
BankCard4C 银行卡四要素认证器
func (*BankCard4C) Authenticate ¶
func (b *BankCard4C) Authenticate(ctx context.Context, req *AuthenticateRequest) (*AuthenticateResponse, error)
Authenticate 银行卡四要素认证
Click to show internal directories.
Click to hide internal directories.