Documentation
¶
Index ¶
- func Init()
- type Request
- func (r *Request) Exists() (*Result, bool)
- func (r *Request) IsEmpty() bool
- func (r *Request) MarshalLogObject(enc zapcore.ObjectEncoder) error
- func (r *Request) PostProgress(res interface{}, cost int, err error, remark map[string]charge.Remark) (interface{}, int, error, map[string]charge.Remark)
- func (r *Request) PreProgress() error
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Request ¶
func (*Request) MarshalLogObject ¶
func (r *Request) MarshalLogObject(enc zapcore.ObjectEncoder) error
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()
Click to show internal directories.
Click to hide internal directories.