1023 lines
26 KiB
JSON
1023 lines
26 KiB
JSON
{
|
|
"manifestVersion": 1,
|
|
"moduleCode": "order",
|
|
"revision": 4,
|
|
"schemaChecksum": null,
|
|
"schemaInputChecksum": "2f81018529e651ab1eb6225f4190427e62d6a09d983f52faeaa401e7fed5cdb3",
|
|
"actionManifestChecksum": null,
|
|
"runtimeContractChecksum": "5db136ddcc92c2ce13847180ddc564121c9e4249c2d43e720ac4dbe5a2ff9344",
|
|
"implementationManifestChecksum": "f25647d2dd90e14d6226683d2ff67ba32132b2dfdeb861015805240a96d4635b",
|
|
"actions": [
|
|
"OrdersAdd",
|
|
"OrdersCancelOrder",
|
|
"OrdersCreateOrder",
|
|
"OrdersDelete",
|
|
"OrdersDetailWithGoods",
|
|
"OrdersInfo",
|
|
"OrdersList",
|
|
"OrdersPage",
|
|
"OrdersUpdate"
|
|
],
|
|
"eventHandlers": [
|
|
"RuntimeSaasSagaCompensationCompleted",
|
|
"RuntimeSaasSagaCompensationFailed",
|
|
"RuntimeSaasSagaStepCompleted",
|
|
"RuntimeSaasSagaStepFailed"
|
|
],
|
|
"runtimeManagedEventHandlers": [
|
|
"RuntimeSaasSagaCompensationCompleted",
|
|
"RuntimeSaasSagaCompensationFailed",
|
|
"RuntimeSaasSagaStepCompleted",
|
|
"RuntimeSaasSagaStepFailed"
|
|
],
|
|
"runtimeManagedActions": [
|
|
"OrdersAdd",
|
|
"OrdersDelete",
|
|
"OrdersInfo",
|
|
"OrdersList",
|
|
"OrdersPage",
|
|
"OrdersUpdate"
|
|
],
|
|
"crudDescriptors": [
|
|
{
|
|
"exportName": "Orders",
|
|
"tableCode": "orders",
|
|
"operations": [
|
|
"add",
|
|
"delete",
|
|
"update",
|
|
"info",
|
|
"list",
|
|
"page"
|
|
],
|
|
"descriptorChecksum": "b4b4c2c624d655282f336f4758e6d057082541502dfd0099ca0f520f75d973fd",
|
|
"actions": {
|
|
"add": "OrdersAdd",
|
|
"delete": "OrdersDelete",
|
|
"update": "OrdersUpdate",
|
|
"info": "OrdersInfo",
|
|
"list": "OrdersList",
|
|
"page": "OrdersPage"
|
|
}
|
|
}
|
|
],
|
|
"actionDescriptors": [
|
|
{
|
|
"name": "orders.add",
|
|
"origin": "table_crud",
|
|
"implementation": "runtime_managed",
|
|
"mutationKind": "insert",
|
|
"access": "write",
|
|
"idempotent": true,
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"order_no": {
|
|
"type": "string",
|
|
"maxLength": 64
|
|
},
|
|
"goods_id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"quantity": {
|
|
"type": "integer"
|
|
},
|
|
"unit_price": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"amount": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"maxLength": 24
|
|
}
|
|
},
|
|
"required": [
|
|
"order_no",
|
|
"goods_id",
|
|
"quantity",
|
|
"unit_price",
|
|
"amount"
|
|
]
|
|
},
|
|
"inputChecksum": "bbaa3690f78676aeed57b00951cd36a1ae2a82c4afeb86911040fdae86da53c9",
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"order_no": {
|
|
"type": "string",
|
|
"maxLength": 64
|
|
},
|
|
"goods_id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"quantity": {
|
|
"type": "integer"
|
|
},
|
|
"unit_price": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"amount": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"maxLength": 24
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"order_no",
|
|
"goods_id",
|
|
"quantity",
|
|
"unit_price",
|
|
"amount",
|
|
"status"
|
|
]
|
|
},
|
|
"outputChecksum": "9621cab591356c44012f30c8ba2209b1c62ad4834e1b90b8899420ad1ab1721e",
|
|
"callerPolicy": {
|
|
"kind": "permission",
|
|
"permission": "order:orders:add"
|
|
},
|
|
"tables": [
|
|
{
|
|
"tableCode": "orders",
|
|
"fields": [
|
|
"amount",
|
|
"goods_id",
|
|
"id",
|
|
"order_no",
|
|
"quantity",
|
|
"status",
|
|
"unit_price"
|
|
],
|
|
"select": false
|
|
}
|
|
],
|
|
"readModels": [],
|
|
"writes": [
|
|
{
|
|
"tableCode": "orders",
|
|
"aggregateStream": "orders",
|
|
"sequenceCompleteness": "complete",
|
|
"idempotencyRequired": true,
|
|
"events": [
|
|
{
|
|
"eventType": "order.orders.created",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "2f943e0975c753dae4632309442890eb66f483686223ac3f71954f68806d7676",
|
|
"operation": "upsert"
|
|
},
|
|
{
|
|
"eventType": "order.orders.deleted",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "738d6338228f93f161884f5e2467e52332baad6845dc9f1c26fcc36fad4f486c",
|
|
"operation": "delete"
|
|
},
|
|
{
|
|
"eventType": "order.orders.updated",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "c5e252787a723ac37068afc9adc7365057f937bf9ed9fdd1d3ed7b83d7e6db4d",
|
|
"operation": "upsert"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "orders.cancelOrder",
|
|
"origin": "business",
|
|
"implementation": "business",
|
|
"access": "write",
|
|
"idempotent": true,
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"inputChecksum": "3df2a0bb6e1f22f70958c255cc83d22d5502335e5bbbd790956bf8a17a3fb48d",
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"status",
|
|
"restoredStock"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"restoredStock": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"outputChecksum": "17e403c93a934ab56d62cfc9aeec3b9ec4269bb82e9ef6f839572c5d2dfc45ce",
|
|
"callerPolicy": {
|
|
"kind": "permission",
|
|
"permission": "order:orders:cancelOrder"
|
|
},
|
|
"tables": [],
|
|
"readModels": [],
|
|
"writes": []
|
|
},
|
|
{
|
|
"name": "orders.createOrder",
|
|
"origin": "business",
|
|
"implementation": "business",
|
|
"access": "write",
|
|
"idempotent": true,
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"orderNo",
|
|
"goodsId",
|
|
"quantity"
|
|
],
|
|
"properties": {
|
|
"goodsId": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"orderNo": {
|
|
"type": "string",
|
|
"maxLength": 64,
|
|
"minLength": 1
|
|
},
|
|
"quantity": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"inputChecksum": "84db3ee256dbe8dd64bc9442cd3bf2abe904a92f6abda8443bcd23514defdbd7",
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"orderNo",
|
|
"amount",
|
|
"status"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"amount": {
|
|
"type": "number"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"orderNo": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"outputChecksum": "6345bebe9f8f8073cfe64d1a3d22c0e701645110587d5d01c0992217a200ef7c",
|
|
"callerPolicy": {
|
|
"kind": "permission",
|
|
"permission": "order:orders:createOrder"
|
|
},
|
|
"tables": [],
|
|
"readModels": [],
|
|
"writes": []
|
|
},
|
|
{
|
|
"name": "orders.delete",
|
|
"origin": "table_crud",
|
|
"implementation": "runtime_managed",
|
|
"mutationKind": "delete",
|
|
"access": "write",
|
|
"idempotent": true,
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
]
|
|
},
|
|
"inputChecksum": "f7411322cb1460ead79eaa8267854f576188c583bfdc621d9cb6b5097991e865",
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"affected": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"affected"
|
|
]
|
|
},
|
|
"outputChecksum": "5aa7994f78677fd557c2611cb26b6a1c4518cf4d6ccefa189a5c36af9f229716",
|
|
"callerPolicy": {
|
|
"kind": "permission",
|
|
"permission": "order:orders:delete"
|
|
},
|
|
"tables": [
|
|
{
|
|
"tableCode": "orders",
|
|
"fields": [
|
|
"id"
|
|
],
|
|
"select": false
|
|
}
|
|
],
|
|
"readModels": [],
|
|
"writes": [
|
|
{
|
|
"tableCode": "orders",
|
|
"aggregateStream": "orders",
|
|
"sequenceCompleteness": "complete",
|
|
"idempotencyRequired": true,
|
|
"events": [
|
|
{
|
|
"eventType": "order.orders.created",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "2f943e0975c753dae4632309442890eb66f483686223ac3f71954f68806d7676",
|
|
"operation": "upsert"
|
|
},
|
|
{
|
|
"eventType": "order.orders.deleted",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "738d6338228f93f161884f5e2467e52332baad6845dc9f1c26fcc36fad4f486c",
|
|
"operation": "delete"
|
|
},
|
|
{
|
|
"eventType": "order.orders.updated",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "c5e252787a723ac37068afc9adc7365057f937bf9ed9fdd1d3ed7b83d7e6db4d",
|
|
"operation": "upsert"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "orders.detailWithGoods",
|
|
"origin": "business",
|
|
"implementation": "business",
|
|
"access": "read",
|
|
"idempotent": false,
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"id"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"inputChecksum": "3df2a0bb6e1f22f70958c255cc83d22d5502335e5bbbd790956bf8a17a3fb48d",
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"order",
|
|
"goods"
|
|
],
|
|
"properties": {
|
|
"goods": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"order": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"outputChecksum": "6b3da8f0ae8d565a72bd91dc67f6b016c8959995f714059f4e122f4f2696c4d9",
|
|
"callerPolicy": {
|
|
"kind": "permission",
|
|
"permission": "order:orders:detailWithGoods"
|
|
},
|
|
"tables": [],
|
|
"readModels": [],
|
|
"writes": []
|
|
},
|
|
{
|
|
"name": "orders.info",
|
|
"origin": "table_crud",
|
|
"implementation": "runtime_managed",
|
|
"access": "read",
|
|
"idempotent": false,
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
]
|
|
},
|
|
"inputChecksum": "f7411322cb1460ead79eaa8267854f576188c583bfdc621d9cb6b5097991e865",
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"order_no": {
|
|
"type": "string",
|
|
"maxLength": 64
|
|
},
|
|
"goods_id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"quantity": {
|
|
"type": "integer"
|
|
},
|
|
"unit_price": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"amount": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"maxLength": 24
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"order_no",
|
|
"goods_id",
|
|
"quantity",
|
|
"unit_price",
|
|
"amount",
|
|
"status"
|
|
]
|
|
},
|
|
"outputChecksum": "9621cab591356c44012f30c8ba2209b1c62ad4834e1b90b8899420ad1ab1721e",
|
|
"callerPolicy": {
|
|
"kind": "permission",
|
|
"permission": "order:orders:info"
|
|
},
|
|
"tables": [
|
|
{
|
|
"tableCode": "orders",
|
|
"fields": [
|
|
"amount",
|
|
"goods_id",
|
|
"id",
|
|
"order_no",
|
|
"quantity",
|
|
"status",
|
|
"unit_price"
|
|
],
|
|
"select": true
|
|
}
|
|
],
|
|
"readModels": [],
|
|
"writes": []
|
|
},
|
|
{
|
|
"name": "orders.list",
|
|
"origin": "table_crud",
|
|
"implementation": "runtime_managed",
|
|
"access": "read",
|
|
"idempotent": false,
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"where": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"order_no": {
|
|
"type": "string",
|
|
"maxLength": 64
|
|
},
|
|
"goods_id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"quantity": {
|
|
"type": "integer"
|
|
},
|
|
"unit_price": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"amount": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"maxLength": 24
|
|
}
|
|
},
|
|
"required": []
|
|
},
|
|
"order": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"field": {
|
|
"type": "string",
|
|
"enum": [
|
|
"id",
|
|
"order_no",
|
|
"goods_id",
|
|
"quantity",
|
|
"unit_price",
|
|
"amount",
|
|
"status"
|
|
]
|
|
},
|
|
"direction": {
|
|
"type": "string",
|
|
"enum": [
|
|
"asc",
|
|
"desc"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"field",
|
|
"direction"
|
|
]
|
|
},
|
|
"keyword": {
|
|
"type": "string",
|
|
"maxLength": 200
|
|
},
|
|
"take": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 200
|
|
}
|
|
},
|
|
"required": []
|
|
},
|
|
"inputChecksum": "b55ebb7dd0f6b6d21d66145deab2c7b9746b5141fdf2510d4f65ec917f832006",
|
|
"outputSchema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"order_no": {
|
|
"type": "string",
|
|
"maxLength": 64
|
|
},
|
|
"goods_id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"quantity": {
|
|
"type": "integer"
|
|
},
|
|
"unit_price": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"amount": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"maxLength": 24
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"order_no",
|
|
"goods_id",
|
|
"quantity",
|
|
"unit_price",
|
|
"amount",
|
|
"status"
|
|
]
|
|
}
|
|
},
|
|
"outputChecksum": "040ec4e29e6999ab8ce2e1d9ebe4d4a5b1c09e805c10870401dbb273c9a8c9bc",
|
|
"callerPolicy": {
|
|
"kind": "permission",
|
|
"permission": "order:orders:list"
|
|
},
|
|
"tables": [
|
|
{
|
|
"tableCode": "orders",
|
|
"fields": [
|
|
"amount",
|
|
"goods_id",
|
|
"id",
|
|
"order_no",
|
|
"quantity",
|
|
"status",
|
|
"unit_price"
|
|
],
|
|
"select": true
|
|
}
|
|
],
|
|
"readModels": [],
|
|
"writes": []
|
|
},
|
|
{
|
|
"name": "orders.page",
|
|
"origin": "table_crud",
|
|
"implementation": "runtime_managed",
|
|
"access": "read",
|
|
"idempotent": false,
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"where": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"order_no": {
|
|
"type": "string",
|
|
"maxLength": 64
|
|
},
|
|
"goods_id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"quantity": {
|
|
"type": "integer"
|
|
},
|
|
"unit_price": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"amount": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"maxLength": 24
|
|
}
|
|
},
|
|
"required": []
|
|
},
|
|
"order": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"field": {
|
|
"type": "string",
|
|
"enum": [
|
|
"id",
|
|
"order_no",
|
|
"goods_id",
|
|
"quantity",
|
|
"unit_price",
|
|
"amount",
|
|
"status"
|
|
]
|
|
},
|
|
"direction": {
|
|
"type": "string",
|
|
"enum": [
|
|
"asc",
|
|
"desc"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"field",
|
|
"direction"
|
|
]
|
|
},
|
|
"keyword": {
|
|
"type": "string",
|
|
"maxLength": 200
|
|
},
|
|
"page": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"size": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 200
|
|
}
|
|
},
|
|
"required": []
|
|
},
|
|
"inputChecksum": "f1ef5864ff34a82b97d018b78fd5a938bfe772f1af22aae7a6a8b467743d7dc5",
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"list": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"order_no": {
|
|
"type": "string",
|
|
"maxLength": 64
|
|
},
|
|
"goods_id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"quantity": {
|
|
"type": "integer"
|
|
},
|
|
"unit_price": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"amount": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"maxLength": 24
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"order_no",
|
|
"goods_id",
|
|
"quantity",
|
|
"unit_price",
|
|
"amount",
|
|
"status"
|
|
]
|
|
}
|
|
},
|
|
"pagination": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"page": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"size": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 200
|
|
},
|
|
"total": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"page",
|
|
"size",
|
|
"total"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"list",
|
|
"pagination"
|
|
]
|
|
},
|
|
"outputChecksum": "14efb96cade110fc8fef771fb439845b0892d169d9f26f0be10127b547262877",
|
|
"callerPolicy": {
|
|
"kind": "permission",
|
|
"permission": "order:orders:page"
|
|
},
|
|
"tables": [
|
|
{
|
|
"tableCode": "orders",
|
|
"fields": [
|
|
"amount",
|
|
"goods_id",
|
|
"id",
|
|
"order_no",
|
|
"quantity",
|
|
"status",
|
|
"unit_price"
|
|
],
|
|
"select": true
|
|
}
|
|
],
|
|
"readModels": [],
|
|
"writes": []
|
|
},
|
|
{
|
|
"name": "orders.update",
|
|
"origin": "table_crud",
|
|
"implementation": "runtime_managed",
|
|
"mutationKind": "update",
|
|
"access": "write",
|
|
"idempotent": true,
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"order_no": {
|
|
"type": "string",
|
|
"maxLength": 64
|
|
},
|
|
"goods_id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
},
|
|
"quantity": {
|
|
"type": "integer"
|
|
},
|
|
"unit_price": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"amount": {
|
|
"type": "string",
|
|
"pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"maxLength": 24
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
],
|
|
"minProperties": 2
|
|
},
|
|
"inputChecksum": "437195e38df6988a131ad09b0b7ee089108857a4795c75aba395d077255676fc",
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"affected": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"affected"
|
|
]
|
|
},
|
|
"outputChecksum": "5aa7994f78677fd557c2611cb26b6a1c4518cf4d6ccefa189a5c36af9f229716",
|
|
"callerPolicy": {
|
|
"kind": "permission",
|
|
"permission": "order:orders:update"
|
|
},
|
|
"tables": [
|
|
{
|
|
"tableCode": "orders",
|
|
"fields": [
|
|
"amount",
|
|
"goods_id",
|
|
"id",
|
|
"order_no",
|
|
"quantity",
|
|
"status",
|
|
"unit_price"
|
|
],
|
|
"select": false
|
|
}
|
|
],
|
|
"readModels": [],
|
|
"writes": [
|
|
{
|
|
"tableCode": "orders",
|
|
"aggregateStream": "orders",
|
|
"sequenceCompleteness": "complete",
|
|
"idempotencyRequired": true,
|
|
"events": [
|
|
{
|
|
"eventType": "order.orders.created",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "2f943e0975c753dae4632309442890eb66f483686223ac3f71954f68806d7676",
|
|
"operation": "upsert"
|
|
},
|
|
{
|
|
"eventType": "order.orders.deleted",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "738d6338228f93f161884f5e2467e52332baad6845dc9f1c26fcc36fad4f486c",
|
|
"operation": "delete"
|
|
},
|
|
{
|
|
"eventType": "order.orders.updated",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "c5e252787a723ac37068afc9adc7365057f937bf9ed9fdd1d3ed7b83d7e6db4d",
|
|
"operation": "upsert"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"eventHandlerDescriptors": [
|
|
{
|
|
"eventType": "saas.saga.compensation.completed",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "2919921c79a7795d6408b202d74aa0fb4b12ec56e1cec7de65eb95bbeeef2c5e",
|
|
"tables": [
|
|
"__saas_rpc_saga",
|
|
"__saas_rpc_saga_step"
|
|
],
|
|
"maxAttempts": 10
|
|
},
|
|
{
|
|
"eventType": "saas.saga.compensation.failed",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "b7c7313c221e395c42e45e9480205a673108bdc395430bec892a9dafa39807f3",
|
|
"tables": [
|
|
"__saas_rpc_saga",
|
|
"__saas_rpc_saga_step"
|
|
],
|
|
"maxAttempts": 10
|
|
},
|
|
{
|
|
"eventType": "saas.saga.step.completed",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "9d3acfdac4e5713672063f7e9f9b5b0b09487c59238d89dbe8d7145c6a09f1bd",
|
|
"tables": [
|
|
"__saas_rpc_saga",
|
|
"__saas_rpc_saga_step"
|
|
],
|
|
"maxAttempts": 10
|
|
},
|
|
{
|
|
"eventType": "saas.saga.step.failed",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "8dd17e8104b78fa3ece7375402782dee38e121a87c91185658633fabaac8eba0",
|
|
"tables": [
|
|
"__saas_rpc_saga",
|
|
"__saas_rpc_saga_step"
|
|
],
|
|
"maxAttempts": 10
|
|
}
|
|
]
|
|
}
|