This commit is contained in:
Mrx
2026-06-09 16:20:33 +08:00
parent 9f06027820
commit 6d36c86c0f
3 changed files with 28 additions and 58 deletions

View File

@@ -17,12 +17,17 @@ func ProcessQYGLBH7YRequest(ctx context.Context, params []byte, deps *processors
return nil, errors.Join(processors.ErrSystem, err)
}
if err := deps.Validator.ValidateStruct(paramsDto); err != nil {
return nil, errors.Join(processors.ErrInvalidParam, err)
}
if deps.HaiyuapiService == nil {
return nil, errors.Join(processors.ErrSystem, errors.New("海宇API服务未初始化"))
}
reqParams := map[string]interface{}{
"ent_name": paramsDto.EntName,
"ent_name": paramsDto.EntName,
"auth_pdf_base64": paramsDto.PdfBase64,
}
apiPath := "/api/v1/QYGLBH7Y"