更新商户相关模型结构体字段
- 修改 MerchantApplyRequest 中 req_data 的 json 标签为 reqData - 在 MerchantApplyResponse 中新增 Md 字段 - 在 MerValidateResponse 中新增 Md 和 RespData 字段 - 新增 MerValidateResponseData 结构体定义 - 在 QueryMerResponse 中新增 Md 字段 - 调整 QueryMerResponseData 字段顺序并新增 OrgCode 和 ContractId 字段 - 在 ReConfSubmitResponse 中新增 Md 和 RespData 字段 - 新增 ReConfSubmitResponseData 结构体定义menu v1.0.6
parent
290d3e6ba7
commit
de77aa78b1
|
|
@ -49,6 +49,10 @@ type MerValidateResponse struct {
|
|||
CmdRetCode string `json:"cmdRetCode"`
|
||||
// ReqId 请求ID
|
||||
ReqId string `json:"reqId"`
|
||||
// md 随机字符串
|
||||
Md string `json:"md"`
|
||||
// RespData 响应业务参数
|
||||
RespData *MerValidateResponseData `json:"respData"`
|
||||
// RetCode 返回码
|
||||
RetCode string `json:"retCode"`
|
||||
// RetMsg 返回消息
|
||||
|
|
@ -59,6 +63,13 @@ type MerValidateResponse struct {
|
|||
Ver string `json:"ver"`
|
||||
}
|
||||
|
||||
type MerValidateResponseData struct {
|
||||
// OrgCode 机构代码
|
||||
OrgCode string `json:"orgCode"`
|
||||
// OrderNo 订单号
|
||||
OrderNo string `json:"orderNo"`
|
||||
}
|
||||
|
||||
func (t *MerValidateResponse) SuccessOrFail() bool {
|
||||
return t.RetCode == "000000"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ type MerchantApplyRequest struct {
|
|||
ReqId string `json:"reqId"` // 请求时间,格式为yyyyMMddHHmmss,必填
|
||||
Timestamp int64 `json:"timestamp"` // 接口版本,固定值"1.0",必填
|
||||
Ver string `json:"ver"` // 接口版本,固定值"1.0",必填
|
||||
ReqData *MerchantApplyReqData `json:"req_data"` // 请求业务参数,必填
|
||||
ReqData *MerchantApplyReqData `json:"reqData"` // 请求业务参数,必填
|
||||
}
|
||||
|
||||
// MerchantApplyReqData 商户进件请求业务数据结构体
|
||||
|
|
@ -88,9 +88,10 @@ type FileData struct {
|
|||
// MerchantApplyResponse 商户进件响应结构体
|
||||
|
||||
type MerchantApplyResponse struct {
|
||||
RetCode string `json:"retCode"` // 响应码,成功为"0000",其他为错误码
|
||||
RetMsg string `json:"retMsg"` // 响应描述
|
||||
Timestamp int64 `json:"timestamp"` // 响应描述
|
||||
RetCode string `json:"retCode"` // 响应码,成功为"0000",其他为错误码
|
||||
RetMsg string `json:"retMsg"` // 响应描述
|
||||
Timestamp int64 `json:"timestamp"` // 响应描述
|
||||
Md string `json:"md"`
|
||||
Ver string `json:"ver"` // 响应描述
|
||||
ReqId string `json:"reqId"` // 响应描述
|
||||
CmdRetCode string `json:"cmdRetCode"` // 响应描述
|
||||
|
|
|
|||
|
|
@ -41,6 +41,8 @@ type QueryMerResponse struct {
|
|||
RespData *QueryMerResponseData `json:"respData"`
|
||||
// RetCode 返回码
|
||||
RetCode string `json:"retCode"`
|
||||
// md 随机字符串
|
||||
Md string `json:"md"`
|
||||
// RetMsg 返回消息
|
||||
RetMsg string `json:"retMsg"`
|
||||
// Timestamp 时间戳
|
||||
|
|
@ -52,8 +54,12 @@ type QueryMerResponse struct {
|
|||
// QueryMerResponseData 商户进件信息查询响应业务参数
|
||||
|
||||
type QueryMerResponseData struct {
|
||||
// OrgCode 机构代码
|
||||
OrgCode string `json:"orgCode"`
|
||||
// OrderNo 订单号
|
||||
OrderNo string `json:"orderNo"`
|
||||
// ContractId 进件ID
|
||||
ContractId string `json:"contractId"`
|
||||
// ContractStatus 进件状态
|
||||
// 未提交:NO_COMMIT
|
||||
// 已提交:COMMIT
|
||||
|
|
@ -63,16 +69,12 @@ type QueryMerResponseData struct {
|
|||
// 审核通过:WAIT_FOR_CONTACT
|
||||
// 审核驳回:INNER_CHECK_REJECTED
|
||||
ContractStatus string `json:"contractStatus"`
|
||||
// OrgCode 机构代码
|
||||
OrgCode string `json:"orgCode"`
|
||||
// ContractId 进件ID
|
||||
ContractId string `json:"contractId"`
|
||||
// MerInnerNo 拉卡拉内部商户号(该属性审核通过才有)
|
||||
MerInnerNo string `json:"merInnerNo"`
|
||||
// ContractMemo 进件描述
|
||||
// 进件审核通过,返回"审核通过"
|
||||
// 进件审核驳回,返回具体的驳回理由
|
||||
ContractMemo string `json:"contractMemo"`
|
||||
// MerInnerNo 拉卡拉内部商户号(该属性审核通过才有)
|
||||
MerInnerNo string `json:"merInnerNo"`
|
||||
// MerCupNo 银联商户号(该属性审核通过才有)
|
||||
MerCupNo string `json:"merCupNo"`
|
||||
// TermDatas 终端列表信息(该属性审核通过并且是增商、增终进件才有)
|
||||
|
|
|
|||
|
|
@ -38,6 +38,10 @@ type ReConfSubmitResponse struct {
|
|||
ReqId string `json:"reqId"`
|
||||
// RetCode 返回码
|
||||
RetCode string `json:"retCode"`
|
||||
// md 随机字符串
|
||||
Md string `json:"md"`
|
||||
// RespData 响应业务参数
|
||||
RespData *ReConfSubmitResponseData `json:"respData"`
|
||||
// RetMsg 返回消息
|
||||
RetMsg string `json:"retMsg"`
|
||||
// Timestamp 时间戳
|
||||
|
|
@ -45,6 +49,12 @@ type ReConfSubmitResponse struct {
|
|||
// Ver 版本号
|
||||
Ver string `json:"ver"`
|
||||
}
|
||||
type ReConfSubmitResponseData struct {
|
||||
// OrgCode 机构代码
|
||||
OrgCode string `json:"orgCode"`
|
||||
// OrderNo 订单号
|
||||
OrderNo string `json:"orderNo"`
|
||||
}
|
||||
|
||||
func (t *ReConfSubmitResponse) SuccessOrFail() bool {
|
||||
return t.RetCode == "000000"
|
||||
|
|
|
|||
Loading…
Reference in New Issue