{
  "module": {
    "module": "安全系统管理",
    "moduleKey": "securitySystem"
  },
  "api": {
    "title": "查询某个系统下的有效模块",
    "method": "GET",
    "path": "/api/security/systems/{systemId}/modules/active",
    "description": "查询指定系统下所有有效的模块列表，用于其他业务通过选择列表选择目标模块。返回所有 status = 1 的模块，不需要分页",
    "requestParams": {
      "path": [
        {
          "name": "systemId",
          "type": "string",
          "required": true,
          "description": "系统ID"
        }
      ]
    },
    "responseExample": {
      "success": {
        "code": "0000",
        "message": "获取成功",
        "data": [
          {
            "id": 1,
            "code": "AUTH_USER",
            "name": "用户管理模块",
            "systemId": "系统ID",
            "systemName": "权限管理系统",
            "status": 1,
            "description": "用户管理模块描述",
            "createTime": "2025-01-01T10:00:00.000Z",
            "updateTime": "2025-01-01T10:00:00.000Z"
          },
          {
            "id": 2,
            "code": "AUTH_ROLE",
            "name": "角色管理模块",
            "systemId": "系统ID",
            "systemName": "权限管理系统",
            "status": 1,
            "description": "角色管理模块描述",
            "createTime": "2025-01-01T11:00:00.000Z",
            "updateTime": "2025-01-01T11:00:00.000Z"
          }
        ]
      },
      "failure": {
        "code": "4040",
        "message": "系统不存在",
        "data": null
      }
    },
    "notes": [
      "仅返回指定系统下 status = 1 的有效模块",
      "按创建时间倒序排列",
      "不需要分页，返回完整列表",
      "如果系统不存在，返回404错误"
    ]
  }
}