idcheck

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Request

type Request struct {
	IdCode string
	Name   string
	Seqno  string
	Telno  string
}

func (*Request) Exists

func (r *Request) Exists() (*Result, bool)

func (*Request) IsEmpty

func (r *Request) IsEmpty() bool

func (*Request) MarshalLogObject

func (r *Request) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*Request) PostProgress

func (r *Request) PostProgress(res interface{}, cost int, err error, remark map[string]charge.Remark) (interface{}, int, error, map[string]charge.Remark)

LoadSuccess 获取成功

func (*Request) PreProgress

func (r *Request) PreProgress() error

BeforeRequest

type Result

type Result struct {
	Id_ bson.ObjectId `bson:"_id"`
	// :业务流水号
	Seqno string `json:"seqno"`
	// : 姓名
	Name string `json:"name" xml:"nameIdInfos>nameIdInfo>outputXm"`
	// : 身份证号码
	IdCode string `json:"idcode" xml:"nameIdInfos>nameIdInfo>outputZjhm"`
	// : 核查结果(1000一致;1002-库中无此号;1001-不一致; 2003-身份号码不合规则;2004-姓名不合规则;9901-系统异常)
	ResultCode string `json:"resultCode" xml:"nameIdInfos>nameIdInfo>code"`
	// :结果描述
	ResultMsg string `json:"resultMsg" xml:"nameIdInfos>nameIdInfo>message"`
	// :性别(男性;女性)
	Gender string `json:"gender" xml:"nameIdInfos>nameIdInfo>xb"`
	// :生日
	Birthday string `json:"birthday" xml:"nameIdInfos>nameIdInfo>csrq"`
	// :民族
	Nationality string `json:"nationality" xml:"nameIdInfos>nameIdInfo>mz"`
	// :所属省市县区
	Ssssxq string `json:"ssssxq" xml:"nameIdInfos>nameIdInfo>ssssxq"`

	Photo interface{} `json:"photo" xml:"nameIdInfos>nameIdInfo>xp"`
	// :住址
	Address string `json:"address" xml:"nameIdInfos>nameIdInfo>zz"`
	// :识别码
	Oid string `json:"oid"`
	// :手机号
	MobilePhone interface{} `json:"mobilephone"`
	// :坐过火车?
	TrainChecked bool `json:"trainchecked"`
}

func (*Result) CheckSeqNo

func (r *Result) CheckSeqNo()

func (*Result) Store

func (r *Result) Store(onSuccess func())

Jump to

Keyboard shortcuts

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