eb-service-api/doc/接口开发说明文档.md
zhengBoss 07dfb1a26d refactor(doc): 重构文档分类控制器并添加测试
- 移除 BDocClassifyHandle 依赖,直接继承 BaseController
- 添加参数校验逻辑,确保 image 和 url 至少一个不为空
- 实现 buildContent 方法构建请求内容
- 使用 requestBaidu 方法调用百度 API 并解析响应
- 添加 DocClassifyControllerTest 集成测试类
- 更新商品发布说明文档中的状态更新要求
- 移除接口开发说明文档中的重复状态更新条目
- 添加集成测试参考指引
2026-05-31 11:36:00 +08:00

7 lines
476 B
Markdown
Raw Permalink 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.

#### 1、接口开发注意事项
- 1.1、接口开发时所有的逻辑用controller 来实现;
- 1.2、接口实现规范参考RecognizeDrivingLicenseController.java;
- 1.3、接口开发自测完成后记得更新文档【doc/百度智能云-文字识别-API文档-API列表.md】状态;
- 1.4、接口使用body传参数ContentType= application/x-www-form-urlencoded;
- 1.5、集成测试参考com/heyu/api/controller/doc/ForgeryDetectionControllerTest.java;