2391 lines
66 KiB
JSON
2391 lines
66 KiB
JSON
{
|
|
"formatVersion": 2,
|
|
"moduleCode": "order",
|
|
"revision": 7,
|
|
"releaseVersion": null,
|
|
"schemaVersion": 7,
|
|
"schemaInputChecksum": "da0d51d3ee0c0f58a4324e2af0fa695e7d002278b3d90eb223d128442ce5478d",
|
|
"schemaChecksum": null,
|
|
"actionManifestChecksum": null,
|
|
"runtimeContractChecksum": "94a6243b61cf0de0ef9444a403833a432e9597eb5937bc37979ceb0277331bc2",
|
|
"implementationManifestChecksum": "f25647d2dd90e14d6226683d2ff67ba32132b2dfdeb861015805240a96d4635b",
|
|
"models": [
|
|
{
|
|
"kind": "table",
|
|
"className": "Orders",
|
|
"rowTypeName": "OrdersRow",
|
|
"tableCode": "orders",
|
|
"fields": [
|
|
{
|
|
"code": "id",
|
|
"type": "bigint",
|
|
"nullable": false,
|
|
"primary": true,
|
|
"readable": true,
|
|
"writable": false,
|
|
"filterable": true,
|
|
"sortable": true
|
|
},
|
|
{
|
|
"code": "order_no",
|
|
"type": "varchar",
|
|
"nullable": false,
|
|
"primary": false,
|
|
"readable": true,
|
|
"writable": true,
|
|
"filterable": true,
|
|
"sortable": true
|
|
},
|
|
{
|
|
"code": "goods_id",
|
|
"type": "bigint",
|
|
"nullable": false,
|
|
"primary": false,
|
|
"readable": true,
|
|
"writable": true,
|
|
"filterable": true,
|
|
"sortable": true
|
|
},
|
|
{
|
|
"code": "quantity",
|
|
"type": "int",
|
|
"nullable": false,
|
|
"primary": false,
|
|
"readable": true,
|
|
"writable": true,
|
|
"filterable": true,
|
|
"sortable": true
|
|
},
|
|
{
|
|
"code": "unit_price",
|
|
"type": "decimal",
|
|
"nullable": false,
|
|
"primary": false,
|
|
"readable": true,
|
|
"writable": true,
|
|
"filterable": true,
|
|
"sortable": true
|
|
},
|
|
{
|
|
"code": "amount",
|
|
"type": "decimal",
|
|
"nullable": false,
|
|
"primary": false,
|
|
"readable": true,
|
|
"writable": true,
|
|
"filterable": true,
|
|
"sortable": true
|
|
},
|
|
{
|
|
"code": "status",
|
|
"type": "varchar",
|
|
"nullable": false,
|
|
"primary": false,
|
|
"readable": true,
|
|
"writable": true,
|
|
"filterable": true,
|
|
"sortable": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"code": "order:orders:add",
|
|
"name": "新增订单",
|
|
"exportName": "OrderOrdersAdd"
|
|
},
|
|
{
|
|
"code": "order:orders:cancelOrder",
|
|
"name": "orders.cancelOrder",
|
|
"description": "由自定义 Action 自动生成",
|
|
"exportName": "OrderOrdersCancelOrder"
|
|
},
|
|
{
|
|
"code": "order:orders:createOrder",
|
|
"name": "orders.createOrder",
|
|
"description": "由自定义 Action 自动生成",
|
|
"exportName": "OrderOrdersCreateOrder"
|
|
},
|
|
{
|
|
"code": "order:orders:delete",
|
|
"name": "删除订单",
|
|
"exportName": "OrderOrdersDelete"
|
|
},
|
|
{
|
|
"code": "order:orders:detailWithGoods",
|
|
"name": "orders.detailWithGoods",
|
|
"description": "由自定义 Action 自动生成",
|
|
"exportName": "OrderOrdersDetailWithGoods"
|
|
},
|
|
{
|
|
"code": "order:orders:info",
|
|
"name": "查看详情订单",
|
|
"exportName": "OrderOrdersInfo"
|
|
},
|
|
{
|
|
"code": "order:orders:list",
|
|
"name": "查看列表订单",
|
|
"exportName": "OrderOrdersList"
|
|
},
|
|
{
|
|
"code": "order:orders:page",
|
|
"name": "分页查看订单",
|
|
"exportName": "OrderOrdersPage"
|
|
},
|
|
{
|
|
"code": "order:orders:update",
|
|
"name": "修改订单",
|
|
"exportName": "OrderOrdersUpdate"
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"exportName": "OrdersAdd",
|
|
"manifestDescriptor": {
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"descriptor": {
|
|
"name": "orders.add",
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"exportName": "OrdersCancelOrder",
|
|
"manifestDescriptor": {
|
|
"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": []
|
|
},
|
|
"descriptor": {
|
|
"name": "orders.cancelOrder",
|
|
"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": []
|
|
}
|
|
},
|
|
{
|
|
"exportName": "OrdersCreateOrder",
|
|
"manifestDescriptor": {
|
|
"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": []
|
|
},
|
|
"descriptor": {
|
|
"name": "orders.createOrder",
|
|
"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": []
|
|
}
|
|
},
|
|
{
|
|
"exportName": "OrdersDelete",
|
|
"manifestDescriptor": {
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"descriptor": {
|
|
"name": "orders.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"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"exportName": "OrdersDetailWithGoods",
|
|
"manifestDescriptor": {
|
|
"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": []
|
|
},
|
|
"descriptor": {
|
|
"name": "orders.detailWithGoods",
|
|
"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": []
|
|
}
|
|
},
|
|
{
|
|
"exportName": "OrdersInfo",
|
|
"manifestDescriptor": {
|
|
"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": []
|
|
},
|
|
"descriptor": {
|
|
"name": "orders.info",
|
|
"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": []
|
|
}
|
|
},
|
|
{
|
|
"exportName": "OrdersList",
|
|
"manifestDescriptor": {
|
|
"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": []
|
|
},
|
|
"descriptor": {
|
|
"name": "orders.list",
|
|
"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": []
|
|
}
|
|
},
|
|
{
|
|
"exportName": "OrdersPage",
|
|
"manifestDescriptor": {
|
|
"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": []
|
|
},
|
|
"descriptor": {
|
|
"name": "orders.page",
|
|
"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": []
|
|
}
|
|
},
|
|
{
|
|
"exportName": "OrdersUpdate",
|
|
"manifestDescriptor": {
|
|
"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"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"descriptor": {
|
|
"name": "orders.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"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"actionImports": [
|
|
{
|
|
"exportName": "DemoGoodsBatchInfo",
|
|
"providerExportName": "Demo",
|
|
"actionExportName": "GoodsBatchInfo",
|
|
"descriptor": {
|
|
"kind": "action",
|
|
"name": "goods.batchInfo",
|
|
"access": "read",
|
|
"actionName": "goods.batchInfo",
|
|
"idempotent": false,
|
|
"moduleCode": "demo",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"ids"
|
|
],
|
|
"properties": {
|
|
"ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"callerPolicy": {
|
|
"kind": "module",
|
|
"allowedModules": [
|
|
"order"
|
|
]
|
|
},
|
|
"contractKind": "saas.action.import",
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"list"
|
|
],
|
|
"properties": {
|
|
"list": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"inputChecksum": "b2e0c5fd68adc75e2687c6a1ce01b8270240b42df6511efd6d922ea3242bc264",
|
|
"actionChecksum": "3978a7ba9a3e0f91842031fd323ec63b3816eef68cb8dc82ffad6d187de8b7ea",
|
|
"outputChecksum": "fe644424ef6a9e462b56edc9f70f48bb218783c69469469d4310de48589a0df5",
|
|
"contractVersion": 1,
|
|
"providerReleaseId": 53,
|
|
"consumerModuleCode": "order",
|
|
"providerModuleCode": "demo",
|
|
"providerReleaseVersion": "1.0.6-rc.7"
|
|
}
|
|
},
|
|
{
|
|
"exportName": "DemoGoodsReleaseStock",
|
|
"providerExportName": "Demo",
|
|
"actionExportName": "GoodsReleaseStock",
|
|
"descriptor": {
|
|
"kind": "action",
|
|
"name": "goods.releaseStock",
|
|
"access": "write",
|
|
"actionName": "goods.releaseStock",
|
|
"idempotent": true,
|
|
"moduleCode": "demo",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"goodsId",
|
|
"quantity",
|
|
"orderNo"
|
|
],
|
|
"properties": {
|
|
"goodsId": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"orderNo": {
|
|
"type": "string",
|
|
"maxLength": 64,
|
|
"minLength": 1
|
|
},
|
|
"quantity": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"callerPolicy": {
|
|
"kind": "module",
|
|
"allowedModules": [
|
|
"order"
|
|
]
|
|
},
|
|
"contractKind": "saas.action.import",
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"goodsId",
|
|
"currentStock"
|
|
],
|
|
"properties": {
|
|
"goodsId": {
|
|
"type": "integer"
|
|
},
|
|
"currentStock": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"inputChecksum": "c363d259b5108d069650a2554309eb3eb165d98723596595958e00acf8410abe",
|
|
"actionChecksum": "63423abe8557075caf668a91795f95a45195759a6b82e755d8af51ddfc71996e",
|
|
"outputChecksum": "a632b9f89518c3c17861454b74173a4880d5e8482639d3ff7f761aee4d061bd9",
|
|
"contractVersion": 1,
|
|
"commandEventType": "saas.workflow.demo.goods.releaseStock",
|
|
"providerReleaseId": 53,
|
|
"consumerModuleCode": "order",
|
|
"providerModuleCode": "demo",
|
|
"providerReleaseVersion": "1.0.6-rc.7",
|
|
"commandEventContractChecksum": "18a727b91cf9410c3b7ac14e3a8799dbbfa8937f84667bfe7e31e21e662396be"
|
|
}
|
|
},
|
|
{
|
|
"exportName": "DemoGoodsReserveStock",
|
|
"providerExportName": "Demo",
|
|
"actionExportName": "GoodsReserveStock",
|
|
"descriptor": {
|
|
"kind": "action",
|
|
"name": "goods.reserveStock",
|
|
"access": "write",
|
|
"actionName": "goods.reserveStock",
|
|
"idempotent": true,
|
|
"moduleCode": "demo",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"goodsId",
|
|
"quantity"
|
|
],
|
|
"properties": {
|
|
"goodsId": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"quantity": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"callerPolicy": {
|
|
"kind": "module",
|
|
"allowedModules": [
|
|
"order"
|
|
]
|
|
},
|
|
"contractKind": "saas.action.import",
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"goodsId",
|
|
"remainingStock"
|
|
],
|
|
"properties": {
|
|
"goodsId": {
|
|
"type": "integer"
|
|
},
|
|
"remainingStock": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"inputChecksum": "6fbfa4d2324c4c0bdc621cbfd256353284e27495f59f47231b7d897b82a4e7b6",
|
|
"actionChecksum": "773465c93790e8df9119149e1efb4c4d8d2510298a24af7aa825662540ff37d5",
|
|
"outputChecksum": "545bd8b0bf6eb8670b21497236038187ee0f1df1544a318b16a399458fcb796e",
|
|
"contractVersion": 1,
|
|
"commandEventType": "saas.workflow.demo.goods.reserveStock",
|
|
"providerReleaseId": 53,
|
|
"consumerModuleCode": "order",
|
|
"providerModuleCode": "demo",
|
|
"providerReleaseVersion": "1.0.6-rc.7",
|
|
"commandEventContractChecksum": "ffbecad3a3d63b8bf92fde701dfaa11c8502a2c5f9f6bbb89b755e214024c3ae"
|
|
}
|
|
}
|
|
],
|
|
"eventImports": [
|
|
{
|
|
"exportName": "DemoGoodsStockReservedV1",
|
|
"providerExportName": "Demo",
|
|
"eventExportName": "GoodsStockReservedV1",
|
|
"descriptor": {
|
|
"eventType": "demo.goods.stockReserved",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "4d8a47d64f7d9fa43e0253228d05a2bb28db7efe3181e96d58dbff2163b9b752",
|
|
"sourceModule": "demo",
|
|
"tables": [],
|
|
"maxAttempts": 10
|
|
},
|
|
"payloadSchema": {
|
|
"type": "object",
|
|
"required": [
|
|
"goodsId",
|
|
"quantity",
|
|
"remainingStock"
|
|
],
|
|
"properties": {
|
|
"goodsId": {
|
|
"type": "integer"
|
|
},
|
|
"quantity": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"remainingStock": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"providerReleaseId": 53,
|
|
"providerReleaseVersion": "1.0.6-rc.7"
|
|
}
|
|
],
|
|
"crud": [
|
|
{
|
|
"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"
|
|
}
|
|
}
|
|
],
|
|
"events": [
|
|
{
|
|
"exportName": "OrderOrdersCreated",
|
|
"descriptor": {
|
|
"moduleCode": "order",
|
|
"aggregateStream": "orders",
|
|
"eventType": "order.orders.created",
|
|
"eventVersion": 1,
|
|
"sourceTableCodes": [
|
|
"orders"
|
|
],
|
|
"aggregateIdType": "integer",
|
|
"operation": "upsert",
|
|
"payloadMode": "state_transfer",
|
|
"payloadSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
]
|
|
},
|
|
"payloadSchemaChecksum": "f7411322cb1460ead79eaa8267854f576188c583bfdc621d9cb6b5097991e865",
|
|
"eventContractChecksum": "2f943e0975c753dae4632309442890eb66f483686223ac3f71954f68806d7676"
|
|
}
|
|
},
|
|
{
|
|
"exportName": "OrderOrdersDeleted",
|
|
"descriptor": {
|
|
"moduleCode": "order",
|
|
"aggregateStream": "orders",
|
|
"eventType": "order.orders.deleted",
|
|
"eventVersion": 1,
|
|
"sourceTableCodes": [
|
|
"orders"
|
|
],
|
|
"aggregateIdType": "integer",
|
|
"operation": "delete",
|
|
"payloadMode": "state_transfer",
|
|
"payloadSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
]
|
|
},
|
|
"payloadSchemaChecksum": "f7411322cb1460ead79eaa8267854f576188c583bfdc621d9cb6b5097991e865",
|
|
"eventContractChecksum": "738d6338228f93f161884f5e2467e52332baad6845dc9f1c26fcc36fad4f486c"
|
|
}
|
|
},
|
|
{
|
|
"exportName": "OrderOrdersUpdated",
|
|
"descriptor": {
|
|
"moduleCode": "order",
|
|
"aggregateStream": "orders",
|
|
"eventType": "order.orders.updated",
|
|
"eventVersion": 1,
|
|
"sourceTableCodes": [
|
|
"orders"
|
|
],
|
|
"aggregateIdType": "integer",
|
|
"operation": "upsert",
|
|
"payloadMode": "state_transfer",
|
|
"payloadSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^-?[0-9]+$"
|
|
}
|
|
},
|
|
"required": [
|
|
"id"
|
|
]
|
|
},
|
|
"payloadSchemaChecksum": "f7411322cb1460ead79eaa8267854f576188c583bfdc621d9cb6b5097991e865",
|
|
"eventContractChecksum": "c5e252787a723ac37068afc9adc7365057f937bf9ed9fdd1d3ed7b83d7e6db4d"
|
|
}
|
|
}
|
|
],
|
|
"eventHandlers": [
|
|
{
|
|
"exportName": "RuntimeSaasSagaCompensationCompleted",
|
|
"implementation": "runtime_managed",
|
|
"descriptor": {
|
|
"eventType": "saas.saga.compensation.completed",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "2919921c79a7795d6408b202d74aa0fb4b12ec56e1cec7de65eb95bbeeef2c5e",
|
|
"tables": [
|
|
"__saas_rpc_saga",
|
|
"__saas_rpc_saga_step"
|
|
],
|
|
"maxAttempts": 10
|
|
}
|
|
},
|
|
{
|
|
"exportName": "RuntimeSaasSagaCompensationFailed",
|
|
"implementation": "runtime_managed",
|
|
"descriptor": {
|
|
"eventType": "saas.saga.compensation.failed",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "b7c7313c221e395c42e45e9480205a673108bdc395430bec892a9dafa39807f3",
|
|
"tables": [
|
|
"__saas_rpc_saga",
|
|
"__saas_rpc_saga_step"
|
|
],
|
|
"maxAttempts": 10
|
|
}
|
|
},
|
|
{
|
|
"exportName": "RuntimeSaasSagaStepCompleted",
|
|
"implementation": "runtime_managed",
|
|
"descriptor": {
|
|
"eventType": "saas.saga.step.completed",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "9d3acfdac4e5713672063f7e9f9b5b0b09487c59238d89dbe8d7145c6a09f1bd",
|
|
"tables": [
|
|
"__saas_rpc_saga",
|
|
"__saas_rpc_saga_step"
|
|
],
|
|
"maxAttempts": 10
|
|
}
|
|
},
|
|
{
|
|
"exportName": "RuntimeSaasSagaStepFailed",
|
|
"implementation": "runtime_managed",
|
|
"descriptor": {
|
|
"eventType": "saas.saga.step.failed",
|
|
"eventVersion": 1,
|
|
"eventContractChecksum": "8dd17e8104b78fa3ece7375402782dee38e121a87c91185658633fabaac8eba0",
|
|
"tables": [
|
|
"__saas_rpc_saga",
|
|
"__saas_rpc_saga_step"
|
|
],
|
|
"maxAttempts": 10
|
|
}
|
|
}
|
|
],
|
|
"workflowCommands": []
|
|
}
|