f
This commit is contained in:
@@ -118,7 +118,10 @@ type QYGLUY3SReq struct {
|
|||||||
EntRegno string `json:"ent_reg_no" validate:"omitempty"`
|
EntRegno string `json:"ent_reg_no" validate:"omitempty"`
|
||||||
EntCode string `json:"ent_code" validate:"omitempty,validUSCI"`
|
EntCode string `json:"ent_code" validate:"omitempty,validUSCI"`
|
||||||
}
|
}
|
||||||
|
type QYGLJ1U9Req struct {
|
||||||
|
EntName string `json:"ent_name" validate:"required,min=1,validEnterpriseName"`
|
||||||
|
EntCode string `json:"ent_code" validate:"required,validUSCI"`
|
||||||
|
}
|
||||||
type JRZQOCRYReq struct {
|
type JRZQOCRYReq struct {
|
||||||
PhotoData string `json:"photo_data" validate:"required,validBase64Image"`
|
PhotoData string `json:"photo_data" validate:"required,validBase64Image"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -176,6 +176,7 @@ func (s *FormConfigServiceImpl) getDTOStruct(ctx context.Context, apiCode string
|
|||||||
"QCXG8A3D": &dto.QCXG8A3DReq{},
|
"QCXG8A3D": &dto.QCXG8A3DReq{},
|
||||||
"QCXG6B4E": &dto.QCXG6B4EReq{},
|
"QCXG6B4E": &dto.QCXG6B4EReq{},
|
||||||
"QYGL2B5C": &dto.QYGL2B5CReq{},
|
"QYGL2B5C": &dto.QYGL2B5CReq{},
|
||||||
|
"QYGLJ1U9": &dto.QYGLJ1U9Req{},
|
||||||
"JRZQ2F8A": &dto.JRZQ2F8AReq{},
|
"JRZQ2F8A": &dto.JRZQ2F8AReq{},
|
||||||
"JRZQ1E7B": &dto.JRZQ1E7BReq{},
|
"JRZQ1E7B": &dto.JRZQ1E7BReq{},
|
||||||
"JRZQ3C9R": &dto.JRZQ3C9RReq{},
|
"JRZQ3C9R": &dto.JRZQ3C9RReq{},
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import (
|
|||||||
// 然后复用 qyglj1u9_processor_build.go 中的 buildReport / map* 逻辑生成企业报告结构
|
// 然后复用 qyglj1u9_processor_build.go 中的 buildReport / map* 逻辑生成企业报告结构
|
||||||
func ProcessQYGLJ1U9Request(ctx context.Context, params []byte, deps *processors.ProcessorDependencies) ([]byte, error) {
|
func ProcessQYGLJ1U9Request(ctx context.Context, params []byte, deps *processors.ProcessorDependencies) ([]byte, error) {
|
||||||
// 复用 QYGLUY3S 的入参结构:企业名称/注册号/统一社会信用代码
|
// 复用 QYGLUY3S 的入参结构:企业名称/注册号/统一社会信用代码
|
||||||
var p dto.QYGLUY3SReq
|
var p dto.QYGLJ1U9Req
|
||||||
if err := json.Unmarshal(params, &p); err != nil {
|
if err := json.Unmarshal(params, &p); err != nil {
|
||||||
return nil, errors.Join(processors.ErrSystem, err)
|
return nil, errors.Join(processors.ErrSystem, err)
|
||||||
}
|
}
|
||||||
@@ -63,7 +63,6 @@ func ProcessQYGLJ1U9Request(ctx context.Context, params []byte, deps *processors
|
|||||||
// 企业全量信息核验V2(QYGLUY3S)
|
// 企业全量信息核验V2(QYGLUY3S)
|
||||||
call("jiguangFull", map[string]interface{}{
|
call("jiguangFull", map[string]interface{}{
|
||||||
"ent_name": p.EntName,
|
"ent_name": p.EntName,
|
||||||
"ent_reg_no": p.EntRegno,
|
|
||||||
"ent_code": p.EntCode,
|
"ent_code": p.EntCode,
|
||||||
}, ProcessQYGLUY3SRequest)
|
}, ProcessQYGLUY3SRequest)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user