ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的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); } } ~~~