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 CardPinController

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

Overview

Concrete REST controller providing CRUD operations for card key (voucher) management in the admin panel.

Description

The CardPinController exposes endpoints under `/sys/card/pin` for paginated card key queries, adding new card keys, deleting card keys, and retrieving all valid card keys. Operations delegate to `ICardPinService`.

Usage

Use this controller when building the admin card key management interface for creating voucher codes and viewing available ones.

Code Reference

Source Location

Signature

@RestController
@RequestMapping("/sys/card/pin")
public class CardPinController {

    @RequestMapping(value = "/queryPage", method = RequestMethod.POST)
    public B<Page<CardPinQueryRes>> queryPage(@Validated @RequestBody BasePageHelper req);

    @RequestMapping(value = "/add", method = RequestMethod.POST)
    public B<Void> add(@Validated @RequestBody CardPinAddReq req);

    @RequestMapping(value = "/delete", method = RequestMethod.POST)
    public B<Void> delete(@Validated @RequestBody BaseDeleteEntity req);

    @RequestMapping(value = "/getAllCardPin", method = RequestMethod.POST)
    public B<List<String>> getAllCardPin();
}

Import

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

I/O Contract

Inputs

Name Type Required Description
req BasePageHelper Yes (query) Pagination params
req CardPinAddReq Yes (add) Card key details
req BaseDeleteEntity Yes (delete) IDs to delete

Outputs

Name Type Description
queryPage B<Page<CardPinQueryRes>> Paginated card key list
getAllCardPin B<List<String>> List of valid card key strings
add/delete B<Void> Success confirmation

Usage Examples

Query Card Keys

// POST /sys/card/pin/queryPage
{
    "pageNumber": 1,
    "pageSize": 10
}

Get All Valid Card Keys

// POST /sys/card/pin/getAllCardPin
// Response: { "data": ["CARD-001", "CARD-002", "CARD-003"] }

Related Pages

Page Connections

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