企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
请求报文对象org.walkframework.restful.model.req.ReqInfo 分请求头和请求体两个节点 请求头reqHead:公共参数,工程自定义,比如appId等信息。 请求体reqBody:业务参数,根据需求自定义。 生成json的样例 ~~~ { "reqHead": { "appId": "string", "timestamp": "string", "sign": "string" }, "reqBody": { "tradeId": 0 } } ~~~ ~~~ @Api(description = "订单中心接口服务", tags = {"order"}, position = 10) @RestController @RequestMapping(value = "${intf.version}/order", method = RequestMethod.POST, produces = "application/json") public class OrderController extends AppController { @Resource(name = "orderQueryService") private OrderQueryService orderQueryService; /** * 订单列表查询接口 * * @param reqInfo * @param bindingResult * @return */ @ApiOperation(value = "订单列表查询接口", notes = "订单列表查询接口", position = 20) @RequestMapping(value = "/orderListQuery") public RspInfo<PaginationRsp<OrderListRsp>> orderListQuery(@RequestBody @Valid ReqInfo<CommonHeadReq, QryOrderListReq> reqInfo, BindingResult bindingResult) { return orderQueryService.orderListQuery(reqInfo); } } ~~~