Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:A616567126 GPT WEB JAVA SysOrderController

From Leeroopedia
Knowledge Sources
Domains Admin_API, Order_Management
Last Updated 2026-10-13 00:00 GMT

Overview

Concrete REST controller for admin order management, including paginated order queries and YiPay return URL processing.

Description

The SysOrderController exposes endpoints under `/sys/order` for querying orders with pagination and handling YiPay return URLs. It delegates to `IOrderService`. Also contains a utility method for fetching Midjourney image URLs via Discord API.

⚠️ Code Quality Note: This controller contains a `main()` method with a hardcoded Discord bot token (`botToken`) used for testing the Discord API. This test code should not be present in a production controller and the hardcoded token is a security concern.

Usage

Use this controller when building the admin order management interface for viewing and processing payment orders.

Code Reference

Source Location

Signature

@RestController
@RequestMapping("/sys/order")
public class SysOrderController {

    @RequestMapping(value = "/query", method = RequestMethod.POST)
    public B<Page<OrderQueryRes>> query(@Validated @RequestBody OrderQueryReq req);

    @RequestMapping(value = "/yi/return/url", method = RequestMethod.POST)
    public B<Void> yiReturnUrl(@Validated @RequestBody OrderYiReturnReq req);
}

Import

import com.intelligent.bot.api.sys.admin.SysOrderController;

I/O Contract

Inputs

Name Type Required Description
req OrderQueryReq Yes (query) Query and pagination params
req OrderYiReturnReq Yes (return) YiPay return order info

Outputs

Name Type Description
query B<Page<OrderQueryRes>> Paginated order list
yiReturnUrl B<Void> Success confirmation

Usage Examples

Query Orders

// POST /sys/order/query
{
    "pageNumber": 1,
    "pageSize": 20
}

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment