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 AccountInfo

type AccountInfo struct {

	/* 机构名称  */
	OrgName string `json:"orgName"`

	/* 企业银行账户  */
	BankCardNum string `json:"bankCardNum"`

	/* 企业手机号 (Optional) */
	Mobile *string `json:"mobile"`

	/* 银行名称  */
	BankName string `json:"bankName"`

	/* 开户行所在分行网点名称  */
	BranchBankName string `json:"branchBankName"`

	/* 开户行所在的银行编码 (Optional) */
	BankCode *string `json:"bankCode"`

	/* 开户行所在的城市编码 (Optional) */
	CityCode *string `json:"cityCode"`

	/* 开户行所在的省份编码 (Optional) */
	ProvinceCode *string `json:"provinceCode"`
}

type AccountInfoNew

type AccountInfoNew struct {

	/* 银行账号  */
	AccountNo string `json:"accountNo"`

	/* 总行名称  */
	AccountBank string `json:"accountBank"`

	/* 企业名称  */
	KeyName string `json:"keyName"`

	/* 银行联行号  */
	SubBank string `json:"subBank"`

	/* 打款回调地址  */
	PayCallbackUrl string `json:"payCallbackUrl"`
}

type AccountInfoSimple added in v1.63.0

type AccountInfoSimple struct {

	/* 机构名称  */
	OrgName string `json:"orgName"`

	/* 企业银行账户  */
	BankCardNum string `json:"bankCardNum"`

	/* 开户行所在的银行编码  */
	BankCode string `json:"bankCode"`
}

type AliveResultInfo added in v1.63.0

type AliveResultInfo struct {

	/* 人脸照片base64 (Optional) */
	FaceImage string `json:"faceImage"`

	/* 场景照片base64 (Optional) */
	SceneImage string `json:"sceneImage"`

	/* 现场视频base64 (Optional) */
	Video string `json:"video"`

	/* H5活体检测结果 (Optional) */
	H5Result string `json:"h5Result"`

	/* 实名认证检测结果 (Optional) */
	SmResult string `json:"smResult"`

	/* 人像对比结果 (Optional) */
	RxResult string `json:"rxResult"`

	/* 人像对比相似度 (Optional) */
	Score string `json:"score"`

	/* 描述 (Optional) */
	Desc string `json:"desc"`

	/* 活体检测是否收费:0不收费,1收费 (Optional) */
	H5ChargeFlag int `json:"h5ChargeFlag"`

	/* 活体检测是否收费:0不收费,1收费 (Optional) */
	RxChargeFlag int `json:"rxChargeFlag"`
}

type AliveUrlInfo added in v1.63.0

type AliveUrlInfo struct {

	/* 状态码 (Optional) */
	Code string `json:"code"`

	/* 状态信息 (Optional) */
	Message string `json:"message"`

	/* 采集页面URL (Optional) */
	Url string `json:"url"`

	/* token(获取检测结果时需要用到) (Optional) */
	Token string `json:"token"`

	/* 1收费,0不收费 (Optional) */
	ChargeFlag string `json:"chargeFlag"`
}

type AuthDetail

type AuthDetail struct {

	/* 返回信息描述  */
	Message string `json:"message"`

	/* 业务流水号  */
	OrderNumber string `json:"orderNumber"`
}

type AuthInfo

type AuthInfo struct {

	/* 认证结果true 成功, false 失败  */
	Success bool `json:"success"`

	/* 是否有异常 true 有异常, false 无异常  */
	HasException bool `json:"hasException"`

	/* 认证结果状态码  */
	Code string `json:"code"`

	/* 1. 认证结果信息
	2. 查询结果信息
	3. 状态码信息
	*/
	Message string `json:"message"`

	/* 1. 认证结果信息
	2. 查询结果信息
	*/
	Detail string `json:"detail"`
}

type AuthItem

type AuthItem struct {

	/* 13位时间戳 (Optional) */
	Time string `json:"time"`

	/* 认证次数 (Optional) */
	Value int `json:"value"`
}

type BankCardOCRInfo added in v1.63.0

type BankCardOCRInfo struct {

	/* 识别状态 (Optional) */
	Status string `json:"status"`

	/* 状态码 (Optional) */
	Code string `json:"code"`

	/* 卡号 (Optional) */
	Number string `json:"number"`

	/* 银行卡类型 (Optional) */
	CardType string `json:"cardType"`

	/* 银行卡名称 (Optional) */
	Name string `json:"name"`

	/* 银行名称 (Optional) */
	Bank string `json:"bank"`

	/* 有效日期 (Optional) */
	Date string `json:"date"`

	/* 1收费,0不收费 (Optional) */
	ChargeFlag string `json:"chargeFlag"`
}

type BusinessOCRInfo added in v1.63.0

type BusinessOCRInfo struct {

	/* 识别状态 (Optional) */
	Status string `json:"status"`

	/* 状态码 (Optional) */
	Code string `json:"code"`

	/* 统一社会信用代码 (Optional) */
	Number string `json:"number"`

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

	/* 类型 (Optional) */
	CompanyType string `json:"companyType"`

	/* 住所 (Optional) */
	Address string `json:"address"`

	/* 法定代表人 (Optional) */
	LegalPersonal string `json:"legalPersonal"`

	/* 注册资本 (Optional) */
	RegisteredCapital string `json:"registeredCapital"`

	/* 成立日期 (Optional) */
	Date string `json:"date"`

	/* 经营范围 (Optional) */
	Scope string `json:"scope"`

	/* 登记日期 (Optional) */
	RegistrationDate string `json:"registrationDate"`

	/* 1收费,0不收费 (Optional) */
	ChargeFlag string `json:"chargeFlag"`
}

type CheckInfo

type CheckInfo struct {

	/* 金额  */
	PaymentAmount string `json:"paymentAmount"`

	/* 订单号  */
	OrderNumber string `json:"orderNumber"`
}

type CodeDescription added in v1.63.0

type CodeDescription struct {

	/* code (Optional) */
	Code int `json:"code"`

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

type CodeList added in v1.63.0

type CodeList struct {

	/* 列表 (Optional) */
	List []interface{} `json:"list"`
}

type CompanyInfo

type CompanyInfo struct {

	/* 企业类型:
	0: 企业(ET_PE_QiYe)
	1: 个体工商户(ET_SE_GeTiGongShangHu)
	2: 政府机构/事业单位(ET_OU_ZhengFu_ShiYeDanWei)
	 (Optional) */
	CompanyType *int `json:"companyType"`

	/* 企业名称  */
	CompanyName string `json:"companyName"`

	/* 统一社会信用代码或营业执照注册号  */
	IdCode string `json:"idCode"`
}

type CompanyInfo3Spec added in v1.63.0

type CompanyInfo3Spec struct {

	/* 企业名称  */
	CompanyName string `json:"companyName"`

	/* 统一社会信用代码或营业执照注册号  */
	IdCode string `json:"idCode"`

	/* 法定代表人姓名  */
	LegalPersonName string `json:"legalPersonName"`
}

type Data added in v1.63.0

type Data struct {

	/* 任务状态(0:初始化,1:进行中,2:已完成) (Optional) */
	Status int `json:"status"`

	/* 描述 (Optional) */
	Comment string `json:"comment"`

	/* 详细信息 (Optional) */
	RepairedAddressDetails []RepairedAddressDetail `json:"repairedAddressDetails"`
}

type InvoiceOCRInfo added in v1.65.0

type InvoiceOCRInfo struct {

	/* 状态码0 识别成功 (Optional) */
	Error_code int `json:"error_code"`

	/* 描述信息 (Optional) */
	Description string `json:"description"`

	/* 业务请求ID (Optional) */
	Request_id string `json:"request_id"`

	/* 耗时,单位为毫秒 (Optional) */
	Recognize_time int `json:"recognize_time"`

	/* 可用剩余次数 (Optional) */
	Available_count int `json:"available_count"`

	/* 所用版本 (Optional) */
	Version string `json:"version"`

	/* 旋转角度 (Optional) */
	Rotation string `json:"rotation"`

	/* 识别结果信息 (Optional) */
	Result []InvoiceResult `json:"result"`
}

type InvoiceResult added in v1.65.0

type InvoiceResult struct {

	/* 返回多页pdf或者tiff的情况下所在页码,若是单页返回1 (Optional) */
	Page_no int64 `json:"page_no"`

	/* 发票置信度 (Optional) */
	Score float64 `json:"score"`

	/* 增值税普 (Optional) */
	Page_name string `json:"page_name"`

	/* 发票用途码对应的中文名 (Optional) */
	Expense_type_msg string `json:"expense_type_msg"`

	/* 1收费,0不收费 (Optional) */
	Error_msg string `json:"error_msg"`

	/* 采集页面URL (Optional) */
	Qrcode_warning int64 `json:"qrcode_warning"`

	/* 增值税发票号码不一致告警 (Optional) */
	Invoice_no_warning int64 `json:"invoice_no_warning"`

	/* 发票的位置,依次为左上,右上,右下,左下顺时针四个点的x,y值 (Optional) */
	Quad []float64 `json:"quad"`

	/* 发票类型 (Optional) */
	Type string `json:"type"`

	/* 每个子图的识别结果 (Optional) */
	Recognize_result string `json:"recognize_result"`

	/* 发票用途 (Optional) */
	Expense_type string `json:"expense_type"`

	/* 如果设置do_query参数为1,将返回发票验证详细信息 (Optional) */
	Query_result string `json:"query_result"`

	/* 发票类型码对应的中文名 (Optional) */
	Type_msg string `json:"type_msg"`

	/* 错误码。 (Optional) */
	Error_code int64 `json:"error_code"`

	/* 根据post方式传入的参数决定是否返回子图,格式是base64。 (Optional) */
	Image string `json:"image"`

	/* 发票特殊标记 (Optional) */
	Pass_fee int64 `json:"pass_fee"`

	/* 合并标记 (Optional) */
	Merged_id float64 `json:"merged_id"`
}

type LegalPersonSpec

type LegalPersonSpec struct {

	/* 企业类型:
	0: 企业(ET_PE_QiYe)
	1: 个体工商户(ET_SE_GeTiGongShangHu)
	2: 政府机构/事业单位(ET_OU_ZhengFu_ShiYeDanWei)
	 (Optional) */
	CompanyType *int `json:"companyType"`

	/* 企业名称  */
	CompanyName string `json:"companyName"`

	/* 统一社会信用代码或营业执照注册号  */
	IdCode string `json:"idCode"`

	/* 法定代表人姓名  */
	LegalPersonName string `json:"legalPersonName"`

	/* 法定代表人身份证号  */
	LegalPersonId string `json:"legalPersonId"`
}

type OCRInfo added in v1.63.0

type OCRInfo struct {

	/* 识别状态 (Optional) */
	Status string `json:"status"`

	/* 姓名 (Optional) */
	Name string `json:"name"`

	/* 民族 (Optional) */
	Nation string `json:"nation"`

	/* 住址 (Optional) */
	Address string `json:"address"`

	/* 身份证号 (Optional) */
	IdNumber string `json:"idNumber"`

	/* 出生日期 (Optional) */
	Birthday string `json:"birthday"`

	/* 性别 (Optional) */
	Gender string `json:"gender"`

	/* 签发机构 (Optional) */
	Authority string `json:"authority"`

	/* 签发时间 (Optional) */
	IssueTime string `json:"issueTime"`

	/* 到期时间 (Optional) */
	DueTime string `json:"dueTime"`

	/* 1收费,0不收费 (Optional) */
	ChargeFlag string `json:"chargeFlag"`
}

type PersonalBankcard added in v1.63.0

type PersonalBankcard struct {

	/* 姓名  */
	Name string `json:"name"`

	/* 身份证号码  */
	IdCard string `json:"idCard"`

	/* 银行卡号  */
	BankCard string `json:"bankCard"`

	/* 手机号 (Optional) */
	Mobile *string `json:"mobile"`
}

type PersonalBankcardOther added in v1.63.0

type PersonalBankcardOther struct {

	/* 姓名  */
	Name string `json:"name"`

	/* 证件号码  */
	IdCard string `json:"idCard"`

	/* 银行卡号  */
	BankCard string `json:"bankCard"`

	/* 手机号 (Optional) */
	Mobile *string `json:"mobile"`

	/* 证件类型(02护照,03港澳证,04台胞证,05军官证,06警官证,07士兵证,11回乡证,12港澳居民居住证,13台湾居民居住证,X其他证件)  */
	IdType string `json:"idType"`
}

type PersonalMobile3 added in v1.63.0

type PersonalMobile3 struct {

	/* 姓名  */
	Name string `json:"name"`

	/* 身份证号码  */
	IdCard string `json:"idCard"`

	/* 手机号  */
	Mobile string `json:"mobile"`
}

type PersonalMobileSpec added in v1.63.0

type PersonalMobileSpec struct {

	/* 认证要素信息  */
	PersonalUser *PersonalMobile3 `json:"personalUser"`
}

type PersonalSpec

type PersonalSpec struct {

	/* 认证方式(0 银行卡四要素,1 银行卡三要素,2 姓名身份证二要素,3 人像三要素,4 手机号三要素)
	选择其中一种方式,对应的参数则为必传项
	0 提交姓名、身份证号、银行卡号、手机号,与在银行开户时预留的信息比对
	1 提交姓名、身份证号、银行卡号,与在银行开户时预留的信息比对
	2 提交姓名、身份证号,与公安身份证信息比对
	3 提交姓名、身份证号、人像图片,与在运营商开户留的信息比对
	4 提交姓名、身份证号、手机号,与在运营商开户留的信息比对
	*/
	CheckType int `json:"checkType"`

	/* 个人认证要素信息  */
	PersonalUser *PersonalUser `json:"personalUser"`
}

type PersonalUser

type PersonalUser struct {

	/* 姓名  */
	Name string `json:"name"`

	/* 身份证号码 (Optional) */
	IdCard *string `json:"idCard"`

	/* 银行卡号 (Optional) */
	Bankcard *string `json:"bankcard"`

	/* 手机号 (Optional) */
	Mobile *string `json:"mobile"`

	/* 人像图片(5-150k) (Optional) */
	ImgBase64 *string `json:"imgBase64"`
}

type RepairedAddressDetail added in v1.63.0

type RepairedAddressDetail struct {

	/* 修复状态(0 无需修复,1 地址已修复, 2 : 地址手机号都修复 -1 未匹配) (Optional) */
	RepairStatus int `json:"repairStatus"`

	/* 修复ID (Optional) */
	RepairedId int64 `json:"repairedId"`

	/* 可信度(2:高、1:中、0:低) (Optional) */
	Reliability string `json:"reliability"`

	/* 活跃时间 (Optional) */
	ActiveTime string `json:"activeTime"`

	/* 地址类型(住宅小区、学校、医院,POI类型) (Optional) */
	AddressType string `json:"addressType"`
}

type Rule added in v1.63.0

type Rule struct {

	/* is (Optional) */
	Id int `json:"id"`

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

	/* 实名认证类型 (Optional) */
	Type int `json:"type"`

	/* 供应商 (Optional) */
	Vendor int `json:"vendor"`
}

type RuleList added in v1.63.0

type RuleList struct {

	/* 转发规则 (Optional) */
	List []interface{} `json:"list"`
}

type StatisticInfo

type StatisticInfo struct {

	/* 认证次数统计[24小时,7天,30天] (Optional) */
	PerAuthStatistic []AuthItem `json:"perAuthStatistic"`

	/* 认证次数统计[24小时,7天,30天] (Optional) */
	ComAuthStatistic []AuthItem `json:"comAuthStatistic"`
}

type User added in v1.63.0

type User struct {

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

	/* 状态(0  未开通;1 开通中;2 已开通;3 停服) (Optional) */
	Status int `json:"status"`

	/* 资源id (Optional) */
	ResourceId string `json:"resourceId"`

	/* 开通时间 (Optional) */
	ApplyTime string `json:"applyTime"`

	/* 实名信息 (Optional) */
	Name string `json:"name"`
}

type UserList added in v1.63.0

type UserList struct {

	/* 列表 (Optional) */
	List []interface{} `json:"list"`
}

type VerifyInvoiceInfo added in v1.65.0

type VerifyInvoiceInfo struct {

	/* 状态码0 识别成功 (Optional) */
	Error_code int `json:"error_code"`

	/* 描述信息 (Optional) */
	Description string `json:"description"`

	/* 业务请求ID (Optional) */
	Request_id string `json:"request_id"`

	/* 耗时,单位为毫秒 (Optional) */
	Recognize_time int `json:"recognize_time"`

	/* 可用剩余次数 (Optional) */
	Available_count int `json:"available_count"`

	/* 所用版本 (Optional) */
	Version string `json:"version"`

	/* 旋转角度 (Optional) */
	Rotation string `json:"rotation"`

	/* 识别结果信息 (Optional) */
	Result string `json:"result"`
}

type YinShuaTiItemResult added in v1.65.0

type YinShuaTiItemResult struct {

	/* 识别结果 (Optional) */
	Words string `json:"words"`

	/* 四个顶点坐标 (Optional) */
	Quad string `json:"quad"`

	/* 照片可信度 (Optional) */
	Score float64 `json:"score"`

	/* 坐标位置 (Optional) */
	Position YinShuaTiPosition `json:"position"`

	/* 采集页面URL (Optional) */
	Page_no int64 `json:"page_no"`

	/* 增值税发票号码不一致告警 (Optional) */
	Type string `json:"type"`
}

type YinShuaTiOCRInfo added in v1.65.0

type YinShuaTiOCRInfo struct {

	/* 状态码0 识别成功 (Optional) */
	Error_code int `json:"error_code"`

	/* 描述信息 (Optional) */
	Description string `json:"description"`

	/* 业务请求ID (Optional) */
	Request_id string `json:"request_id"`

	/* 耗时,单位为毫秒 (Optional) */
	Recognize_time int `json:"recognize_time"`

	/* 可用剩余次数 (Optional) */
	Available_count int `json:"available_count"`

	/* 所用版本 (Optional) */
	Version string `json:"version"`

	/* 旋转角度 (Optional) */
	Rotation string `json:"rotation"`

	/* 识别结果信息 (Optional) */
	Result []YinShuaTiItemResult `json:"result"`
}

type YinShuaTiPosition added in v1.65.0

type YinShuaTiPosition struct {

	/* 左侧坐标 (Optional) */
	Left int `json:"left"`

	/* 顶部坐标 (Optional) */
	Top int `json:"top"`

	/* 宽度 (Optional) */
	Width int `json:"width"`

	/* 高度 (Optional) */
	Height int `json:"height"`
}

Jump to

Keyboard shortcuts

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