1
This commit is contained in:
@@ -180,7 +180,7 @@ func (a *API) ApplyElectronicContract(param *ApplyContractParam) (*ApplyContract
|
||||
func (a *API) ApplyElectronicContractByPeople(param *ApplyContractByPeople) error {
|
||||
reqParameter := map[string]interface{}{
|
||||
"req_data": utils.Struct2Map(param, "", false),
|
||||
"ver": Version2,
|
||||
"ver": Version,
|
||||
"timestamp": utils.Time2TimeStrByFormat(time.Now(), TimeFormat),
|
||||
"req_id": utils.GetUUID(),
|
||||
}
|
||||
|
||||
@@ -269,15 +269,17 @@ type ApplyContractResp struct {
|
||||
|
||||
// ApplyContractByPeople 电子合同申请人工复合
|
||||
type ApplyContractByPeople struct {
|
||||
Version string `json:"version"`
|
||||
OrderNo string `json:"order_no"` // 建议:平台编号+14位年月日时(24小时制)分秒+8位的随机数(同一接入机构不重复)
|
||||
OrgId int `json:"org_id"` // 签约方所属拉卡拉机构
|
||||
EcApplyId int64 `json:"ec_apply_id"` // 申请接口反馈编号
|
||||
FileData []ApplyContractFileType `json:"file_data"` // 附件信息集合
|
||||
RetUrl string `json:"ret_url"` // 回调接口
|
||||
ApplyDesc string `json:"apply_desc"` // 复议提交的原因说明
|
||||
}
|
||||
|
||||
type ApplyContractFileType struct {
|
||||
AttachType string `json:"attach_type"`
|
||||
AttachExtName string `json:"attach_ext_name"`
|
||||
AttachName string `json:"attach_name"`
|
||||
AttachStorePath string `json:"attach_store_path"`
|
||||
}
|
||||
|
||||
@@ -122,3 +122,30 @@ func TestSeparateFallBack(t *testing.T) {
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
func TestApplyElectronicContractByPeople(t *testing.T) {
|
||||
api.ApplyElectronicContractByPeople(&ApplyContractByPeople{
|
||||
OrderNo: "202508281435228400125682",
|
||||
OrgId: 983931,
|
||||
ApplyDesc: "确认信息无误",
|
||||
EcApplyId: 1013456771342118912,
|
||||
FileData: []ApplyContractFileType{
|
||||
{
|
||||
AttachType: "FR_ID_CARD_FRONT",
|
||||
AttachExtName: "png",
|
||||
AttachName: "身份证正面.png",
|
||||
AttachStorePath: "MMS/20250828/172420-865c8f87621149d7890296fa290586a2.png",
|
||||
}, {
|
||||
AttachType: "FR_ID_CARD_BEHIND",
|
||||
AttachExtName: "png",
|
||||
AttachName: "身份证反面.png",
|
||||
AttachStorePath: "MMS/20250828/172445-b3394ff727464f309508df942644d89b.png",
|
||||
}, {
|
||||
AttachType: "BANK_CARD",
|
||||
AttachName: "银行卡.jpg",
|
||||
AttachExtName: "jpg",
|
||||
AttachStorePath: "MMS/20250828/172508-318661b2a1f347efa0db764565efb45e.jpg",
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user