src/main/java/org/edgegallery/appstore/interfaces/order/web/OrderController.java
@PostMapping(value = "list", produces = javax.ws.rs.core.MediaType.APPLICATION_JSON)
    @ApiOperation(value = "query order list.", response = String.class)
    @ApiResponses(value = {
        @ApiResponse(code = 404, message = "microservice not found", response = String.class),
        @ApiResponse(code = 500, message = "resource grant error", response = String.class)
    })
    @PreAuthorize("hasRole('APPSTORE_TENANT') || hasRole('APPSTORE_ADMIN')")
    public ResponseEntity<Page<OrderDto>> queryOrders(
        @ApiParam(value = "QueryOrdersReqDto", required = true) @RequestBody QueryOrdersReqDto queryOrdersReqDto,
        HttpServletRequest request) {
        LOGGER.info("enter query order.");
        return orderServiceFacade.queryOrders((String) request.getAttribute(Consts.USERID),
            (String) request.getAttribute(Consts.USERNAME), queryOrdersReqDto,
            request.getHeader(Consts.ACCESS_TOKEN_STR));
    }
/**
     * query order list.
     *
     * @param queryOrdersReqDto request body.
     * @param request request.
     */
query order list.
@param queryOrdersReqDto request body.
@param request request.
query order list . @param queryOrdersReqDto request body . @param request request .
@PostMapping(value = "list", produces = javax.ws.rs.core.MediaType.APPLICATION_JSON)
    @ApiOperation(value = "query order list.", response = String.class)
    @ApiResponses(value = {
        @ApiResponse(code = 404, message = "microservice not found", response = String.class),
        @ApiResponse(code = 500, message = "resource grant error", response = String.class)
    })
    @PreAuthorize("hasRole('APPSTORE_TENANT') || hasRole('APPSTORE_ADMIN')")
    public ResponseEntity<Page<OrderDto>> queryOrders(
        @ApiParam(value = "QueryOrdersReqDto", required = true) @RequestBody QueryOrdersReqDto queryOrdersReqDto,
        HttpServletRequest request) {
        LOGGER.info("enter query order.");
        return orderServiceFacade.queryOrders((String) request.getAttribute(Consts.USERID),
            (String) request.getAttribute(Consts.USERNAME), queryOrdersReqDto,
            request.getHeader(Consts.ACCESS_TOKEN_STR));
    }
@ PostMapping ( value = "list" , produces = javax . ws . rs . core . MediaType . APPLICATION_JSON ) @ ApiOperation ( value = "query order list." , response = String . class ) @ ApiResponses ( value = { @ ApiResponse ( code = 404 , message = "microservice not found" , response = String . class ) , @ ApiResponse ( code = 500 , message = "resource grant error" , response = String . class ) } ) @ PreAuthorize ( "hasRole('APPSTORE_TENANT') || hasRole('APPSTORE_ADMIN')" ) public ResponseEntity < Page < OrderDto > > queryOrders ( @ ApiParam ( value = "QueryOrdersReqDto" , required = true ) @ RequestBody QueryOrdersReqDto queryOrdersReqDto , HttpServletRequest request ) { LOGGER . info ( "enter query order." ) ; return orderServiceFacade . queryOrders ( ( String ) request . getAttribute ( Consts . USERID ) , ( String ) request . getAttribute ( Consts . USERNAME ) , queryOrdersReqDto , request . getHeader ( Consts . ACCESS_TOKEN_STR ) ) ; }
query order list.
query order list .