{
  "name": "orders",
  "singularName": "order",
  "label": "订单管理",
  "path": "/orders",
  "menuCode": "orders",
  "menuKey": "orders",
  "permissionPrefix": "order",
  "icon": "receipt",
  "sort": 80,
  "permissions": [
    { "action": "view", "name": "订单查看", "kind": "menu" },
    { "action": "create", "name": "订单创建", "kind": "button" },
    { "action": "update", "name": "订单更新", "kind": "button" },
    { "action": "delete", "name": "订单删除", "kind": "button" },
    { "action": "export", "name": "订单导出", "kind": "button" }
  ],
  "apiRoutes": [
    { "method": "GET", "path": "/orders", "action": "view", "kind": "list", "operationId": "listOrders", "handler": "ListOrders" },
    { "method": "POST", "path": "/orders", "action": "create", "operationId": "createOrder", "handler": "CreateOrder" },
    { "method": "PATCH", "path": "/orders/{id}", "action": "update", "operationId": "updateOrder", "handler": "UpdateOrder" },
    { "method": "DELETE", "path": "/orders/{id}", "action": "delete", "operationId": "deleteOrder", "handler": "DeleteOrder" },
    { "method": "GET", "path": "/orders/export", "action": "export", "operationId": "exportOrders", "handler": "ExportOrders", "raw": true }
  ]
}
