Skip to content
v1.0.0 (2026-08-15 18:56)

Info Centre

Overview

  • Description: Fetch various help documents, terms & conditions, and announcements of the site.

Business Logic & Explanations

WARNING

The Info Centre is not a simple flat table; it is a highly cohesive three-tier tree structure.

  1. Three-Tier Traversal:
    • Level 1 (info_centre_menu_model): Top-level menus, e.g., "About Us", "Terms & Conditions".
    • Level 2 (info_centre_submenu_model): Submenus, e.g., "About Us -> Privacy Policy".
    • Level 3 (info_centre_model): The actual rich-text content nodes.
  2. Visibility Circuit Breaker: When fetching the tree structure, the system strictly checks the status of every tier (active=1, is_visible=1, deleted_at=0). If any top-level or second-level menu is set to hidden, all its descendant nodes must be aggressively intercepted and hidden, even if the descendant nodes themselves are set to active.

1. GET - Fetch Info Centre Tree & Content

  • Path: /api/system/infocentre/tree

Request Headers

ParameterTypeRequiredDescription
AuthorizationStringNoThis endpoint can be called publicly

Response Example

json
{
  "code": 0,
  "msg": "Success",
  "data": [
    {
      "menu_id": 1,
      "menu_title": "About Us",
      "has_submenu": true,
      "submenus": [
        {
          "submenu_id": 10,
          "submenu_title": "Privacy Policy",
          "content": [
            {
              "id": 100,
              "title": "Data Collection Terms",
              "body": "<p>How we collect your data...</p>"
            }
          ]
        }
      ]
    },
    {
      "menu_id": 2,
      "menu_title": "FAQ",
      "has_submenu": false,
      "content": [
        {
          "id": 200,
          "title": "How to withdraw?",
          "body": "<p>Navigate to the withdrawal page...</p>"
        }
      ]
    }
  ]
}