6 Commits

10 changed files with 309 additions and 94 deletions

View File

@@ -1,8 +1,8 @@
{
"moduleCode": "order",
"candidateVersion": "1.0.5-rc.6",
"buildRevision": 6,
"buildChecksum": "9d3fcb8e096e7f79bcdf61234875bdfaa368db3e41deb5c192775546663ae075",
"schemaInputChecksum": "18d11bb9ce859510f4a1830e1bdf00182da78acfd305262eed05c7e9358d0143",
"branchName": "release/1.0.5-rc.6"
"candidateVersion": "1.0.10-rc.10",
"buildRevision": 10,
"buildChecksum": "e66f8fffeaaac05d20c00a1367159d84e64de97231f528d493789a369f3ef9f5",
"schemaInputChecksum": "9811550dfb225cd89362118cd649590d3d52f9388456aaf5aee082c2399bfc5b",
"branchName": "release/1.0.10-rc.10"
}

View File

@@ -26,8 +26,8 @@
}
},
"dependencies": {
"@cool-midway/module-runtime": "9.1.0",
"@cool-midway/rpc": "9.1.0",
"@cool-midway/module-runtime": "9.1.1",
"@cool-midway/rpc": "9.1.2",
"@midwayjs/bootstrap": "^3.20.3",
"@midwayjs/core": "^3.20.3",
"@midwayjs/koa": "^3.20.3",

24
pnpm-lock.yaml generated
View File

@@ -9,11 +9,11 @@ importers:
.:
dependencies:
'@cool-midway/module-runtime':
specifier: 9.1.0
version: 9.1.0(@cool-midway/typeorm@0.3.20(ioredis@5.11.1)(mysql2@3.24.3(@types/node@22.10.7)))(@midwayjs/core@3.20.24)
specifier: 9.1.1
version: 9.1.1(@cool-midway/typeorm@0.3.20(ioredis@5.11.1)(mysql2@3.24.3(@types/node@22.10.7)))(@midwayjs/core@3.20.24)
'@cool-midway/rpc':
specifier: 9.1.0
version: 9.1.0(@cool-midway/module-runtime@9.1.0(@cool-midway/typeorm@0.3.20(ioredis@5.11.1)(mysql2@3.24.3(@types/node@22.10.7)))(@midwayjs/core@3.20.24))(@midwayjs/validate@3.20.24)(debug@4.4.3)
specifier: 9.1.2
version: 9.1.2(@cool-midway/module-runtime@9.1.1(@cool-midway/typeorm@0.3.20(ioredis@5.11.1)(mysql2@3.24.3(@types/node@22.10.7)))(@midwayjs/core@3.20.24))(@midwayjs/validate@3.20.24)(debug@4.4.3)
'@midwayjs/bootstrap':
specifier: ^3.20.3
version: 3.20.24
@@ -72,16 +72,16 @@ packages:
resolution: {integrity: sha512-Kf4x3IrWnBM5o2k3hdHhDt7ujBG7MLn5JXV4o8glKEh4pqdzgoe/HgTcEvtdpIRvy80MsnIt5ZlH1Eq54qV4uQ==}
hasBin: true
'@cool-midway/module-runtime@9.1.0':
resolution: {integrity: sha512-8pWWQpzaR28gOLuZ8aQV+RVFmuFqtIfz8VHgu4uMMDnp4Jo3qPtKonQB6AV8BUNex2CBCkyFhmrZ8D+3YVNNeA==}
'@cool-midway/module-runtime@9.1.1':
resolution: {integrity: sha512-OHJzqJX6ktnelL1J6k/7forr6TujDuLHBQ/Z21ueGiEdtvfQ3cHKjhYFEp6WwgeISECxGOxGdGyASPP3cV6jXQ==}
peerDependencies:
'@midwayjs/core': '>=3.20.0'
typeorm: '>=0.3.20'
'@cool-midway/rpc@9.1.0':
resolution: {integrity: sha512-G9auVH/bvCHrxVXVeDV17ejiUTEBvrnA54B/W6NtDFF0HaT0nk3lz8thrzFESACeHzwWppA0FAC51upwVCyxzA==}
'@cool-midway/rpc@9.1.2':
resolution: {integrity: sha512-WVR+zsMtojllK9LsI1Kx3VUMgEzvKLuxWVkOudyxzjLwWF4VU2/hnRN6tPJA1mBoSSJCxaSrbF0tZwbeWxcgzQ==}
peerDependencies:
'@cool-midway/module-runtime': '>=9.1.0 <10'
'@cool-midway/module-runtime': '>=9.1.1 <10'
'@midwayjs/validate': '>=3.20.0'
'@cool-midway/typeorm@0.3.20':
@@ -2493,14 +2493,14 @@ snapshots:
- supports-color
- utf-8-validate
'@cool-midway/module-runtime@9.1.0(@cool-midway/typeorm@0.3.20(ioredis@5.11.1)(mysql2@3.24.3(@types/node@22.10.7)))(@midwayjs/core@3.20.24)':
'@cool-midway/module-runtime@9.1.1(@cool-midway/typeorm@0.3.20(ioredis@5.11.1)(mysql2@3.24.3(@types/node@22.10.7)))(@midwayjs/core@3.20.24)':
dependencies:
'@midwayjs/core': 3.20.24
typeorm: '@cool-midway/typeorm@0.3.20(ioredis@5.11.1)(mysql2@3.24.3(@types/node@22.10.7))'
'@cool-midway/rpc@9.1.0(@cool-midway/module-runtime@9.1.0(@cool-midway/typeorm@0.3.20(ioredis@5.11.1)(mysql2@3.24.3(@types/node@22.10.7)))(@midwayjs/core@3.20.24))(@midwayjs/validate@3.20.24)(debug@4.4.3)':
'@cool-midway/rpc@9.1.2(@cool-midway/module-runtime@9.1.1(@cool-midway/typeorm@0.3.20(ioredis@5.11.1)(mysql2@3.24.3(@types/node@22.10.7)))(@midwayjs/core@3.20.24))(@midwayjs/validate@3.20.24)(debug@4.4.3)':
dependencies:
'@cool-midway/module-runtime': 9.1.0(@cool-midway/typeorm@0.3.20(ioredis@5.11.1)(mysql2@3.24.3(@types/node@22.10.7)))(@midwayjs/core@3.20.24)
'@cool-midway/module-runtime': 9.1.1(@cool-midway/typeorm@0.3.20(ioredis@5.11.1)(mysql2@3.24.3(@types/node@22.10.7)))(@midwayjs/core@3.20.24)
'@midwayjs/validate': 3.20.24
ioredis: 5.11.1
moleculer: 0.14.36(debug@4.4.3)(ioredis@5.11.1)

View File

@@ -111,31 +111,31 @@
},
{
"name": "@cool-midway/module-runtime",
"version": "9.1.0",
"sha256": "88caa11bb651e146b877809c5dbbe43a8161844b8f8f1f04f38437dcddc4ef0b",
"integrity": "sha512-8pWWQpzaR28gOLuZ8aQV+RVFmuFqtIfz8VHgu4uMMDnp4Jo3qPtKonQB6AV8BUNex2CBCkyFhmrZ8D+3YVNNeA==",
"version": "9.1.1",
"sha256": "b4ef3ceb929ec2575f1858be5f85b5cc470e4e942b6a00fb25886874993a8144",
"integrity": "sha512-OHJzqJX6ktnelL1J6k/7forr6TujDuLHBQ/Z21ueGiEdtvfQ3cHKjhYFEp6WwgeISECxGOxGdGyASPP3cV6jXQ==",
"files": {
"dist/action.js": "86b35ec3d9d020f253cfa42f8030444da39a9742f6480c94010cc342056e0e4a",
"dist/adapter.js": "d43aa81f5bc89faa359e0f97c814ba25155591ff078fbb9bfd40f8c7c9683230",
"dist/business-reject.js": "1bea195b38fbcce97512400be8fe43f01596a03aa5ea5d6546346064c2cd1b03",
"dist/configuration.js": "fed0a7dc7e6aa6e233f8d66109589b15ccd6b0f3fdd46dc6d55bbd8c38b45311",
"dist/connection.js": "dc44aef513160623b1282b174e5bd17bc5ddeefcdaac1d328b23e061d7516f67",
"dist/consumer.js": "18189e798ccaab3a0809f2d49430ec48361f0f705645b91dd0d889210cbf38e3",
"dist/consumer.js": "2f3b54f49775eacdf977642cb0a06505fffaaff6300527fd283751ad9c7c27d0",
"dist/context.js": "eb2b3c97119f94c7f52498b591b7e63fe51b1ef8194b3b9cf6dbea6d0af555e7",
"dist/crud-host.js": "19ab92b9744f8cb671c4dcbfce288160c60e008f14a0b018f38a1c0de55aa4b8",
"dist/crud.js": "235a6ce66b54373c80bbba8ea444162ef44e8fa34863cb30be59b62b8a008043",
"dist/data.js": "e54a8d582fadefd9dc75eec049d3eee1c80fb92ed656d46d384fc48d8ae4d7d0",
"dist/error.js": "f2dced066aef06c895d00285ecf69d52203bfce1635539a4b8c88d9de2a733d3",
"dist/event-writer-migration.js": "deee4d33d7c3049f2ab9f6a9605cfea17aaf9536db7d3d1305f4903d48ff5e4f",
"dist/event-writer.js": "0c4a2f270ba868b772d83d002255cf60bf3c3f69425881121c3639184e5e17ac",
"dist/event-writer.js": "e45f62209d263b2be11a25680352c4e8dd7690b655f2f9ee007d9f1f6b8646b0",
"dist/decorator/event.js": "3801cf45836398239734611d4c58ea0261d32e870544a770e7ad667704aad143",
"dist/executor.js": "e65ec1d28ee63bfc75b56a58485640a5c2f2e4af6f60122974bd73d047ceda0b",
"dist/executor.js": "4dc904785a8bd385e98f239e1517cc33fb3e4c96807fffd1393b22ec93ff025a",
"dist/generated-module.js": "84739644067c446863ad34166602d0dcec9212661c61cbeea5bfe85a113b4c0a",
"dist/index.js": "c0de3d4fae6a2f28f5ee89519c1daf7c36dc7bcc13aeccc0372999fec4b703c9",
"dist/injected-action.js": "3fdee7be7fee4e07c41884cbc43cb23bbd1dd4ef0ffe49fee37c53f2a8d8ca97",
"dist/injected-crud.js": "5f4593c1b12a50765f4112381a0db9f732202b908f84b6f13225da7a567eba0c",
"dist/internal.js": "2d5ee68295abbaaf9a74aa7fb805cb1be70702354e1c058a2eb02fa11d1561e1",
"dist/inventory.js": "c97c12ecb113302e4d21deef52a6d6b6b477ae2e192853d664211e19f539cd74",
"dist/inventory.js": "7c6ce797200ad627dd9374e1ad70638ff11f7483c5fd98e9adef6992b1a1aee9",
"dist/json-schema.js": "ef1a378710cfc285679fdb8130750169bc09e19611a2e577ef081b44e5f2eeb0",
"dist/managed-action.js": "fb42b5f0b1992e2b2b3f5176081a2de06cac020ca3ed744f46d93f094cfe96dd",
"dist/model.js": "9e548ad45b0cac4642ae9437cbcd52a6deb5dd316de5242ce601c2765f68554a",
@@ -157,7 +157,7 @@
"dist/workflow-reply-authority.js": "90ad7bbd35bcc4a0a788d33721cdbc3ec54f5c28ebce288317a40152de50bb10",
"dist/workflow.js": "79e25c6e0dc24c6b2277c18b02bedf4fda60754947ae1917b0b9cb2eecb53af3",
"dist/write-fence.js": "95c6af20da75ca92a0149023ebbc515525ddbcd50da3e284209b77536bc2a5f2",
"package.json": "f3638ab357be8eee6b01228a7e8f24dee63fe47f31382f45000abcec18df7fd2",
"package.json": "62519527981f22831f9ade24a8c38f8541fb64ebcfdc0905386f9b2dc5fc802c",
"dist/action.d.ts": "8d0c6d6055c1acc4a6a6e70fdb83a70a81693965b20adf2afa0290245cd649cd",
"adapter.d.ts": "ffa850716087cae3e3ef5f5bb54835143d16bcb3ad42b044c0f16aba08209074",
"dist/adapter.d.ts": "f70f53cb90da78d4423f46debfea6d922068ea4f70fb063b53135d6538af1eb2",
@@ -207,13 +207,13 @@
"fileCount": 90,
"credentialScanPassed": true,
"registry": "https://npm.blendercg.art/",
"tarball": "https://npm.blendercg.art/@cool-midway/module-runtime/-/module-runtime-9.1.0.tgz"
"tarball": "https://npm.blendercg.art/@cool-midway/module-runtime/-/module-runtime-9.1.1.tgz"
},
{
"name": "@cool-midway/rpc",
"version": "9.1.0",
"sha256": "7b5b5ce502888a500659cbf6030376dd5d93e57aab2567d53063d1725592653a",
"integrity": "sha512-G9auVH/bvCHrxVXVeDV17ejiUTEBvrnA54B/W6NtDFF0HaT0nk3lz8thrzFESACeHzwWppA0FAC51upwVCyxzA==",
"version": "9.1.2",
"sha256": "624b6bfa6f6ae05bfee779acf22913492a1a3bd7e6ca36c1670da08e6de232d6",
"integrity": "sha512-WVR+zsMtojllK9LsI1Kx3VUMgEzvKLuxWVkOudyxzjLwWF4VU2/hnRN6tPJA1mBoSSJCxaSrbF0tZwbeWxcgzQ==",
"files": {
"dist/action-registry.js": "04f77c61445d47f66eaad984ee8e059a38bb0e610d2f584f5754d5a0ead105c5",
"dist/saas-host/bootstrap.js": "a53eb6f40c7a7c2427fbcd0cde78e8985f64dda15fcff1843e8957f5e7086271",
@@ -230,7 +230,7 @@
"dist/event-transport.js": "c056c6c1ab9e5aa9b24b659f03045f64c852ec9e5ac2603d92dcb1baedbc88c2",
"dist/identity.js": "063718c26403ad5d8c6f8737f7351332f6ce5ddde9ee7ebf128e2085d8d70b25",
"dist/index.js": "26d61f60277e769fa7f9379fc2a98af9840296ea7c4d0e65c8c354bf70d37bdd",
"dist/saas-host/index.js": "ca038796a56260424afbea02215180fa319208403ddd2e5027901eb927277823",
"dist/saas-host/index.js": "897d19161dac81262025c9533d4b7cafe0c163198d91f8a792173314c796a97e",
"dist/injected-action.js": "92fdaaa784e64b0babbcba16a941d3569367a47ccdc2137d7afc415e542f7bc9",
"dist/managed-runtime.js": "1985cb709666c9f6bba561b1756cbc2420fd068e138f82180712a3c577760373",
"dist/mode.js": "b986fe6d3623d6baad7ecd44496c1fa681203c934013af8baaa330ba371fc75d",
@@ -246,7 +246,7 @@
"dist/test.js": "5386504311845b9dc3fe230d3c5a3b5ab3c6d36154add15e91d32d8442c25157",
"dist/types.js": "d43aa81f5bc89faa359e0f97c814ba25155591ff078fbb9bfd40f8c7c9683230",
"dist/workflow-recovery.js": "d423e33df1cca07250036ec6b61aaa7fcddea1e1440450487da13f01b16b26f0",
"package.json": "6d210735ca72b9bc64983370af7f8d1245849500fd717c19858b4fa0496331ef",
"package.json": "42ed936eafa84ce842c19bcb62970688fa9dee3030c071fc7eff5d33424e646f",
"dist/action-registry.d.ts": "40231dd8299c0bfae1b006105d49945eb2f20a40334856db32e4b7cc2851398b",
"dist/saas-host/bootstrap.d.ts": "f639edef99770f091ac90e737a0ab2c857830241a8996171492768d108ad43f0",
"dist/caller-context.d.ts": "3f58cb5d653e2d5179996c3302dddc5c4bfdc3ff2ac501ca8d6dcedb4cb606d5",
@@ -262,7 +262,7 @@
"dist/event-transport.d.ts": "db3aad6cb1ed297c3cbc785101a26577beabae23e8255e18e993a9c0d42849e8",
"dist/identity.d.ts": "5e7a2f9cbe80816cad22f678663f814f89e2295ecfb0b6d7436a8a1efb166f7c",
"dist/index.d.ts": "d4ac7f2d87a93a50263ccbb3da781dcf4d3db9775ae5ba316327862f0c007d69",
"dist/saas-host/index.d.ts": "2e5e01089a7a42c312456f44054a33a426ef18572affd687e79a90acb58956c9",
"dist/saas-host/index.d.ts": "14845d92d00654415eaccca39da6ec4f347ac98ca2c3ed2f0df7aa36db8fdf2c",
"index.d.ts": "b764a7488d90d3db5bc04ed44bbe06994574d25c052a139c15e9b11ffe1be954",
"dist/injected-action.d.ts": "10954865dd4ddd1f1bfd867e151d4fda993547fc206346d5ccf39a241d40527e",
"dist/managed-runtime.d.ts": "f9c4f933c09ee7488d05cad68cd411de8239998a48738f2a90988aff6f691379",
@@ -283,7 +283,7 @@
"fileCount": 66,
"credentialScanPassed": true,
"registry": "https://npm.blendercg.art/",
"tarball": "https://npm.blendercg.art/@cool-midway/rpc/-/rpc-9.1.0.tgz"
"tarball": "https://npm.blendercg.art/@cool-midway/rpc/-/rpc-9.1.2.tgz"
}
]
}

View File

@@ -12,6 +12,7 @@ export type OrdersAddInput = {
goods_id: string;
order_no: string;
quantity: number;
remark?: string | null;
status?: string;
unit_price: string;
};
@@ -22,6 +23,7 @@ export type OrdersAddOutput = {
id: string;
order_no: string;
quantity: number;
remark?: string | null;
status: string;
unit_price: string;
};
@@ -76,6 +78,7 @@ export type OrdersInfoOutput = {
id: string;
order_no: string;
quantity: number;
remark?: string | null;
status: string;
unit_price: string;
};
@@ -98,15 +101,16 @@ export type OrdersListInput = {
};
};
export type OrdersListOutput = {
export type OrdersListOutput = ({
amount: string;
goods_id: string;
id: string;
order_no: string;
quantity: number;
remark?: string | null;
status: string;
unit_price: string;
}[];
})[];
export type OrdersPageInput = {
keyword?: string;
@@ -128,15 +132,16 @@ export type OrdersPageInput = {
};
export type OrdersPageOutput = {
list: {
list: ({
amount: string;
goods_id: string;
id: string;
order_no: string;
quantity: number;
remark?: string | null;
status: string;
unit_price: string;
}[];
})[];
pagination: {
page: number;
size: number;
@@ -150,6 +155,7 @@ export type OrdersUpdateInput = {
id: string;
order_no?: string;
quantity?: number;
remark?: string | null;
status?: string;
unit_price?: string;
};
@@ -217,6 +223,13 @@ export const Actions = {
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -227,7 +240,7 @@ export const Actions = {
"amount"
]
},
"inputChecksum": "bbaa3690f78676aeed57b00951cd36a1ae2a82c4afeb86911040fdae86da53c9",
"inputChecksum": "1a63df8bd8a0a663d853603eac460eb419f44131f9ca1de36c9d91925c03c95f",
"outputSchema": {
"type": "object",
"additionalProperties": false,
@@ -258,6 +271,13 @@ export const Actions = {
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -270,7 +290,7 @@ export const Actions = {
"status"
]
},
"outputChecksum": "9621cab591356c44012f30c8ba2209b1c62ad4834e1b90b8899420ad1ab1721e",
"outputChecksum": "a1214f4132a2d2897384694e7f3bb8fc2c436cd6ed1d2d8f09c7515bb76538d1",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:add"
@@ -284,6 +304,7 @@ export const Actions = {
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -620,6 +641,13 @@ export const Actions = {
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -632,7 +660,7 @@ export const Actions = {
"status"
]
},
"outputChecksum": "9621cab591356c44012f30c8ba2209b1c62ad4834e1b90b8899420ad1ab1721e",
"outputChecksum": "a1214f4132a2d2897384694e7f3bb8fc2c436cd6ed1d2d8f09c7515bb76538d1",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:info"
@@ -646,6 +674,7 @@ export const Actions = {
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -775,6 +804,13 @@ export const Actions = {
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -788,7 +824,7 @@ export const Actions = {
]
}
},
"outputChecksum": "040ec4e29e6999ab8ce2e1d9ebe4d4a5b1c09e805c10870401dbb273c9a8c9bc",
"outputChecksum": "a02a513155bd8cbf6dc15471919a77f076e6225975e07a90285763bd3b481661",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:list"
@@ -802,6 +838,7 @@ export const Actions = {
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -939,6 +976,13 @@ export const Actions = {
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -982,7 +1026,7 @@ export const Actions = {
"pagination"
]
},
"outputChecksum": "14efb96cade110fc8fef771fb439845b0892d169d9f26f0be10127b547262877",
"outputChecksum": "9b8f0c856c1dec532d601d56a84c8267f591ff82b89d5750df62d6104271eeb7",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:page"
@@ -996,6 +1040,7 @@ export const Actions = {
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -1043,6 +1088,13 @@ export const Actions = {
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -1050,7 +1102,7 @@ export const Actions = {
],
"minProperties": 2
},
"inputChecksum": "437195e38df6988a131ad09b0b7ee089108857a4795c75aba395d077255676fc",
"inputChecksum": "acf0b47a3dd2bb4dc9f7e87399f8e0fd2300391230886283588204ba9b8c8e4c",
"outputSchema": {
"type": "object",
"additionalProperties": false,
@@ -1078,6 +1130,7 @@ export const Actions = {
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -1125,7 +1178,7 @@ export const Crud = {
moduleCode: "order",
tableCode: "orders",
operations: ["add","delete","update","info","list","page"],
descriptorChecksum: "b4b4c2c624d655282f336f4758e6d057082541502dfd0099ca0f520f75d973fd",
descriptorChecksum: "9748697d1a60b5e0957fb58c62a8564c997397007d15a6d35b783fceee178e97",
actions: {
add: Actions.OrdersAdd,
delete: Actions.OrdersDelete,

View File

@@ -14,15 +14,16 @@ export interface OrdersRow extends Record<string, unknown> {
unit_price: string;
amount: string;
status: string;
remark?: string | null;
}
export class Orders extends SaasTableModel<OrdersRow> {
static readonly definition = defineSaasTableModel({
"kind": "table",
"moduleCode": "order",
"revision": 6,
"schemaVersion": 6,
"schemaInputChecksum": "18d11bb9ce859510f4a1830e1bdf00182da78acfd305262eed05c7e9358d0143",
"revision": 10,
"schemaVersion": 10,
"schemaInputChecksum": "9811550dfb225cd89362118cd649590d3d52f9388456aaf5aee082c2399bfc5b",
"tableCode": "orders",
"fields": [
{
@@ -94,6 +95,16 @@ export class Orders extends SaasTableModel<OrdersRow> {
"writable": true,
"filterable": true,
"sortable": true
},
{
"code": "remark",
"type": "varchar",
"nullable": true,
"primary": false,
"readable": true,
"writable": true,
"filterable": false,
"sortable": false
}
]
});

View File

@@ -4,9 +4,9 @@ import { defineGeneratedSaasModule } from '@cool-midway/module-runtime';
export const GeneratedSaasModule = defineGeneratedSaasModule({
"formatVersion": 2,
"moduleCode": "order",
"revision": 6,
"schemaVersion": 6,
"schemaInputChecksum": "18d11bb9ce859510f4a1830e1bdf00182da78acfd305262eed05c7e9358d0143",
"runtimeContractChecksum": "7cf4e7cf42d440d18360887fa4d7cdf59652fd6b6a236c612cf22afe14b41409",
"revision": 10,
"schemaVersion": 10,
"schemaInputChecksum": "9811550dfb225cd89362118cd649590d3d52f9388456aaf5aee082c2399bfc5b",
"runtimeContractChecksum": "44e98417f57e308e66e32fc306b3ba5793ae1140ed0465531315380970c57e4d",
"implementationManifestChecksum": "f25647d2dd90e14d6226683d2ff67ba32132b2dfdeb861015805240a96d4635b"
});

View File

@@ -83,10 +83,10 @@ export const SaasActions = {
"actionChecksum": "3978a7ba9a3e0f91842031fd323ec63b3816eef68cb8dc82ffad6d187de8b7ea",
"outputChecksum": "fe644424ef6a9e462b56edc9f70f48bb218783c69469469d4310de48589a0df5",
"contractVersion": 1,
"providerReleaseId": 50,
"providerReleaseId": 59,
"consumerModuleCode": "order",
"providerModuleCode": "demo",
"providerReleaseVersion": "1.0.5-rc.6"
"providerReleaseVersion": "1.0.10-rc.10"
}),
GoodsReleaseStock: defineInjectedSaasAction<DemoGoodsReleaseStockInput, DemoGoodsReleaseStockOutput>({
"kind": "action",
@@ -148,10 +148,10 @@ export const SaasActions = {
"outputChecksum": "a632b9f89518c3c17861454b74173a4880d5e8482639d3ff7f761aee4d061bd9",
"contractVersion": 1,
"commandEventType": "saas.workflow.demo.goods.releaseStock",
"providerReleaseId": 50,
"providerReleaseId": 59,
"consumerModuleCode": "order",
"providerModuleCode": "demo",
"providerReleaseVersion": "1.0.5-rc.6",
"providerReleaseVersion": "1.0.10-rc.10",
"commandEventContractChecksum": "18a727b91cf9410c3b7ac14e3a8799dbbfa8937f84667bfe7e31e21e662396be"
}),
GoodsReserveStock: defineInjectedSaasAction<DemoGoodsReserveStockInput, DemoGoodsReserveStockOutput>({
@@ -208,10 +208,10 @@ export const SaasActions = {
"outputChecksum": "545bd8b0bf6eb8670b21497236038187ee0f1df1544a318b16a399458fcb796e",
"contractVersion": 1,
"commandEventType": "saas.workflow.demo.goods.reserveStock",
"providerReleaseId": 50,
"providerReleaseId": 59,
"consumerModuleCode": "order",
"providerModuleCode": "demo",
"providerReleaseVersion": "1.0.5-rc.6",
"providerReleaseVersion": "1.0.10-rc.10",
"commandEventContractChecksum": "ffbecad3a3d63b8bf92fde701dfaa11c8502a2c5f9f6bbb89b755e214024c3ae"
})
}

View File

@@ -1,11 +1,11 @@
{
"manifestVersion": 1,
"moduleCode": "order",
"revision": 6,
"revision": 10,
"schemaChecksum": null,
"schemaInputChecksum": "18d11bb9ce859510f4a1830e1bdf00182da78acfd305262eed05c7e9358d0143",
"schemaInputChecksum": "9811550dfb225cd89362118cd649590d3d52f9388456aaf5aee082c2399bfc5b",
"actionManifestChecksum": null,
"runtimeContractChecksum": "7cf4e7cf42d440d18360887fa4d7cdf59652fd6b6a236c612cf22afe14b41409",
"runtimeContractChecksum": "44e98417f57e308e66e32fc306b3ba5793ae1140ed0465531315380970c57e4d",
"implementationManifestChecksum": "f25647d2dd90e14d6226683d2ff67ba32132b2dfdeb861015805240a96d4635b",
"actions": [
"OrdersAdd",
@@ -50,7 +50,7 @@
"list",
"page"
],
"descriptorChecksum": "b4b4c2c624d655282f336f4758e6d057082541502dfd0099ca0f520f75d973fd",
"descriptorChecksum": "9748697d1a60b5e0957fb58c62a8564c997397007d15a6d35b783fceee178e97",
"actions": {
"add": "OrdersAdd",
"delete": "OrdersDelete",
@@ -95,6 +95,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -105,7 +112,7 @@
"amount"
]
},
"inputChecksum": "bbaa3690f78676aeed57b00951cd36a1ae2a82c4afeb86911040fdae86da53c9",
"inputChecksum": "1a63df8bd8a0a663d853603eac460eb419f44131f9ca1de36c9d91925c03c95f",
"outputSchema": {
"type": "object",
"additionalProperties": false,
@@ -136,6 +143,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -148,7 +162,7 @@
"status"
]
},
"outputChecksum": "9621cab591356c44012f30c8ba2209b1c62ad4834e1b90b8899420ad1ab1721e",
"outputChecksum": "a1214f4132a2d2897384694e7f3bb8fc2c436cd6ed1d2d8f09c7515bb76538d1",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:add"
@@ -162,6 +176,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -487,6 +502,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -499,7 +521,7 @@
"status"
]
},
"outputChecksum": "9621cab591356c44012f30c8ba2209b1c62ad4834e1b90b8899420ad1ab1721e",
"outputChecksum": "a1214f4132a2d2897384694e7f3bb8fc2c436cd6ed1d2d8f09c7515bb76538d1",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:info"
@@ -513,6 +535,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -640,6 +663,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -653,7 +683,7 @@
]
}
},
"outputChecksum": "040ec4e29e6999ab8ce2e1d9ebe4d4a5b1c09e805c10870401dbb273c9a8c9bc",
"outputChecksum": "a02a513155bd8cbf6dc15471919a77f076e6225975e07a90285763bd3b481661",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:list"
@@ -667,6 +697,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -802,6 +833,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -845,7 +883,7 @@
"pagination"
]
},
"outputChecksum": "14efb96cade110fc8fef771fb439845b0892d169d9f26f0be10127b547262877",
"outputChecksum": "9b8f0c856c1dec532d601d56a84c8267f591ff82b89d5750df62d6104271eeb7",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:page"
@@ -859,6 +897,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -905,6 +944,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -912,7 +958,7 @@
],
"minProperties": 2
},
"inputChecksum": "437195e38df6988a131ad09b0b7ee089108857a4795c75aba395d077255676fc",
"inputChecksum": "acf0b47a3dd2bb4dc9f7e87399f8e0fd2300391230886283588204ba9b8c8e4c",
"outputSchema": {
"type": "object",
"additionalProperties": false,
@@ -940,6 +986,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],

View File

@@ -1,13 +1,13 @@
{
"formatVersion": 2,
"moduleCode": "order",
"revision": 6,
"revision": 10,
"releaseVersion": null,
"schemaVersion": 6,
"schemaInputChecksum": "18d11bb9ce859510f4a1830e1bdf00182da78acfd305262eed05c7e9358d0143",
"schemaVersion": 10,
"schemaInputChecksum": "9811550dfb225cd89362118cd649590d3d52f9388456aaf5aee082c2399bfc5b",
"schemaChecksum": null,
"actionManifestChecksum": null,
"runtimeContractChecksum": "7cf4e7cf42d440d18360887fa4d7cdf59652fd6b6a236c612cf22afe14b41409",
"runtimeContractChecksum": "44e98417f57e308e66e32fc306b3ba5793ae1140ed0465531315380970c57e4d",
"implementationManifestChecksum": "f25647d2dd90e14d6226683d2ff67ba32132b2dfdeb861015805240a96d4635b",
"models": [
{
@@ -85,6 +85,16 @@
"writable": true,
"filterable": true,
"sortable": true
},
{
"code": "remark",
"type": "varchar",
"nullable": true,
"primary": false,
"readable": true,
"writable": true,
"filterable": false,
"sortable": false
}
]
}
@@ -175,6 +185,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -185,7 +202,7 @@
"amount"
]
},
"inputChecksum": "bbaa3690f78676aeed57b00951cd36a1ae2a82c4afeb86911040fdae86da53c9",
"inputChecksum": "1a63df8bd8a0a663d853603eac460eb419f44131f9ca1de36c9d91925c03c95f",
"outputSchema": {
"type": "object",
"additionalProperties": false,
@@ -216,6 +233,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -228,7 +252,7 @@
"status"
]
},
"outputChecksum": "9621cab591356c44012f30c8ba2209b1c62ad4834e1b90b8899420ad1ab1721e",
"outputChecksum": "a1214f4132a2d2897384694e7f3bb8fc2c436cd6ed1d2d8f09c7515bb76538d1",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:add"
@@ -242,6 +266,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -308,6 +333,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -318,7 +350,7 @@
"amount"
]
},
"inputChecksum": "bbaa3690f78676aeed57b00951cd36a1ae2a82c4afeb86911040fdae86da53c9",
"inputChecksum": "1a63df8bd8a0a663d853603eac460eb419f44131f9ca1de36c9d91925c03c95f",
"outputSchema": {
"type": "object",
"additionalProperties": false,
@@ -349,6 +381,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -361,7 +400,7 @@
"status"
]
},
"outputChecksum": "9621cab591356c44012f30c8ba2209b1c62ad4834e1b90b8899420ad1ab1721e",
"outputChecksum": "a1214f4132a2d2897384694e7f3bb8fc2c436cd6ed1d2d8f09c7515bb76538d1",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:add"
@@ -375,6 +414,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -945,6 +985,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -957,7 +1004,7 @@
"status"
]
},
"outputChecksum": "9621cab591356c44012f30c8ba2209b1c62ad4834e1b90b8899420ad1ab1721e",
"outputChecksum": "a1214f4132a2d2897384694e7f3bb8fc2c436cd6ed1d2d8f09c7515bb76538d1",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:info"
@@ -971,6 +1018,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -1028,6 +1076,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -1040,7 +1095,7 @@
"status"
]
},
"outputChecksum": "9621cab591356c44012f30c8ba2209b1c62ad4834e1b90b8899420ad1ab1721e",
"outputChecksum": "a1214f4132a2d2897384694e7f3bb8fc2c436cd6ed1d2d8f09c7515bb76538d1",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:info"
@@ -1054,6 +1109,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -1184,6 +1240,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -1197,7 +1260,7 @@
]
}
},
"outputChecksum": "040ec4e29e6999ab8ce2e1d9ebe4d4a5b1c09e805c10870401dbb273c9a8c9bc",
"outputChecksum": "a02a513155bd8cbf6dc15471919a77f076e6225975e07a90285763bd3b481661",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:list"
@@ -1211,6 +1274,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -1336,6 +1400,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -1349,7 +1420,7 @@
]
}
},
"outputChecksum": "040ec4e29e6999ab8ce2e1d9ebe4d4a5b1c09e805c10870401dbb273c9a8c9bc",
"outputChecksum": "a02a513155bd8cbf6dc15471919a77f076e6225975e07a90285763bd3b481661",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:list"
@@ -1363,6 +1434,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -1501,6 +1573,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -1544,7 +1623,7 @@
"pagination"
]
},
"outputChecksum": "14efb96cade110fc8fef771fb439845b0892d169d9f26f0be10127b547262877",
"outputChecksum": "9b8f0c856c1dec532d601d56a84c8267f591ff82b89d5750df62d6104271eeb7",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:page"
@@ -1558,6 +1637,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -1691,6 +1771,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -1734,7 +1821,7 @@
"pagination"
]
},
"outputChecksum": "14efb96cade110fc8fef771fb439845b0892d169d9f26f0be10127b547262877",
"outputChecksum": "9b8f0c856c1dec532d601d56a84c8267f591ff82b89d5750df62d6104271eeb7",
"callerPolicy": {
"kind": "permission",
"permission": "order:orders:page"
@@ -1748,6 +1835,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -1797,6 +1885,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -1804,7 +1899,7 @@
],
"minProperties": 2
},
"inputChecksum": "437195e38df6988a131ad09b0b7ee089108857a4795c75aba395d077255676fc",
"inputChecksum": "acf0b47a3dd2bb4dc9f7e87399f8e0fd2300391230886283588204ba9b8c8e4c",
"outputSchema": {
"type": "object",
"additionalProperties": false,
@@ -1832,6 +1927,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -1902,6 +1998,13 @@
"status": {
"type": "string",
"maxLength": 24
},
"remark": {
"type": [
"string",
"null"
],
"maxLength": 500
}
},
"required": [
@@ -1909,7 +2012,7 @@
],
"minProperties": 2
},
"inputChecksum": "437195e38df6988a131ad09b0b7ee089108857a4795c75aba395d077255676fc",
"inputChecksum": "acf0b47a3dd2bb4dc9f7e87399f8e0fd2300391230886283588204ba9b8c8e4c",
"outputSchema": {
"type": "object",
"additionalProperties": false,
@@ -1937,6 +2040,7 @@
"id",
"order_no",
"quantity",
"remark",
"status",
"unit_price"
],
@@ -2031,10 +2135,10 @@
"actionChecksum": "3978a7ba9a3e0f91842031fd323ec63b3816eef68cb8dc82ffad6d187de8b7ea",
"outputChecksum": "fe644424ef6a9e462b56edc9f70f48bb218783c69469469d4310de48589a0df5",
"contractVersion": 1,
"providerReleaseId": 50,
"providerReleaseId": 59,
"consumerModuleCode": "order",
"providerModuleCode": "demo",
"providerReleaseVersion": "1.0.5-rc.6"
"providerReleaseVersion": "1.0.10-rc.10"
}
},
{
@@ -2101,10 +2205,10 @@
"outputChecksum": "a632b9f89518c3c17861454b74173a4880d5e8482639d3ff7f761aee4d061bd9",
"contractVersion": 1,
"commandEventType": "saas.workflow.demo.goods.releaseStock",
"providerReleaseId": 50,
"providerReleaseId": 59,
"consumerModuleCode": "order",
"providerModuleCode": "demo",
"providerReleaseVersion": "1.0.5-rc.6",
"providerReleaseVersion": "1.0.10-rc.10",
"commandEventContractChecksum": "18a727b91cf9410c3b7ac14e3a8799dbbfa8937f84667bfe7e31e21e662396be"
}
},
@@ -2166,10 +2270,10 @@
"outputChecksum": "545bd8b0bf6eb8670b21497236038187ee0f1df1544a318b16a399458fcb796e",
"contractVersion": 1,
"commandEventType": "saas.workflow.demo.goods.reserveStock",
"providerReleaseId": 50,
"providerReleaseId": 59,
"consumerModuleCode": "order",
"providerModuleCode": "demo",
"providerReleaseVersion": "1.0.5-rc.6",
"providerReleaseVersion": "1.0.10-rc.10",
"commandEventContractChecksum": "ffbecad3a3d63b8bf92fde701dfaa11c8502a2c5f9f6bbb89b755e214024c3ae"
}
}
@@ -2209,8 +2313,8 @@
},
"additionalProperties": false
},
"providerReleaseId": 50,
"providerReleaseVersion": "1.0.5-rc.6"
"providerReleaseId": 59,
"providerReleaseVersion": "1.0.10-rc.10"
}
],
"crud": [
@@ -2225,7 +2329,7 @@
"list",
"page"
],
"descriptorChecksum": "b4b4c2c624d655282f336f4758e6d057082541502dfd0099ca0f520f75d973fd",
"descriptorChecksum": "9748697d1a60b5e0957fb58c62a8564c997397007d15a6d35b783fceee178e97",
"actions": {
"add": "OrdersAdd",
"delete": "OrdersDelete",