Files
loan-pricing/doc/implementation-report-2026-04-30-interface-call-log-rule.md

18 lines
955 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 实施记录 - 外部接口调用日志
## 日期
2026-04-30
## 修改内容
- 在根目录 `AGENTS.md` 的测试规范中新增外部接口调用日志要求:每次调用外部接口进行测试或联调时,必须在后端日志中完整输出请求 URL、请求参数和返回参数。
- 补齐客户映射接口、历史贷款合同接口、通用 `HttpUtils` 外部接口调用日志,输出请求 URL、请求参数和返回参数。
- 将外部接口日志调整为多行可读格式:请求 URL、请求参数、返回参数分段输出参数对象和返回对象使用 pretty JSON 展开。
- 调整单元测试,覆盖客户映射外呼日志、历史贷款合同外呼日志。
## 验证
- 已检查规则保存路径为项目根目录 `AGENTS.md`
- 已执行 `mvn -pl ruoyi-loan-pricing -am -Dtest=LoanPricingCustomerMapServiceTest,LoanRateHistoryServiceTest -Dsurefire.failIfNoSpecifiedTests=false test`,测试通过。