vona-module-test-vona 5.0.53 → 5.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.metadata/index.d.ts +70 -6
- package/dist/bean/serializerTransform.email.d.ts +10 -0
- package/dist/controller/post.d.ts +6 -2
- package/dist/controller/serializer.d.ts +12 -0
- package/dist/dto/postAggregate.d.ts +13 -0
- package/dist/dto/postGroup.d.ts +12 -0
- package/dist/dto/serializerArray.d.ts +8 -0
- package/dist/dto/serializerLazy.d.ts +8 -0
- package/dist/dto/serializerSimple.d.ts +19 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +728 -476
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/serializer.d.ts +1 -0
- package/dist/service/post.d.ts +2 -2
- package/package.json +1 -1
- package/src/.metadata/index.ts +87 -6
- package/src/bean/serializerTransform.email.ts +28 -0
- package/src/controller/post.ts +29 -1
- package/src/controller/serializer.ts +38 -0
- package/src/dto/postAggregate.ts +16 -0
- package/src/dto/postGroup.ts +13 -0
- package/src/dto/serializerArray.ts +29 -0
- package/src/dto/serializerLazy.ts +32 -0
- package/src/dto/serializerSimple.ts +98 -0
- package/src/index.ts +1 -0
- package/src/lib/index.ts +1 -0
- package/src/lib/serializer.ts +9 -0
- package/test/serializer.test.ts +64 -0
- package/dist/dto/serializerTest.d.ts +0 -6
- package/src/dto/serializerTest.ts +0 -13
package/dist/index.js
CHANGED
|
@@ -13,10 +13,10 @@ import { Event, BeanEventBase, EventListener } from 'vona-module-a-event';
|
|
|
13
13
|
import { Meta } from 'vona-module-a-meta';
|
|
14
14
|
import { Queue, BeanQueueBase } from 'vona-module-a-queue';
|
|
15
15
|
import { Schedule } from 'vona-module-a-schedule';
|
|
16
|
+
import { SerializerTransform, Serializer } from 'vona-module-a-serialization';
|
|
16
17
|
import { SummerCache, BeanSummerCacheBase } from 'vona-module-a-summer';
|
|
17
18
|
import { Dto, Controller, Web, Arg } from 'vona-module-a-web';
|
|
18
19
|
import z, { z as z$1 } from 'zod';
|
|
19
|
-
import { Serializer } from 'vona-module-a-serialization';
|
|
20
20
|
import { Passport } from 'vona-module-a-user';
|
|
21
21
|
import { sleep } from '@cabloy/utils';
|
|
22
22
|
import { Captcha } from 'vona-module-a-captcha';
|
|
@@ -24,15 +24,15 @@ import { Core } from 'vona-module-a-core';
|
|
|
24
24
|
import { DtoJwtToken } from 'vona-module-a-jwt';
|
|
25
25
|
import { File, SymbolUploadValue } from 'vona-module-a-upload';
|
|
26
26
|
|
|
27
|
-
var _dec$
|
|
28
|
-
let AopRegExp = (_dec$
|
|
27
|
+
var _dec$1q, _dec2$1q, _class$1q;
|
|
28
|
+
let AopRegExp = (_dec$1q = Aop({
|
|
29
29
|
match: [/^test-vona\.service\.test\w+$/, 'testCtx'],
|
|
30
30
|
meta: {
|
|
31
31
|
mode: 'test'
|
|
32
32
|
}
|
|
33
|
-
}), _dec2$
|
|
33
|
+
}), _dec2$1q = BeanInfo({
|
|
34
34
|
module: "test-vona"
|
|
35
|
-
}), _dec$
|
|
35
|
+
}), _dec$1q(_class$1q = _dec2$1q(_class$1q = class AopRegExp extends BeanAopBase {
|
|
36
36
|
__get_name__(next) {
|
|
37
37
|
const value = next();
|
|
38
38
|
return `${value}:regexpaop`;
|
|
@@ -54,24 +54,24 @@ let AopRegExp = (_dec$1k = Aop({
|
|
|
54
54
|
const result = await next();
|
|
55
55
|
return `${result}:regexpaop`;
|
|
56
56
|
}
|
|
57
|
-
}) || _class$
|
|
57
|
+
}) || _class$1q) || _class$1q);
|
|
58
58
|
|
|
59
|
-
var _dec$
|
|
59
|
+
var _dec$1p, _dec2$1p, _class$1p;
|
|
60
60
|
class AopSimpleBase extends BeanAopBase {
|
|
61
61
|
actionSync(_args, next) {
|
|
62
62
|
const result = next();
|
|
63
63
|
return `${result}:simpleaop`;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
let AopSimple = (_dec$
|
|
66
|
+
let AopSimple = (_dec$1p = Aop({
|
|
67
67
|
match: 'testCtx',
|
|
68
68
|
dependencies: 'test-vona:regExp',
|
|
69
69
|
meta: {
|
|
70
70
|
mode: 'test'
|
|
71
71
|
}
|
|
72
|
-
}), _dec2$
|
|
72
|
+
}), _dec2$1p = BeanInfo({
|
|
73
73
|
module: "test-vona"
|
|
74
|
-
}), _dec$
|
|
74
|
+
}), _dec$1p(_class$1p = _dec2$1p(_class$1p = class AopSimple extends AopSimpleBase {
|
|
75
75
|
// magic
|
|
76
76
|
__get__(prop, next) {
|
|
77
77
|
const value = next();
|
|
@@ -111,14 +111,14 @@ let AopSimple = (_dec$1j = Aop({
|
|
|
111
111
|
const result = await next();
|
|
112
112
|
return `${result}:simpleaop`;
|
|
113
113
|
}
|
|
114
|
-
}) || _class$
|
|
114
|
+
}) || _class$1p) || _class$1p);
|
|
115
115
|
|
|
116
|
-
var _dec$
|
|
117
|
-
let AopMethodTest = (_dec$
|
|
116
|
+
var _dec$1o, _dec2$1o, _class$1o;
|
|
117
|
+
let AopMethodTest = (_dec$1o = AopMethod({
|
|
118
118
|
wrapper: ''
|
|
119
|
-
}), _dec2$
|
|
119
|
+
}), _dec2$1o = BeanInfo({
|
|
120
120
|
module: "test-vona"
|
|
121
|
-
}), _dec$
|
|
121
|
+
}), _dec$1o(_class$1o = _dec2$1o(_class$1o = class AopMethodTest extends BeanAopMethodBase {
|
|
122
122
|
get(options, next, _receiver, _prop) {
|
|
123
123
|
const res = next();
|
|
124
124
|
return this._wrapper(options.wrapper, res);
|
|
@@ -145,7 +145,7 @@ let AopMethodTest = (_dec$1i = AopMethod({
|
|
|
145
145
|
if (index === data.length - wrapper.length) data = data.substring(0, index);
|
|
146
146
|
return data;
|
|
147
147
|
}
|
|
148
|
-
}) || _class$
|
|
148
|
+
}) || _class$1o) || _class$1o);
|
|
149
149
|
|
|
150
150
|
function _applyDecoratedDescriptor(i, e, r, n, l) {
|
|
151
151
|
var a = {};
|
|
@@ -164,251 +164,251 @@ function _initializerDefineProperty(e, i, r, l) {
|
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
var _dec$
|
|
168
|
-
let EntityCategory = (_dec$
|
|
167
|
+
var _dec$1n, _dec2$1n, _dec3$E, _dec4$E, _dec5$A, _dec6$z, _class$1n, _class2$E, _descriptor$j, _descriptor2$f;
|
|
168
|
+
let EntityCategory = (_dec$1n = Entity('testVonaCategory'), _dec2$1n = BeanInfo({
|
|
169
169
|
module: "test-vona"
|
|
170
|
-
}), _dec3$
|
|
170
|
+
}), _dec3$E = Api.field(), _dec4$E = Reflect.metadata("design:type", String), _dec5$A = Api.field(v.optional(), v.tableIdentity()), _dec6$z = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$1n(_class$1n = _dec2$1n(_class$1n = (_class2$E = class EntityCategory extends EntityBase {
|
|
171
171
|
constructor(...args) {
|
|
172
172
|
super(...args);
|
|
173
|
-
_initializerDefineProperty(this, "name", _descriptor$
|
|
174
|
-
_initializerDefineProperty(this, "categoryIdParent", _descriptor2$
|
|
173
|
+
_initializerDefineProperty(this, "name", _descriptor$j, this);
|
|
174
|
+
_initializerDefineProperty(this, "categoryIdParent", _descriptor2$f, this);
|
|
175
175
|
}
|
|
176
|
-
}, _descriptor$
|
|
176
|
+
}, _descriptor$j = _applyDecoratedDescriptor(_class2$E.prototype, "name", [_dec3$E, _dec4$E], {
|
|
177
177
|
configurable: true,
|
|
178
178
|
enumerable: true,
|
|
179
179
|
writable: true,
|
|
180
180
|
initializer: null
|
|
181
|
-
}), _descriptor2$
|
|
181
|
+
}), _descriptor2$f = _applyDecoratedDescriptor(_class2$E.prototype, "categoryIdParent", [_dec5$A, _dec6$z], {
|
|
182
182
|
configurable: true,
|
|
183
183
|
enumerable: true,
|
|
184
184
|
writable: true,
|
|
185
185
|
initializer: null
|
|
186
|
-
}), _class2$
|
|
186
|
+
}), _class2$E)) || _class$1n) || _class$1n);
|
|
187
187
|
|
|
188
|
-
var _dec$
|
|
189
|
-
let EntityOrder = (_dec$
|
|
188
|
+
var _dec$1m, _dec2$1m, _dec3$D, _dec4$D, _dec5$z, _dec6$y, _dec7$s, _dec8$o, _class$1m, _class2$D, _descriptor$i, _descriptor2$e, _descriptor3$8;
|
|
189
|
+
let EntityOrder = (_dec$1m = Entity('testVonaOrder', {
|
|
190
190
|
openapi: {
|
|
191
191
|
title: $locale('Order')
|
|
192
192
|
}
|
|
193
|
-
}), _dec2$
|
|
193
|
+
}), _dec2$1m = BeanInfo({
|
|
194
194
|
module: "test-vona"
|
|
195
|
-
}), _dec3$
|
|
195
|
+
}), _dec3$D = Api.field(v.openapi({
|
|
196
196
|
title: $locale('OrderNo')
|
|
197
|
-
}), v.default(''), v.min(3)), _dec4$
|
|
197
|
+
}), v.default(''), v.min(3)), _dec4$D = Reflect.metadata("design:type", String), _dec5$z = Api.field(v.openapi({
|
|
198
198
|
title: $locale('Remark')
|
|
199
|
-
}), v.optional()), _dec6$
|
|
199
|
+
}), v.optional()), _dec6$y = Reflect.metadata("design:type", String), _dec7$s = Api.field(v.tableIdentity()), _dec8$o = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$1m(_class$1m = _dec2$1m(_class$1m = (_class2$D = class EntityOrder extends EntityBase {
|
|
200
200
|
constructor(...args) {
|
|
201
201
|
super(...args);
|
|
202
|
-
_initializerDefineProperty(this, "orderNo", _descriptor$
|
|
203
|
-
_initializerDefineProperty(this, "remark", _descriptor2$
|
|
204
|
-
_initializerDefineProperty(this, "userId", _descriptor3$
|
|
202
|
+
_initializerDefineProperty(this, "orderNo", _descriptor$i, this);
|
|
203
|
+
_initializerDefineProperty(this, "remark", _descriptor2$e, this);
|
|
204
|
+
_initializerDefineProperty(this, "userId", _descriptor3$8, this);
|
|
205
205
|
}
|
|
206
|
-
}, _descriptor$
|
|
206
|
+
}, _descriptor$i = _applyDecoratedDescriptor(_class2$D.prototype, "orderNo", [_dec3$D, _dec4$D], {
|
|
207
207
|
configurable: true,
|
|
208
208
|
enumerable: true,
|
|
209
209
|
writable: true,
|
|
210
210
|
initializer: null
|
|
211
|
-
}), _descriptor2$
|
|
211
|
+
}), _descriptor2$e = _applyDecoratedDescriptor(_class2$D.prototype, "remark", [_dec5$z, _dec6$y], {
|
|
212
212
|
configurable: true,
|
|
213
213
|
enumerable: true,
|
|
214
214
|
writable: true,
|
|
215
215
|
initializer: null
|
|
216
|
-
}), _descriptor3$
|
|
216
|
+
}), _descriptor3$8 = _applyDecoratedDescriptor(_class2$D.prototype, "userId", [_dec7$s, _dec8$o], {
|
|
217
217
|
configurable: true,
|
|
218
218
|
enumerable: true,
|
|
219
219
|
writable: true,
|
|
220
220
|
initializer: null
|
|
221
|
-
}), _class2$
|
|
221
|
+
}), _class2$D)) || _class$1m) || _class$1m);
|
|
222
222
|
|
|
223
|
-
var _dec$
|
|
224
|
-
let EntityPost = (_dec$
|
|
223
|
+
var _dec$1l, _dec2$1l, _dec3$C, _dec4$C, _dec5$y, _dec6$x, _dec7$r, _dec8$n, _class$1l, _class2$C, _descriptor$h, _descriptor2$d, _descriptor3$7;
|
|
224
|
+
let EntityPost = (_dec$1l = Entity('testVonaPost'), _dec2$1l = BeanInfo({
|
|
225
225
|
module: "test-vona"
|
|
226
|
-
}), _dec3$
|
|
226
|
+
}), _dec3$C = Api.field(), _dec4$C = Reflect.metadata("design:type", String), _dec5$y = Api.field(v.tableIdentity()), _dec6$x = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec7$r = Api.field(v.optional()), _dec8$n = Reflect.metadata("design:type", Number), _dec$1l(_class$1l = _dec2$1l(_class$1l = (_class2$C = class EntityPost extends EntityBase {
|
|
227
227
|
constructor(...args) {
|
|
228
228
|
super(...args);
|
|
229
|
-
_initializerDefineProperty(this, "title", _descriptor$
|
|
230
|
-
_initializerDefineProperty(this, "userId", _descriptor2$
|
|
231
|
-
_initializerDefineProperty(this, "stars", _descriptor3$
|
|
229
|
+
_initializerDefineProperty(this, "title", _descriptor$h, this);
|
|
230
|
+
_initializerDefineProperty(this, "userId", _descriptor2$d, this);
|
|
231
|
+
_initializerDefineProperty(this, "stars", _descriptor3$7, this);
|
|
232
232
|
}
|
|
233
|
-
}, _descriptor$
|
|
233
|
+
}, _descriptor$h = _applyDecoratedDescriptor(_class2$C.prototype, "title", [_dec3$C, _dec4$C], {
|
|
234
234
|
configurable: true,
|
|
235
235
|
enumerable: true,
|
|
236
236
|
writable: true,
|
|
237
237
|
initializer: null
|
|
238
|
-
}), _descriptor2$
|
|
238
|
+
}), _descriptor2$d = _applyDecoratedDescriptor(_class2$C.prototype, "userId", [_dec5$y, _dec6$x], {
|
|
239
239
|
configurable: true,
|
|
240
240
|
enumerable: true,
|
|
241
241
|
writable: true,
|
|
242
242
|
initializer: null
|
|
243
|
-
}), _descriptor3$
|
|
243
|
+
}), _descriptor3$7 = _applyDecoratedDescriptor(_class2$C.prototype, "stars", [_dec7$r, _dec8$n], {
|
|
244
244
|
configurable: true,
|
|
245
245
|
enumerable: true,
|
|
246
246
|
writable: true,
|
|
247
247
|
initializer: null
|
|
248
|
-
}), _class2$
|
|
248
|
+
}), _class2$C)) || _class$1l) || _class$1l);
|
|
249
249
|
|
|
250
|
-
var _dec$
|
|
251
|
-
let EntityPostContent = (_dec$
|
|
250
|
+
var _dec$1k, _dec2$1k, _dec3$B, _dec4$B, _dec5$x, _dec6$w, _class$1k, _class2$B, _descriptor$g, _descriptor2$c;
|
|
251
|
+
let EntityPostContent = (_dec$1k = Entity('testVonaPostContent'), _dec2$1k = BeanInfo({
|
|
252
252
|
module: "test-vona"
|
|
253
|
-
}), _dec3$
|
|
253
|
+
}), _dec3$B = Api.field(), _dec4$B = Reflect.metadata("design:type", String), _dec5$x = Api.field(v.tableIdentity()), _dec6$w = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$1k(_class$1k = _dec2$1k(_class$1k = (_class2$B = class EntityPostContent extends EntityBase {
|
|
254
254
|
constructor(...args) {
|
|
255
255
|
super(...args);
|
|
256
|
-
_initializerDefineProperty(this, "content", _descriptor$
|
|
257
|
-
_initializerDefineProperty(this, "postId", _descriptor2$
|
|
256
|
+
_initializerDefineProperty(this, "content", _descriptor$g, this);
|
|
257
|
+
_initializerDefineProperty(this, "postId", _descriptor2$c, this);
|
|
258
258
|
}
|
|
259
|
-
}, _descriptor$
|
|
259
|
+
}, _descriptor$g = _applyDecoratedDescriptor(_class2$B.prototype, "content", [_dec3$B, _dec4$B], {
|
|
260
260
|
configurable: true,
|
|
261
261
|
enumerable: true,
|
|
262
262
|
writable: true,
|
|
263
263
|
initializer: null
|
|
264
|
-
}), _descriptor2$
|
|
264
|
+
}), _descriptor2$c = _applyDecoratedDescriptor(_class2$B.prototype, "postId", [_dec5$x, _dec6$w], {
|
|
265
265
|
configurable: true,
|
|
266
266
|
enumerable: true,
|
|
267
267
|
writable: true,
|
|
268
268
|
initializer: null
|
|
269
|
-
}), _class2$
|
|
269
|
+
}), _class2$B)) || _class$1k) || _class$1k);
|
|
270
270
|
|
|
271
|
-
var _dec$
|
|
272
|
-
let EntityProduct = (_dec$
|
|
271
|
+
var _dec$1j, _dec2$1j, _dec3$A, _dec4$A, _dec5$w, _dec6$v, _dec7$q, _dec8$m, _dec9$e, _dec0$e, _dec1$e, _dec10$c, _class$1j, _class2$A, _descriptor$f, _descriptor2$b, _descriptor3$6, _descriptor4$1, _descriptor5$1;
|
|
272
|
+
let EntityProduct = (_dec$1j = Entity('testVonaProduct', {
|
|
273
273
|
independent: true
|
|
274
|
-
}), _dec2$
|
|
274
|
+
}), _dec2$1j = BeanInfo({
|
|
275
275
|
module: "test-vona"
|
|
276
|
-
}), _dec3$
|
|
276
|
+
}), _dec3$A = Api.field(v.openapi({
|
|
277
277
|
title: $locale('Name')
|
|
278
|
-
})), _dec4$
|
|
278
|
+
})), _dec4$A = Reflect.metadata("design:type", String), _dec5$w = Api.field(v.title($locale('Price'))), _dec6$v = Reflect.metadata("design:type", Number), _dec7$q = Api.field(v.title($locale('Quantity'))), _dec8$m = Reflect.metadata("design:type", Number), _dec9$e = Api.field(v.title($locale('Amount'))), _dec0$e = Reflect.metadata("design:type", Number), _dec1$e = Api.field(v.tableIdentity()), _dec10$c = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$1j(_class$1j = _dec2$1j(_class$1j = (_class2$A = class EntityProduct extends EntityBase {
|
|
279
279
|
constructor(...args) {
|
|
280
280
|
super(...args);
|
|
281
|
-
_initializerDefineProperty(this, "name", _descriptor$
|
|
282
|
-
_initializerDefineProperty(this, "price", _descriptor2$
|
|
283
|
-
_initializerDefineProperty(this, "quantity", _descriptor3$
|
|
284
|
-
_initializerDefineProperty(this, "amount", _descriptor4, this);
|
|
285
|
-
_initializerDefineProperty(this, "orderId", _descriptor5, this);
|
|
281
|
+
_initializerDefineProperty(this, "name", _descriptor$f, this);
|
|
282
|
+
_initializerDefineProperty(this, "price", _descriptor2$b, this);
|
|
283
|
+
_initializerDefineProperty(this, "quantity", _descriptor3$6, this);
|
|
284
|
+
_initializerDefineProperty(this, "amount", _descriptor4$1, this);
|
|
285
|
+
_initializerDefineProperty(this, "orderId", _descriptor5$1, this);
|
|
286
286
|
}
|
|
287
|
-
}, _descriptor$
|
|
287
|
+
}, _descriptor$f = _applyDecoratedDescriptor(_class2$A.prototype, "name", [_dec3$A, _dec4$A], {
|
|
288
288
|
configurable: true,
|
|
289
289
|
enumerable: true,
|
|
290
290
|
writable: true,
|
|
291
291
|
initializer: null
|
|
292
|
-
}), _descriptor2$
|
|
292
|
+
}), _descriptor2$b = _applyDecoratedDescriptor(_class2$A.prototype, "price", [_dec5$w, _dec6$v], {
|
|
293
293
|
configurable: true,
|
|
294
294
|
enumerable: true,
|
|
295
295
|
writable: true,
|
|
296
296
|
initializer: null
|
|
297
|
-
}), _descriptor3$
|
|
297
|
+
}), _descriptor3$6 = _applyDecoratedDescriptor(_class2$A.prototype, "quantity", [_dec7$q, _dec8$m], {
|
|
298
298
|
configurable: true,
|
|
299
299
|
enumerable: true,
|
|
300
300
|
writable: true,
|
|
301
301
|
initializer: null
|
|
302
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class2$
|
|
302
|
+
}), _descriptor4$1 = _applyDecoratedDescriptor(_class2$A.prototype, "amount", [_dec9$e, _dec0$e], {
|
|
303
303
|
configurable: true,
|
|
304
304
|
enumerable: true,
|
|
305
305
|
writable: true,
|
|
306
306
|
initializer: null
|
|
307
|
-
}), _descriptor5 = _applyDecoratedDescriptor(_class2$
|
|
307
|
+
}), _descriptor5$1 = _applyDecoratedDescriptor(_class2$A.prototype, "orderId", [_dec1$e, _dec10$c], {
|
|
308
308
|
configurable: true,
|
|
309
309
|
enumerable: true,
|
|
310
310
|
writable: true,
|
|
311
311
|
initializer: null
|
|
312
|
-
}), _class2$
|
|
312
|
+
}), _class2$A)) || _class$1j) || _class$1j);
|
|
313
313
|
|
|
314
|
-
var _dec$
|
|
315
|
-
let EntityRole = (_dec$
|
|
314
|
+
var _dec$1i, _dec2$1i, _dec3$z, _dec4$z, _class$1i, _class2$z, _descriptor$e;
|
|
315
|
+
let EntityRole = (_dec$1i = Entity('testVonaRole'), _dec2$1i = BeanInfo({
|
|
316
316
|
module: "test-vona"
|
|
317
|
-
}), _dec3$
|
|
317
|
+
}), _dec3$z = Api.field(), _dec4$z = Reflect.metadata("design:type", String), _dec$1i(_class$1i = _dec2$1i(_class$1i = (_class2$z = class EntityRole extends EntityBase {
|
|
318
318
|
constructor(...args) {
|
|
319
319
|
super(...args);
|
|
320
|
-
_initializerDefineProperty(this, "name", _descriptor$
|
|
320
|
+
_initializerDefineProperty(this, "name", _descriptor$e, this);
|
|
321
321
|
}
|
|
322
|
-
}, _descriptor$
|
|
322
|
+
}, _descriptor$e = _applyDecoratedDescriptor(_class2$z.prototype, "name", [_dec3$z, _dec4$z], {
|
|
323
323
|
configurable: true,
|
|
324
324
|
enumerable: true,
|
|
325
325
|
writable: true,
|
|
326
326
|
initializer: null
|
|
327
|
-
}), _class2$
|
|
327
|
+
}), _class2$z)) || _class$1i) || _class$1i);
|
|
328
328
|
|
|
329
|
-
var _dec$
|
|
330
|
-
let EntityRoleUser = (_dec$
|
|
329
|
+
var _dec$1h, _dec2$1h, _dec3$y, _dec4$y, _dec5$v, _dec6$u, _class$1h, _class2$y, _descriptor$d, _descriptor2$a;
|
|
330
|
+
let EntityRoleUser = (_dec$1h = Entity('testVonaRoleUser'), _dec2$1h = BeanInfo({
|
|
331
331
|
module: "test-vona"
|
|
332
|
-
}), _dec3$
|
|
332
|
+
}), _dec3$y = Api.field(v.tableIdentity()), _dec4$y = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec5$v = Api.field(v.tableIdentity()), _dec6$u = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$1h(_class$1h = _dec2$1h(_class$1h = (_class2$y = class EntityRoleUser extends EntityBase {
|
|
333
333
|
constructor(...args) {
|
|
334
334
|
super(...args);
|
|
335
|
-
_initializerDefineProperty(this, "userId", _descriptor$
|
|
336
|
-
_initializerDefineProperty(this, "roleId", _descriptor2$
|
|
335
|
+
_initializerDefineProperty(this, "userId", _descriptor$d, this);
|
|
336
|
+
_initializerDefineProperty(this, "roleId", _descriptor2$a, this);
|
|
337
337
|
}
|
|
338
|
-
}, _descriptor$
|
|
338
|
+
}, _descriptor$d = _applyDecoratedDescriptor(_class2$y.prototype, "userId", [_dec3$y, _dec4$y], {
|
|
339
339
|
configurable: true,
|
|
340
340
|
enumerable: true,
|
|
341
341
|
writable: true,
|
|
342
342
|
initializer: null
|
|
343
|
-
}), _descriptor2$
|
|
343
|
+
}), _descriptor2$a = _applyDecoratedDescriptor(_class2$y.prototype, "roleId", [_dec5$v, _dec6$u], {
|
|
344
344
|
configurable: true,
|
|
345
345
|
enumerable: true,
|
|
346
346
|
writable: true,
|
|
347
347
|
initializer: null
|
|
348
|
-
}), _class2$
|
|
348
|
+
}), _class2$y)) || _class$1h) || _class$1h);
|
|
349
349
|
|
|
350
|
-
var _dec$
|
|
351
|
-
let EntityTest = (_dec$
|
|
350
|
+
var _dec$1g, _dec2$1g, _dec3$x, _dec4$x, _dec5$u, _dec6$t, _dec7$p, _dec8$l, _class$1g, _class2$x, _descriptor$c, _descriptor2$9, _descriptor3$5;
|
|
351
|
+
let EntityTest = (_dec$1g = Entity('testVonaTest', {
|
|
352
352
|
openapi: {
|
|
353
353
|
title: $locale('Test')
|
|
354
354
|
}
|
|
355
|
-
}), _dec2$
|
|
355
|
+
}), _dec2$1g = BeanInfo({
|
|
356
356
|
module: "test-vona"
|
|
357
|
-
}), _dec3$
|
|
357
|
+
}), _dec3$x = Api.field(v.title($locale('Test'))), _dec4$x = Reflect.metadata("design:type", String), _dec5$u = Api.field(), _dec6$t = Reflect.metadata("design:type", String), _dec7$p = Api.field(v.default(() => {
|
|
358
358
|
return new Date();
|
|
359
|
-
})), _dec8$
|
|
359
|
+
})), _dec8$l = Reflect.metadata("design:type", typeof Date === "undefined" ? Object : Date), _dec$1g(_class$1g = _dec2$1g(_class$1g = (_class2$x = class EntityTest extends EntityBase {
|
|
360
360
|
constructor(...args) {
|
|
361
361
|
super(...args);
|
|
362
|
-
_initializerDefineProperty(this, "title", _descriptor$
|
|
363
|
-
_initializerDefineProperty(this, "description", _descriptor2$
|
|
364
|
-
_initializerDefineProperty(this, "testDate", _descriptor3$
|
|
362
|
+
_initializerDefineProperty(this, "title", _descriptor$c, this);
|
|
363
|
+
_initializerDefineProperty(this, "description", _descriptor2$9, this);
|
|
364
|
+
_initializerDefineProperty(this, "testDate", _descriptor3$5, this);
|
|
365
365
|
}
|
|
366
|
-
}, _descriptor$
|
|
366
|
+
}, _descriptor$c = _applyDecoratedDescriptor(_class2$x.prototype, "title", [_dec3$x, _dec4$x], {
|
|
367
367
|
configurable: true,
|
|
368
368
|
enumerable: true,
|
|
369
369
|
writable: true,
|
|
370
370
|
initializer: null
|
|
371
|
-
}), _descriptor2$
|
|
371
|
+
}), _descriptor2$9 = _applyDecoratedDescriptor(_class2$x.prototype, "description", [_dec5$u, _dec6$t], {
|
|
372
372
|
configurable: true,
|
|
373
373
|
enumerable: true,
|
|
374
374
|
writable: true,
|
|
375
375
|
initializer: null
|
|
376
|
-
}), _descriptor3$
|
|
376
|
+
}), _descriptor3$5 = _applyDecoratedDescriptor(_class2$x.prototype, "testDate", [_dec7$p, _dec8$l], {
|
|
377
377
|
configurable: true,
|
|
378
378
|
enumerable: true,
|
|
379
379
|
writable: true,
|
|
380
380
|
initializer: null
|
|
381
|
-
}), _class2$
|
|
381
|
+
}), _class2$x)) || _class$1g) || _class$1g);
|
|
382
382
|
|
|
383
|
-
var _dec$
|
|
384
|
-
let EntityUser = (_dec$
|
|
383
|
+
var _dec$1f, _dec2$1f, _dec3$w, _dec4$w, _dec5$t, _dec6$s, _dec7$o, _dec8$k, _class$1f, _class2$w, _descriptor$b, _descriptor2$8, _descriptor3$4;
|
|
384
|
+
let EntityUser = (_dec$1f = Entity('testVonaUser'), _dec2$1f = BeanInfo({
|
|
385
385
|
module: "test-vona"
|
|
386
|
-
}), _dec3$
|
|
386
|
+
}), _dec3$w = Api.field(), _dec4$w = Reflect.metadata("design:type", String), _dec5$t = Api.field(v.optional()), _dec6$s = Reflect.metadata("design:type", Number), _dec7$o = Api.field(v.optional()), _dec8$k = Reflect.metadata("design:type", Number), _dec$1f(_class$1f = _dec2$1f(_class$1f = (_class2$w = class EntityUser extends EntityBase {
|
|
387
387
|
constructor(...args) {
|
|
388
388
|
super(...args);
|
|
389
|
-
_initializerDefineProperty(this, "name", _descriptor$
|
|
390
|
-
_initializerDefineProperty(this, "age", _descriptor2$
|
|
391
|
-
_initializerDefineProperty(this, "scores", _descriptor3$
|
|
389
|
+
_initializerDefineProperty(this, "name", _descriptor$b, this);
|
|
390
|
+
_initializerDefineProperty(this, "age", _descriptor2$8, this);
|
|
391
|
+
_initializerDefineProperty(this, "scores", _descriptor3$4, this);
|
|
392
392
|
}
|
|
393
|
-
}, _descriptor$
|
|
393
|
+
}, _descriptor$b = _applyDecoratedDescriptor(_class2$w.prototype, "name", [_dec3$w, _dec4$w], {
|
|
394
394
|
configurable: true,
|
|
395
395
|
enumerable: true,
|
|
396
396
|
writable: true,
|
|
397
397
|
initializer: null
|
|
398
|
-
}), _descriptor2$
|
|
398
|
+
}), _descriptor2$8 = _applyDecoratedDescriptor(_class2$w.prototype, "age", [_dec5$t, _dec6$s], {
|
|
399
399
|
configurable: true,
|
|
400
400
|
enumerable: true,
|
|
401
401
|
writable: true,
|
|
402
402
|
initializer: null
|
|
403
|
-
}), _descriptor3$
|
|
403
|
+
}), _descriptor3$4 = _applyDecoratedDescriptor(_class2$w.prototype, "scores", [_dec7$o, _dec8$k], {
|
|
404
404
|
configurable: true,
|
|
405
405
|
enumerable: true,
|
|
406
406
|
writable: true,
|
|
407
407
|
initializer: null
|
|
408
|
-
}), _class2$
|
|
408
|
+
}), _class2$w)) || _class$1f) || _class$1f);
|
|
409
409
|
|
|
410
|
-
var _dec$
|
|
411
|
-
let ModelCategory = (_dec$
|
|
410
|
+
var _dec$1e, _dec2$1e, _class$1e;
|
|
411
|
+
let ModelCategory = (_dec$1e = Model({
|
|
412
412
|
entity: EntityCategory,
|
|
413
413
|
relations: {
|
|
414
414
|
children: $relation.hasMany(() => ModelCategory, 'categoryIdParent', {
|
|
@@ -419,12 +419,12 @@ let ModelCategory = (_dec$18 = Model({
|
|
|
419
419
|
cache: {
|
|
420
420
|
modelsClear: () => ModelCategoryChain$1
|
|
421
421
|
}
|
|
422
|
-
}), _dec2$
|
|
422
|
+
}), _dec2$1e = BeanInfo({
|
|
423
423
|
module: "test-vona"
|
|
424
|
-
}), _dec$
|
|
424
|
+
}), _dec$1e(_class$1e = _dec2$1e(_class$1e = class ModelCategory extends BeanModelBase {}) || _class$1e) || _class$1e);
|
|
425
425
|
|
|
426
|
-
var _dec$
|
|
427
|
-
let ModelCategoryChain = (_dec$
|
|
426
|
+
var _dec$1d, _dec2$1d, _class$1d;
|
|
427
|
+
let ModelCategoryChain = (_dec$1d = Model({
|
|
428
428
|
entity: EntityCategory,
|
|
429
429
|
relations: {
|
|
430
430
|
parent: $relation.belongsTo(() => ModelCategoryChain, () => ModelCategoryChain, 'categoryIdParent', {
|
|
@@ -432,19 +432,19 @@ let ModelCategoryChain = (_dec$17 = Model({
|
|
|
432
432
|
columns: ['id', 'name', 'categoryIdParent']
|
|
433
433
|
})
|
|
434
434
|
}
|
|
435
|
-
}), _dec2$
|
|
435
|
+
}), _dec2$1d = BeanInfo({
|
|
436
436
|
module: "test-vona"
|
|
437
|
-
}), _dec$
|
|
437
|
+
}), _dec$1d(_class$1d = _dec2$1d(_class$1d = class ModelCategoryChain extends BeanModelBase {}) || _class$1d) || _class$1d);
|
|
438
438
|
|
|
439
|
-
var _dec$
|
|
440
|
-
let ModelProduct = (_dec$
|
|
439
|
+
var _dec$1c, _dec2$1c, _class$1c;
|
|
440
|
+
let ModelProduct = (_dec$1c = Model({
|
|
441
441
|
entity: EntityProduct
|
|
442
|
-
}), _dec2$
|
|
442
|
+
}), _dec2$1c = BeanInfo({
|
|
443
443
|
module: "test-vona"
|
|
444
|
-
}), _dec$
|
|
444
|
+
}), _dec$1c(_class$1c = _dec2$1c(_class$1c = class ModelProduct extends BeanModelBase {}) || _class$1c) || _class$1c);
|
|
445
445
|
|
|
446
|
-
var _dec$
|
|
447
|
-
let ModelOrderStats = (_dec$
|
|
446
|
+
var _dec$1b, _dec2$1b, _class$1b;
|
|
447
|
+
let ModelOrderStats = (_dec$1b = Model({
|
|
448
448
|
entity: EntityOrder,
|
|
449
449
|
relations: {
|
|
450
450
|
productStats: $relation.hasMany(() => ModelProduct, 'orderId', {
|
|
@@ -462,12 +462,12 @@ let ModelOrderStats = (_dec$15 = Model({
|
|
|
462
462
|
}
|
|
463
463
|
})
|
|
464
464
|
}
|
|
465
|
-
}), _dec2$
|
|
465
|
+
}), _dec2$1b = BeanInfo({
|
|
466
466
|
module: "test-vona"
|
|
467
|
-
}), _dec$
|
|
467
|
+
}), _dec$1b(_class$1b = _dec2$1b(_class$1b = class ModelOrderStats extends BeanModelBase {}) || _class$1b) || _class$1b);
|
|
468
468
|
|
|
469
|
-
var _dec$
|
|
470
|
-
let ModelPostContent = (_dec$
|
|
469
|
+
var _dec$1a, _dec2$1a, _class$1a;
|
|
470
|
+
let ModelPostContent = (_dec$1a = Model({
|
|
471
471
|
entity: EntityPostContent,
|
|
472
472
|
relations: {
|
|
473
473
|
post: $relation.belongsTo(() => ModelPostContent, () => ModelPost, 'postId')
|
|
@@ -475,12 +475,12 @@ let ModelPostContent = (_dec$14 = Model({
|
|
|
475
475
|
cache: {
|
|
476
476
|
modelsClear: () => ModelPost
|
|
477
477
|
}
|
|
478
|
-
}), _dec2$
|
|
478
|
+
}), _dec2$1a = BeanInfo({
|
|
479
479
|
module: "test-vona"
|
|
480
|
-
}), _dec$
|
|
480
|
+
}), _dec$1a(_class$1a = _dec2$1a(_class$1a = class ModelPostContent extends BeanModelBase {}) || _class$1a) || _class$1a);
|
|
481
481
|
|
|
482
|
-
var _dec$
|
|
483
|
-
let ModelPost = (_dec$
|
|
482
|
+
var _dec$19, _dec2$19, _class$19;
|
|
483
|
+
let ModelPost = (_dec$19 = Model({
|
|
484
484
|
entity: EntityPost,
|
|
485
485
|
relations: {
|
|
486
486
|
postContent: $relation.hasOne(ModelPostContent, 'postId', {
|
|
@@ -491,12 +491,12 @@ let ModelPost = (_dec$13 = Model({
|
|
|
491
491
|
columns: ['id', 'name']
|
|
492
492
|
})
|
|
493
493
|
}
|
|
494
|
-
}), _dec2$
|
|
494
|
+
}), _dec2$19 = BeanInfo({
|
|
495
495
|
module: "test-vona"
|
|
496
|
-
}), _dec$
|
|
496
|
+
}), _dec$19(_class$19 = _dec2$19(_class$19 = class ModelPost extends BeanModelBase {}) || _class$19) || _class$19);
|
|
497
497
|
|
|
498
|
-
var _dec$
|
|
499
|
-
let ModelUserStats = (_dec$
|
|
498
|
+
var _dec$18, _dec2$18, _class$18;
|
|
499
|
+
let ModelUserStats = (_dec$18 = Model({
|
|
500
500
|
entity: EntityUser,
|
|
501
501
|
relations: {
|
|
502
502
|
posts: $relation.hasMany(() => ModelPost, 'userId', {
|
|
@@ -512,12 +512,12 @@ let ModelUserStats = (_dec$12 = Model({
|
|
|
512
512
|
}
|
|
513
513
|
})
|
|
514
514
|
}
|
|
515
|
-
}), _dec2$
|
|
515
|
+
}), _dec2$18 = BeanInfo({
|
|
516
516
|
module: "test-vona"
|
|
517
|
-
}), _dec$
|
|
517
|
+
}), _dec$18(_class$18 = _dec2$18(_class$18 = class ModelUserStats extends BeanModelBase {}) || _class$18) || _class$18);
|
|
518
518
|
|
|
519
|
-
var _dec$
|
|
520
|
-
let ModelUserStatsGroup = (_dec$
|
|
519
|
+
var _dec$17, _dec2$17, _class$17;
|
|
520
|
+
let ModelUserStatsGroup = (_dec$17 = Model({
|
|
521
521
|
entity: EntityUser,
|
|
522
522
|
relations: {
|
|
523
523
|
posts: $relation.hasMany(() => ModelPost, 'userId', {
|
|
@@ -537,12 +537,12 @@ let ModelUserStatsGroup = (_dec$11 = Model({
|
|
|
537
537
|
orders: [['name', 'asc']]
|
|
538
538
|
}, undefined, true)
|
|
539
539
|
}
|
|
540
|
-
}), _dec2$
|
|
540
|
+
}), _dec2$17 = BeanInfo({
|
|
541
541
|
module: "test-vona"
|
|
542
|
-
}), _dec$
|
|
542
|
+
}), _dec$17(_class$17 = _dec2$17(_class$17 = class ModelUserStatsGroup extends BeanModelBase {}) || _class$17) || _class$17);
|
|
543
543
|
|
|
544
|
-
var _dec$
|
|
545
|
-
let ModelUser = (_dec$
|
|
544
|
+
var _dec$16, _dec2$16, _class$16;
|
|
545
|
+
let ModelUser = (_dec$16 = Model({
|
|
546
546
|
entity: EntityUser,
|
|
547
547
|
relations: {
|
|
548
548
|
posts: $relation.hasMany(() => ModelPost, 'userId', {
|
|
@@ -555,12 +555,12 @@ let ModelUser = (_dec$10 = Model({
|
|
|
555
555
|
cache: {
|
|
556
556
|
modelsClear: [() => ModelUserStats, () => ModelUserStatsGroup]
|
|
557
557
|
}
|
|
558
|
-
}), _dec2$
|
|
558
|
+
}), _dec2$16 = BeanInfo({
|
|
559
559
|
module: "test-vona"
|
|
560
|
-
}), _dec$
|
|
560
|
+
}), _dec$16(_class$16 = _dec2$16(_class$16 = class ModelUser extends BeanModelBase {}) || _class$16) || _class$16);
|
|
561
561
|
|
|
562
|
-
var _dec
|
|
563
|
-
let ModelOrder = (_dec
|
|
562
|
+
var _dec$15, _dec2$15, _class$15;
|
|
563
|
+
let ModelOrder = (_dec$15 = Model({
|
|
564
564
|
entity: EntityOrder,
|
|
565
565
|
relations: {
|
|
566
566
|
user: $relation.belongsTo(() => ModelOrder, () => ModelUser, 'userId', {
|
|
@@ -575,39 +575,39 @@ let ModelOrder = (_dec$$ = Model({
|
|
|
575
575
|
cache: {
|
|
576
576
|
modelsClear: () => ModelOrderStats
|
|
577
577
|
}
|
|
578
|
-
}), _dec2
|
|
578
|
+
}), _dec2$15 = BeanInfo({
|
|
579
579
|
module: "test-vona"
|
|
580
|
-
}), _dec
|
|
580
|
+
}), _dec$15(_class$15 = _dec2$15(_class$15 = class ModelOrder extends BeanModelBase {}) || _class$15) || _class$15);
|
|
581
581
|
|
|
582
|
-
var _dec$
|
|
583
|
-
let ModelRoleUser = (_dec$
|
|
582
|
+
var _dec$14, _dec2$14, _class$14;
|
|
583
|
+
let ModelRoleUser = (_dec$14 = Model({
|
|
584
584
|
entity: EntityRoleUser
|
|
585
|
-
}), _dec2$
|
|
585
|
+
}), _dec2$14 = BeanInfo({
|
|
586
586
|
module: "test-vona"
|
|
587
|
-
}), _dec$
|
|
587
|
+
}), _dec$14(_class$14 = _dec2$14(_class$14 = class ModelRoleUser extends BeanModelBase {}) || _class$14) || _class$14);
|
|
588
588
|
|
|
589
|
-
var _dec$
|
|
590
|
-
let ModelRole = (_dec$
|
|
589
|
+
var _dec$13, _dec2$13, _class$13;
|
|
590
|
+
let ModelRole = (_dec$13 = Model({
|
|
591
591
|
entity: EntityRole,
|
|
592
592
|
relations: {
|
|
593
593
|
users: $relation.belongsToMany(() => ModelRoleUser, () => ModelUser, 'roleId', 'userId', {
|
|
594
594
|
columns: ['id', 'name']
|
|
595
595
|
})
|
|
596
596
|
}
|
|
597
|
-
}), _dec2$
|
|
597
|
+
}), _dec2$13 = BeanInfo({
|
|
598
598
|
module: "test-vona"
|
|
599
|
-
}), _dec$
|
|
599
|
+
}), _dec$13(_class$13 = _dec2$13(_class$13 = class ModelRole extends BeanModelBase {}) || _class$13) || _class$13);
|
|
600
600
|
|
|
601
|
-
var _dec$
|
|
602
|
-
let ModelTest = (_dec$
|
|
601
|
+
var _dec$12, _dec2$12, _class$12;
|
|
602
|
+
let ModelTest = (_dec$12 = Model({
|
|
603
603
|
entity: EntityTest,
|
|
604
604
|
client: 'default'
|
|
605
|
-
}), _dec2$
|
|
605
|
+
}), _dec2$12 = BeanInfo({
|
|
606
606
|
module: "test-vona"
|
|
607
|
-
}), _dec$
|
|
607
|
+
}), _dec$12(_class$12 = _dec2$12(_class$12 = class ModelTest extends BeanModelBase {}) || _class$12) || _class$12);
|
|
608
608
|
|
|
609
|
-
var _dec$
|
|
610
|
-
let ModelTestDynamicTable = (_dec$
|
|
609
|
+
var _dec$11, _dec2$11, _class$11;
|
|
610
|
+
let ModelTestDynamicTable = (_dec$11 = Model({
|
|
611
611
|
entity: EntityTest,
|
|
612
612
|
table(ctx, defaultTable) {
|
|
613
613
|
if (ctx.instanceName !== '') return defaultTable;
|
|
@@ -618,11 +618,11 @@ let ModelTestDynamicTable = (_dec$X = Model({
|
|
|
618
618
|
// do nothing
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
}), _dec2$
|
|
621
|
+
}), _dec2$11 = BeanInfo({
|
|
622
622
|
module: "test-vona"
|
|
623
|
-
}), _dec$
|
|
623
|
+
}), _dec$11(_class$11 = _dec2$11(_class$11 = class ModelTestDynamicTable extends BeanModelBase {}) || _class$11) || _class$11);
|
|
624
624
|
|
|
625
|
-
var _dec$
|
|
625
|
+
var _dec$10, _dec2$10, _class$10;
|
|
626
626
|
class TestCtx0 extends BeanBase {
|
|
627
627
|
constructor(...args) {
|
|
628
628
|
super(...args);
|
|
@@ -684,35 +684,35 @@ class TestCtx1 extends TestCtx0 {
|
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
|
-
let BeanTestCtx = (_dec$
|
|
687
|
+
let BeanTestCtx = (_dec$10 = Bean(), _dec2$10 = BeanInfo({
|
|
688
688
|
module: "test-vona"
|
|
689
|
-
}), _dec$
|
|
689
|
+
}), _dec$10(_class$10 = _dec2$10(_class$10 = class BeanTestCtx extends TestCtx1 {}) || _class$10) || _class$10);
|
|
690
690
|
|
|
691
|
-
var _dec
|
|
692
|
-
let ServiceAopMethodBase = (_dec
|
|
691
|
+
var _dec$$, _dec2$$, _dec3$v, _dec4$v, _class$$, _dec5$s, _dec6$r, _dec7$n, _dec8$j, _dec9$d, _dec0$d, _dec1$d, _dec10$b, _dec11$b, _dec12$b, _dec13$b, _dec14$a, _dec15$a, _dec16$a, _class2$v, _class3;
|
|
692
|
+
let ServiceAopMethodBase = (_dec$$ = Aspect.aopMethod('test-vona:test', {
|
|
693
693
|
wrapper: '+'
|
|
694
|
-
}), _dec2
|
|
694
|
+
}), _dec2$$ = Aspect.aopMethod('test-vona:test', {
|
|
695
695
|
wrapper: '-'
|
|
696
|
-
}), _dec3$
|
|
696
|
+
}), _dec3$v = Reflect.metadata("design:type", Function), _dec4$v = Reflect.metadata("design:paramtypes", []), _class$$ = class ServiceAopMethodBase extends BeanBase {
|
|
697
697
|
testSyncBase() {
|
|
698
698
|
return 'hello';
|
|
699
699
|
}
|
|
700
|
-
}, _applyDecoratedDescriptor(_class
|
|
701
|
-
let ServiceAopMethod = (_dec5$
|
|
700
|
+
}, _applyDecoratedDescriptor(_class$$.prototype, "testSyncBase", [_dec$$, _dec2$$, _dec3$v, _dec4$v], Object.getOwnPropertyDescriptor(_class$$.prototype, "testSyncBase"), _class$$.prototype), _class$$);
|
|
701
|
+
let ServiceAopMethod = (_dec5$s = Service(), _dec6$r = BeanInfo({
|
|
702
702
|
module: "test-vona"
|
|
703
|
-
}), _dec7$
|
|
703
|
+
}), _dec7$n = Aspect.aopMethod('test-vona:test', {
|
|
704
704
|
wrapper: '+'
|
|
705
|
-
}), _dec8$
|
|
705
|
+
}), _dec8$j = Aspect.aopMethod('test-vona:test', {
|
|
706
706
|
wrapper: '-'
|
|
707
|
-
}), _dec9$
|
|
707
|
+
}), _dec9$d = Reflect.metadata("design:type", Function), _dec0$d = Reflect.metadata("design:paramtypes", []), _dec1$d = Aspect.aopMethod('test-vona:test', {
|
|
708
708
|
wrapper: '+'
|
|
709
|
-
}), _dec10$
|
|
709
|
+
}), _dec10$b = Aspect.aopMethod('test-vona:test', {
|
|
710
710
|
wrapper: '-'
|
|
711
|
-
}), _dec11$
|
|
711
|
+
}), _dec11$b = Reflect.metadata("design:type", Function), _dec12$b = Reflect.metadata("design:paramtypes", []), _dec13$b = Aspect.aopMethod('test-vona:test', {
|
|
712
712
|
wrapper: '+'
|
|
713
|
-
}), _dec14$
|
|
713
|
+
}), _dec14$a = Aspect.aopMethod('test-vona:test', {
|
|
714
714
|
wrapper: '-'
|
|
715
|
-
}), _dec15$
|
|
715
|
+
}), _dec15$a = Reflect.metadata("design:type", Function), _dec16$a = Reflect.metadata("design:paramtypes", []), _dec5$s(_class2$v = _dec6$r(_class2$v = (_class3 = class ServiceAopMethod extends ServiceAopMethodBase {
|
|
716
716
|
constructor(...args) {
|
|
717
717
|
super(...args);
|
|
718
718
|
this._name = '';
|
|
@@ -729,49 +729,49 @@ let ServiceAopMethod = (_dec5$p = Service(), _dec6$n = BeanInfo({
|
|
|
729
729
|
set name(value) {
|
|
730
730
|
this._name = value;
|
|
731
731
|
}
|
|
732
|
-
}, _applyDecoratedDescriptor(_class3.prototype, "testSync", [_dec7$
|
|
732
|
+
}, _applyDecoratedDescriptor(_class3.prototype, "testSync", [_dec7$n, _dec8$j, _dec9$d, _dec0$d], Object.getOwnPropertyDescriptor(_class3.prototype, "testSync"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, "testAsync", [_dec1$d, _dec10$b, _dec11$b, _dec12$b], Object.getOwnPropertyDescriptor(_class3.prototype, "testAsync"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, "name", [_dec13$b, _dec14$a, _dec15$a, _dec16$a], Object.getOwnPropertyDescriptor(_class3.prototype, "name"), _class3.prototype), _class3)) || _class2$v) || _class2$v);
|
|
733
733
|
|
|
734
|
-
var _dec$
|
|
734
|
+
var _dec$_, _dec2$_, _dec3$u, _dec4$u, _dec5$r, _dec6$q, _dec7$m, _dec8$i, _dec9$c, _dec0$c, _dec1$c, _dec10$a, _dec11$a, _dec12$a, _dec13$a, _dec14$9, _dec15$9, _dec16$9, _dec17$8, _dec18$8, _dec19$8, _dec20$8, _dec21$6, _dec22$5, _dec23$5, _dec24$5, _dec25$5, _dec26$4, _dec27$4, _class$_, _class2$u;
|
|
735
735
|
function cacheKeyFn(args, prop, options) {
|
|
736
736
|
return `${this.$beanFullName}_${options.cacheProp ?? prop}_${getKeyHash(args)}`;
|
|
737
737
|
}
|
|
738
|
-
let ServiceCaching = (_dec$
|
|
738
|
+
let ServiceCaching = (_dec$_ = Service(), _dec2$_ = BeanInfo({
|
|
739
739
|
module: "test-vona"
|
|
740
|
-
}), _dec3$
|
|
740
|
+
}), _dec3$u = Caching.get({
|
|
741
741
|
cacheName: 'test-vona:test',
|
|
742
742
|
cacheProp: 'test',
|
|
743
743
|
cacheKeyFn: 'cacheKey'
|
|
744
|
-
}), _dec4$
|
|
744
|
+
}), _dec4$u = Reflect.metadata("design:type", Function), _dec5$r = Reflect.metadata("design:paramtypes", [Number]), _dec6$q = Caching.get({
|
|
745
745
|
cacheName: 'test-vona:test',
|
|
746
746
|
cacheProp: 'test',
|
|
747
747
|
cacheKeyFn
|
|
748
|
-
}), _dec7$
|
|
748
|
+
}), _dec7$m = Reflect.metadata("design:type", Function), _dec8$i = Reflect.metadata("design:paramtypes", [Number]), _dec9$c = Caching.get({
|
|
749
749
|
cacheName: 'test-vona:test',
|
|
750
750
|
cacheProp: 'test',
|
|
751
751
|
cacheKey: 'cel://join([get(self,"$beanFullName"),options.cacheProp,hashkey(args)],"_")'
|
|
752
|
-
}), _dec0$
|
|
752
|
+
}), _dec0$c = Reflect.metadata("design:type", Function), _dec1$c = Reflect.metadata("design:paramtypes", [Number]), _dec10$a = Caching.get({
|
|
753
753
|
cacheName: 'test-vona:test',
|
|
754
754
|
cacheProp: 'test'
|
|
755
|
-
}), _dec11$
|
|
755
|
+
}), _dec11$a = Reflect.metadata("design:type", Function), _dec12$a = Reflect.metadata("design:paramtypes", [Number]), _dec13$a = Caching.set({
|
|
756
756
|
cacheName: 'test-vona:test',
|
|
757
757
|
cacheProp: 'test',
|
|
758
758
|
cacheKeyFn: 'cacheKeySet',
|
|
759
759
|
cacheValueFn: 'cacheValueSet'
|
|
760
|
-
}), _dec14$
|
|
760
|
+
}), _dec14$9 = Reflect.metadata("design:type", Function), _dec15$9 = Reflect.metadata("design:paramtypes", [Number, typeof TSummerCacheTestData === "undefined" ? Object : TSummerCacheTestData]), _dec16$9 = Caching.set({
|
|
761
761
|
cacheName: 'test-vona:test',
|
|
762
762
|
cacheProp: 'test',
|
|
763
763
|
cacheKey: 'cel://join([get(self,"$beanFullName"),options.cacheProp,hashkey([args[0]])],"_")',
|
|
764
764
|
cacheValue: 'cel://{"id": args[1].id, "name": args[1].name}'
|
|
765
|
-
}), _dec17$
|
|
765
|
+
}), _dec17$8 = Reflect.metadata("design:type", Function), _dec18$8 = Reflect.metadata("design:paramtypes", [Number, typeof TSummerCacheTestData === "undefined" ? Object : TSummerCacheTestData]), _dec19$8 = Caching.set({
|
|
766
766
|
cacheName: 'test-vona:test',
|
|
767
767
|
cacheProp: 'test',
|
|
768
768
|
cacheKeyFn: 'cacheKeySet'
|
|
769
|
-
}), _dec20$
|
|
769
|
+
}), _dec20$8 = Reflect.metadata("design:type", Function), _dec21$6 = Reflect.metadata("design:paramtypes", [Number, typeof TSummerCacheTestData === "undefined" ? Object : TSummerCacheTestData]), _dec22$5 = Caching.del({
|
|
770
770
|
cacheName: 'test-vona:test',
|
|
771
771
|
cacheProp: 'test'
|
|
772
|
-
}), _dec23$
|
|
772
|
+
}), _dec23$5 = Reflect.metadata("design:type", Function), _dec24$5 = Reflect.metadata("design:paramtypes", [Number]), _dec25$5 = Caching.clear({
|
|
773
773
|
cacheName: 'test-vona:test'
|
|
774
|
-
}), _dec26$
|
|
774
|
+
}), _dec26$4 = Reflect.metadata("design:type", Function), _dec27$4 = Reflect.metadata("design:paramtypes", []), _dec$_(_class$_ = _dec2$_(_class$_ = (_class2$u = class ServiceCaching extends BeanBase {
|
|
775
775
|
cacheKey(args, prop, options) {
|
|
776
776
|
return `${this.$beanFullName}_${options.cacheProp ?? prop}_${getKeyHash(args)}`;
|
|
777
777
|
}
|
|
@@ -815,12 +815,12 @@ let ServiceCaching = (_dec$U = Service(), _dec2$U = BeanInfo({
|
|
|
815
815
|
async clear() {
|
|
816
816
|
// do nothing
|
|
817
817
|
}
|
|
818
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
818
|
+
}, _applyDecoratedDescriptor(_class2$u.prototype, "get", [_dec3$u, _dec4$u, _dec5$r], Object.getOwnPropertyDescriptor(_class2$u.prototype, "get"), _class2$u.prototype), _applyDecoratedDescriptor(_class2$u.prototype, "get2", [_dec6$q, _dec7$m, _dec8$i], Object.getOwnPropertyDescriptor(_class2$u.prototype, "get2"), _class2$u.prototype), _applyDecoratedDescriptor(_class2$u.prototype, "get3", [_dec9$c, _dec0$c, _dec1$c], Object.getOwnPropertyDescriptor(_class2$u.prototype, "get3"), _class2$u.prototype), _applyDecoratedDescriptor(_class2$u.prototype, "get4", [_dec10$a, _dec11$a, _dec12$a], Object.getOwnPropertyDescriptor(_class2$u.prototype, "get4"), _class2$u.prototype), _applyDecoratedDescriptor(_class2$u.prototype, "set", [_dec13$a, _dec14$9, _dec15$9], Object.getOwnPropertyDescriptor(_class2$u.prototype, "set"), _class2$u.prototype), _applyDecoratedDescriptor(_class2$u.prototype, "set2", [_dec16$9, _dec17$8, _dec18$8], Object.getOwnPropertyDescriptor(_class2$u.prototype, "set2"), _class2$u.prototype), _applyDecoratedDescriptor(_class2$u.prototype, "set3", [_dec19$8, _dec20$8, _dec21$6], Object.getOwnPropertyDescriptor(_class2$u.prototype, "set3"), _class2$u.prototype), _applyDecoratedDescriptor(_class2$u.prototype, "del", [_dec22$5, _dec23$5, _dec24$5], Object.getOwnPropertyDescriptor(_class2$u.prototype, "del"), _class2$u.prototype), _applyDecoratedDescriptor(_class2$u.prototype, "clear", [_dec25$5, _dec26$4, _dec27$4], Object.getOwnPropertyDescriptor(_class2$u.prototype, "clear"), _class2$u.prototype), _class2$u)) || _class$_) || _class$_);
|
|
819
819
|
|
|
820
|
-
var _dec$
|
|
821
|
-
let ServiceCategory = (_dec$
|
|
820
|
+
var _dec$Z, _dec2$Z, _class$Z;
|
|
821
|
+
let ServiceCategory = (_dec$Z = Service(), _dec2$Z = BeanInfo({
|
|
822
822
|
module: "test-vona"
|
|
823
|
-
}), _dec$
|
|
823
|
+
}), _dec$Z(_class$Z = _dec2$Z(_class$Z = class ServiceCategory extends BeanBase {
|
|
824
824
|
async categoryTreeDynamic() {
|
|
825
825
|
// create
|
|
826
826
|
const treeCreate = await this.scope.model.category.insert({
|
|
@@ -961,12 +961,12 @@ let ServiceCategory = (_dec$T = Service(), _dec2$T = BeanInfo({
|
|
|
961
961
|
id: treeCreate.id
|
|
962
962
|
});
|
|
963
963
|
}
|
|
964
|
-
}) || _class$
|
|
964
|
+
}) || _class$Z) || _class$Z);
|
|
965
965
|
|
|
966
|
-
var _dec$
|
|
967
|
-
let ServiceOrder = (_dec$
|
|
966
|
+
var _dec$Y, _dec2$Y, _class$Y;
|
|
967
|
+
let ServiceOrder = (_dec$Y = Service(), _dec2$Y = BeanInfo({
|
|
968
968
|
module: "test-vona"
|
|
969
|
-
}), _dec$
|
|
969
|
+
}), _dec$Y(_class$Y = _dec2$Y(_class$Y = class ServiceOrder extends BeanBase {
|
|
970
970
|
async relationHasMany() {
|
|
971
971
|
// insert
|
|
972
972
|
const orderCreate = await this.scope.model.order.insert({
|
|
@@ -1024,12 +1024,12 @@ let ServiceOrder = (_dec$S = Service(), _dec2$S = BeanInfo({
|
|
|
1024
1024
|
}
|
|
1025
1025
|
});
|
|
1026
1026
|
}
|
|
1027
|
-
}) || _class$
|
|
1027
|
+
}) || _class$Y) || _class$Y);
|
|
1028
1028
|
|
|
1029
|
-
var _dec$
|
|
1030
|
-
let ServicePost = (_dec$
|
|
1029
|
+
var _dec$X, _dec2$X, _dec3$t, _dec4$t, _dec5$q, _class$X, _class2$t;
|
|
1030
|
+
let ServicePost = (_dec$X = Service(), _dec2$X = BeanInfo({
|
|
1031
1031
|
module: "test-vona"
|
|
1032
|
-
}), _dec3$
|
|
1032
|
+
}), _dec3$t = Database.transaction(), _dec4$t = Reflect.metadata("design:type", Function), _dec5$q = Reflect.metadata("design:paramtypes", []), _dec$X(_class$X = _dec2$X(_class$X = (_class2$t = class ServicePost extends BeanBase {
|
|
1033
1033
|
async findMany(params) {
|
|
1034
1034
|
return await this.scope.model.post.selectAndCount({
|
|
1035
1035
|
...params,
|
|
@@ -1273,26 +1273,26 @@ let ServicePost = (_dec$R = Service(), _dec2$R = BeanInfo({
|
|
|
1273
1273
|
// async count() {
|
|
1274
1274
|
// return await this.scope.model.post.count();
|
|
1275
1275
|
// }
|
|
1276
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
1276
|
+
}, _applyDecoratedDescriptor(_class2$t.prototype, "transaction", [_dec3$t, _dec4$t, _dec5$q], Object.getOwnPropertyDescriptor(_class2$t.prototype, "transaction"), _class2$t.prototype), _class2$t)) || _class$X) || _class$X);
|
|
1277
1277
|
|
|
1278
|
-
var _dec$
|
|
1279
|
-
let ServiceProduct = (_dec$
|
|
1278
|
+
var _dec$W, _dec2$W, _class$W;
|
|
1279
|
+
let ServiceProduct = (_dec$W = Service(), _dec2$W = BeanInfo({
|
|
1280
1280
|
module: "test-vona"
|
|
1281
|
-
}), _dec$
|
|
1281
|
+
}), _dec$W(_class$W = _dec2$W(_class$W = class ServiceProduct extends BeanBase {}) || _class$W) || _class$W);
|
|
1282
1282
|
|
|
1283
|
-
var _dec$
|
|
1284
|
-
let ServiceTest = (_dec$
|
|
1283
|
+
var _dec$V, _dec2$V, _class$V;
|
|
1284
|
+
let ServiceTest = (_dec$V = Service(), _dec2$V = BeanInfo({
|
|
1285
1285
|
module: "test-vona"
|
|
1286
|
-
}), _dec$
|
|
1286
|
+
}), _dec$V(_class$V = _dec2$V(_class$V = class ServiceTest extends BeanBase {
|
|
1287
1287
|
get name() {
|
|
1288
1288
|
return 'serviceTest';
|
|
1289
1289
|
}
|
|
1290
|
-
}) || _class$
|
|
1290
|
+
}) || _class$V) || _class$V);
|
|
1291
1291
|
|
|
1292
|
-
var _dec$
|
|
1293
|
-
let ServiceTestApp = (_dec$
|
|
1292
|
+
var _dec$U, _dec2$U, _class$U;
|
|
1293
|
+
let ServiceTestApp = (_dec$U = Service(), _dec2$U = BeanInfo({
|
|
1294
1294
|
module: "test-vona"
|
|
1295
|
-
}), _dec$
|
|
1295
|
+
}), _dec$U(_class$U = _dec2$U(_class$U = class ServiceTestApp extends BeanBase {
|
|
1296
1296
|
actionSync({
|
|
1297
1297
|
a,
|
|
1298
1298
|
b
|
|
@@ -1305,9 +1305,9 @@ let ServiceTestApp = (_dec$O = Service(), _dec2$O = BeanInfo({
|
|
|
1305
1305
|
}) {
|
|
1306
1306
|
return Promise.resolve(a + b);
|
|
1307
1307
|
}
|
|
1308
|
-
}) || _class$
|
|
1308
|
+
}) || _class$U) || _class$U);
|
|
1309
1309
|
|
|
1310
|
-
var _dec$
|
|
1310
|
+
var _dec$T, _dec2$T, _class$T;
|
|
1311
1311
|
class ClassBeanBase extends BeanBase {
|
|
1312
1312
|
actionSync({
|
|
1313
1313
|
a,
|
|
@@ -1316,21 +1316,21 @@ class ClassBeanBase extends BeanBase {
|
|
|
1316
1316
|
return a + b;
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
1319
|
-
let ServiceTestClass = (_dec$
|
|
1319
|
+
let ServiceTestClass = (_dec$T = Service(), _dec2$T = BeanInfo({
|
|
1320
1320
|
module: "test-vona"
|
|
1321
|
-
}), _dec$
|
|
1321
|
+
}), _dec$T(_class$T = _dec2$T(_class$T = class ServiceTestClass extends ClassBeanBase {
|
|
1322
1322
|
async actionAsync({
|
|
1323
1323
|
a,
|
|
1324
1324
|
b
|
|
1325
1325
|
}) {
|
|
1326
1326
|
return Promise.resolve(a + b);
|
|
1327
1327
|
}
|
|
1328
|
-
}) || _class$
|
|
1328
|
+
}) || _class$T) || _class$T);
|
|
1329
1329
|
|
|
1330
|
-
var _dec$
|
|
1331
|
-
let ServiceTestData = (_dec$
|
|
1330
|
+
var _dec$S, _dec2$S, _class$S;
|
|
1331
|
+
let ServiceTestData = (_dec$S = Service(), _dec2$S = BeanInfo({
|
|
1332
1332
|
module: "test-vona"
|
|
1333
|
-
}), _dec$
|
|
1333
|
+
}), _dec$S(_class$S = _dec2$S(_class$S = class ServiceTestData extends BeanBase {
|
|
1334
1334
|
async create(prefix) {
|
|
1335
1335
|
const scopeTest = this.scope;
|
|
1336
1336
|
const userTom = await scopeTest.model.user.insert({
|
|
@@ -1417,14 +1417,14 @@ let ServiceTestData = (_dec$M = Service(), _dec2$M = BeanInfo({
|
|
|
1417
1417
|
id: userJimmy.id
|
|
1418
1418
|
});
|
|
1419
1419
|
}
|
|
1420
|
-
}) || _class$
|
|
1420
|
+
}) || _class$S) || _class$S);
|
|
1421
1421
|
|
|
1422
|
-
var _dec$
|
|
1422
|
+
var _dec$R, _dec2$R, _dec3$s, _dec4$s, _dec5$p, _dec6$p, _dec7$l, _dec8$h, _class$R, _class2$s;
|
|
1423
1423
|
const tableNameFail$1 = '__tempTransactionFail';
|
|
1424
1424
|
const tableNameSuccess$1 = '__tempTransactionSuccess';
|
|
1425
|
-
let ServiceTransaction = (_dec$
|
|
1425
|
+
let ServiceTransaction = (_dec$R = Service(), _dec2$R = BeanInfo({
|
|
1426
1426
|
module: "test-vona"
|
|
1427
|
-
}), _dec3$
|
|
1427
|
+
}), _dec3$s = Database.transaction(), _dec4$s = Reflect.metadata("design:type", Function), _dec5$p = Reflect.metadata("design:paramtypes", [Object]), _dec6$p = Database.transaction(), _dec7$l = Reflect.metadata("design:type", Function), _dec8$h = Reflect.metadata("design:paramtypes", [Object]), _dec$R(_class$R = _dec2$R(_class$R = (_class2$s = class ServiceTransaction extends BeanBase {
|
|
1428
1428
|
async fail(item) {
|
|
1429
1429
|
await this.bean.model.update(`${tableNameFail$1}`, item);
|
|
1430
1430
|
await this.bean.model.update(`${tableNameFail$1}error`, item);
|
|
@@ -1432,12 +1432,12 @@ let ServiceTransaction = (_dec$L = Service(), _dec2$L = BeanInfo({
|
|
|
1432
1432
|
async success(item) {
|
|
1433
1433
|
await this.bean.model.update(tableNameSuccess$1, item);
|
|
1434
1434
|
}
|
|
1435
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
1435
|
+
}, _applyDecoratedDescriptor(_class2$s.prototype, "fail", [_dec3$s, _dec4$s, _dec5$p], Object.getOwnPropertyDescriptor(_class2$s.prototype, "fail"), _class2$s.prototype), _applyDecoratedDescriptor(_class2$s.prototype, "success", [_dec6$p, _dec7$l, _dec8$h], Object.getOwnPropertyDescriptor(_class2$s.prototype, "success"), _class2$s.prototype), _class2$s)) || _class$R) || _class$R);
|
|
1436
1436
|
|
|
1437
|
-
var _dec$
|
|
1438
|
-
let ServiceUser = (_dec$
|
|
1437
|
+
var _dec$Q, _dec2$Q, _class$Q;
|
|
1438
|
+
let ServiceUser = (_dec$Q = Service(), _dec2$Q = BeanInfo({
|
|
1439
1439
|
module: "test-vona"
|
|
1440
|
-
}), _dec$
|
|
1440
|
+
}), _dec$Q(_class$Q = _dec2$Q(_class$Q = class ServiceUser extends BeanBase {
|
|
1441
1441
|
async userStats() {
|
|
1442
1442
|
const userStats = await this.scope.model.user.aggregate({
|
|
1443
1443
|
aggrs: {
|
|
@@ -1523,61 +1523,61 @@ let ServiceUser = (_dec$K = Service(), _dec2$K = BeanInfo({
|
|
|
1523
1523
|
}
|
|
1524
1524
|
});
|
|
1525
1525
|
}
|
|
1526
|
-
}) || _class$
|
|
1526
|
+
}) || _class$Q) || _class$Q);
|
|
1527
1527
|
|
|
1528
|
-
var _dec$
|
|
1529
|
-
let BroadcastTest = (_dec$
|
|
1528
|
+
var _dec$P, _dec2$P, _class$P;
|
|
1529
|
+
let BroadcastTest = (_dec$P = Broadcast(), _dec2$P = BeanInfo({
|
|
1530
1530
|
module: "test-vona"
|
|
1531
|
-
}), _dec$
|
|
1531
|
+
}), _dec$P(_class$P = _dec2$P(_class$P = class BroadcastTest extends BeanBroadcastBase {
|
|
1532
1532
|
async execute(data, isEmitter) {
|
|
1533
1533
|
// locale
|
|
1534
1534
|
assert.equal(this.ctx.locale, 'zh-cn');
|
|
1535
1535
|
// data
|
|
1536
1536
|
assert.equal(data.message, 'hello');
|
|
1537
1537
|
}
|
|
1538
|
-
}) || _class$
|
|
1538
|
+
}) || _class$P) || _class$P);
|
|
1539
1539
|
|
|
1540
|
-
var _dec$
|
|
1541
|
-
let CacheMemTest = (_dec$
|
|
1540
|
+
var _dec$O, _dec2$O, _class$O;
|
|
1541
|
+
let CacheMemTest = (_dec$O = CacheMem({
|
|
1542
1542
|
ttl: 1 * 1000
|
|
1543
|
-
}), _dec2$
|
|
1543
|
+
}), _dec2$O = BeanInfo({
|
|
1544
1544
|
module: "test-vona"
|
|
1545
|
-
}), _dec$
|
|
1545
|
+
}), _dec$O(_class$O = _dec2$O(_class$O = class CacheMemTest extends BeanCacheMemBase {}) || _class$O) || _class$O);
|
|
1546
1546
|
|
|
1547
|
-
var _dec$
|
|
1548
|
-
let CacheRedisPost = (_dec$
|
|
1547
|
+
var _dec$N, _dec2$N, _class$N;
|
|
1548
|
+
let CacheRedisPost = (_dec$N = CacheRedis(), _dec2$N = BeanInfo({
|
|
1549
1549
|
module: "test-vona"
|
|
1550
|
-
}), _dec$
|
|
1550
|
+
}), _dec$N(_class$N = _dec2$N(_class$N = class CacheRedisPost extends BeanCacheRedisBase {}) || _class$N) || _class$N);
|
|
1551
1551
|
|
|
1552
|
-
var _dec$
|
|
1553
|
-
let CacheRedisTest = (_dec$
|
|
1552
|
+
var _dec$M, _dec2$M, _class$M;
|
|
1553
|
+
let CacheRedisTest = (_dec$M = CacheRedis({
|
|
1554
1554
|
ttl: 1 * 1000
|
|
1555
|
-
}), _dec2$
|
|
1555
|
+
}), _dec2$M = BeanInfo({
|
|
1556
1556
|
module: "test-vona"
|
|
1557
|
-
}), _dec$
|
|
1557
|
+
}), _dec$M(_class$M = _dec2$M(_class$M = class CacheRedisTest extends BeanCacheRedisBase {}) || _class$M) || _class$M);
|
|
1558
1558
|
|
|
1559
|
-
var _dec$
|
|
1560
|
-
let EventHelloEcho = (_dec$
|
|
1559
|
+
var _dec$L, _dec2$L, _class$L;
|
|
1560
|
+
let EventHelloEcho = (_dec$L = Event(), _dec2$L = BeanInfo({
|
|
1561
1561
|
module: "test-vona"
|
|
1562
|
-
}), _dec$
|
|
1562
|
+
}), _dec$L(_class$L = _dec2$L(_class$L = class EventHelloEcho extends BeanEventBase {}) || _class$L) || _class$L);
|
|
1563
1563
|
|
|
1564
|
-
var _dec$
|
|
1565
|
-
let EventListenerHelloEcho = (_dec$
|
|
1564
|
+
var _dec$K, _dec2$K, _class$K;
|
|
1565
|
+
let EventListenerHelloEcho = (_dec$K = EventListener({
|
|
1566
1566
|
match: 'test-vona:helloEcho'
|
|
1567
|
-
}), _dec2$
|
|
1567
|
+
}), _dec2$K = BeanInfo({
|
|
1568
1568
|
module: "test-vona"
|
|
1569
|
-
}), _dec$
|
|
1569
|
+
}), _dec$K(_class$K = _dec2$K(_class$K = class EventListenerHelloEcho extends BeanBase {
|
|
1570
1570
|
async execute(data, next) {
|
|
1571
1571
|
// next
|
|
1572
1572
|
const result = await next();
|
|
1573
1573
|
return `${data.text} ${result}`;
|
|
1574
1574
|
}
|
|
1575
|
-
}) || _class$
|
|
1575
|
+
}) || _class$K) || _class$K);
|
|
1576
1576
|
|
|
1577
|
-
var _dec$
|
|
1578
|
-
let MetaVersion = (_dec$
|
|
1577
|
+
var _dec$J, _dec2$J, _class$J;
|
|
1578
|
+
let MetaVersion = (_dec$J = Meta(), _dec2$J = BeanInfo({
|
|
1579
1579
|
module: "test-vona"
|
|
1580
|
-
}), _dec$
|
|
1580
|
+
}), _dec$J(_class$J = _dec2$J(_class$J = class MetaVersion extends BeanBase {
|
|
1581
1581
|
async update(options) {
|
|
1582
1582
|
if (options.version === 1) {
|
|
1583
1583
|
// testVonaTest
|
|
@@ -1670,49 +1670,59 @@ let MetaVersion = (_dec$D = Meta(), _dec2$D = BeanInfo({
|
|
|
1670
1670
|
}
|
|
1671
1671
|
});
|
|
1672
1672
|
}
|
|
1673
|
-
}) || _class$
|
|
1673
|
+
}) || _class$J) || _class$J);
|
|
1674
1674
|
|
|
1675
|
-
var _dec$
|
|
1676
|
-
let QueueTest = (_dec$
|
|
1675
|
+
var _dec$I, _dec2$I, _class$I;
|
|
1676
|
+
let QueueTest = (_dec$I = Queue(), _dec2$I = BeanInfo({
|
|
1677
1677
|
module: "test-vona"
|
|
1678
|
-
}), _dec$
|
|
1678
|
+
}), _dec$I(_class$I = _dec2$I(_class$I = class QueueTest extends BeanQueueBase {
|
|
1679
1679
|
async execute(data, _options) {
|
|
1680
1680
|
const res = data.a + data.b;
|
|
1681
1681
|
this.$logger.silly(`queue test worker done: ${data.a} + ${data.b} = ${res}`);
|
|
1682
1682
|
return res;
|
|
1683
1683
|
}
|
|
1684
|
-
}) || _class$
|
|
1684
|
+
}) || _class$I) || _class$I);
|
|
1685
1685
|
|
|
1686
|
-
var _dec$
|
|
1687
|
-
let ScheduleTest = (_dec$
|
|
1686
|
+
var _dec$H, _dec2$H, _class$H;
|
|
1687
|
+
let ScheduleTest = (_dec$H = Schedule({
|
|
1688
1688
|
enable: false,
|
|
1689
1689
|
repeat: {
|
|
1690
1690
|
every: 3000
|
|
1691
1691
|
}
|
|
1692
|
-
}), _dec2$
|
|
1692
|
+
}), _dec2$H = BeanInfo({
|
|
1693
1693
|
module: "test-vona"
|
|
1694
|
-
}), _dec$
|
|
1694
|
+
}), _dec$H(_class$H = _dec2$H(_class$H = class ScheduleTest extends BeanBase {
|
|
1695
1695
|
async execute(job) {
|
|
1696
1696
|
this.$logger.silly(`Schedule Test: iid=${this.ctx.instance.id}, every=${job?.data.options?.jobOptions?.repeat?.every}, ${new Date()}`);
|
|
1697
1697
|
}
|
|
1698
|
-
}) || _class$
|
|
1698
|
+
}) || _class$H) || _class$H);
|
|
1699
1699
|
|
|
1700
|
-
var _dec$
|
|
1701
|
-
let ScheduleTest3 = (_dec$
|
|
1700
|
+
var _dec$G, _dec2$G, _class$G;
|
|
1701
|
+
let ScheduleTest3 = (_dec$G = Schedule({
|
|
1702
1702
|
enable: false,
|
|
1703
1703
|
repeat: {
|
|
1704
1704
|
every: 5000
|
|
1705
1705
|
}
|
|
1706
|
-
}), _dec2$
|
|
1706
|
+
}), _dec2$G = BeanInfo({
|
|
1707
1707
|
module: "test-vona"
|
|
1708
|
-
}), _dec$
|
|
1708
|
+
}), _dec$G(_class$G = _dec2$G(_class$G = class ScheduleTest3 extends BeanBase {
|
|
1709
1709
|
async execute(job) {
|
|
1710
1710
|
this.$logger.silly(`Schedule Test3: iid=${this.ctx.instance.id}, every=${job?.data.options?.jobOptions?.repeat?.every}, ${new Date()}`);
|
|
1711
1711
|
}
|
|
1712
|
-
}) || _class$
|
|
1712
|
+
}) || _class$G) || _class$G);
|
|
1713
1713
|
|
|
1714
|
-
var _dec$
|
|
1715
|
-
let
|
|
1714
|
+
var _dec$F, _dec2$F, _class$F;
|
|
1715
|
+
let SerializerTransformEmail = (_dec$F = SerializerTransform(), _dec2$F = BeanInfo({
|
|
1716
|
+
module: "test-vona"
|
|
1717
|
+
}), _dec$F(_class$F = _dec2$F(_class$F = class SerializerTransformEmail extends BeanBase {
|
|
1718
|
+
async transform(value, _data, _options) {
|
|
1719
|
+
// eslint-disable-next-line
|
|
1720
|
+
return value?.replace(/(\w?)(\w+)(\w)(@\w+\.[a-z]+)/, '$1****$3$4');
|
|
1721
|
+
}
|
|
1722
|
+
}) || _class$F) || _class$F);
|
|
1723
|
+
|
|
1724
|
+
var _dec$E, _dec2$E, _class$E;
|
|
1725
|
+
let SummerCacheTest = (_dec$E = SummerCache({
|
|
1716
1726
|
mode: 'all',
|
|
1717
1727
|
mem: {
|
|
1718
1728
|
max: 2,
|
|
@@ -1721,309 +1731,505 @@ let SummerCacheTest = (_dec$z = SummerCache({
|
|
|
1721
1731
|
redis: {
|
|
1722
1732
|
ttl: 3 * 1000
|
|
1723
1733
|
}
|
|
1724
|
-
}), _dec2$
|
|
1734
|
+
}), _dec2$E = BeanInfo({
|
|
1725
1735
|
module: "test-vona"
|
|
1726
|
-
}), _dec$
|
|
1736
|
+
}), _dec$E(_class$E = _dec2$E(_class$E = class SummerCacheTest extends BeanSummerCacheBase {
|
|
1727
1737
|
async getNative(key, _options) {
|
|
1728
1738
|
return {
|
|
1729
1739
|
id: key.id,
|
|
1730
1740
|
name: `name_${key.id}`
|
|
1731
1741
|
};
|
|
1732
1742
|
}
|
|
1733
|
-
}) || _class$
|
|
1743
|
+
}) || _class$E) || _class$E);
|
|
1734
1744
|
|
|
1735
|
-
var _dec$
|
|
1736
|
-
let DtoCategoryTree = (_dec$
|
|
1745
|
+
var _dec$D, _dec2$D, _class$D;
|
|
1746
|
+
let DtoCategoryTree = (_dec$D = Dto(), _dec2$D = BeanInfo({
|
|
1737
1747
|
module: "test-vona"
|
|
1738
|
-
}), _dec$
|
|
1748
|
+
}), _dec$D(_class$D = _dec2$D(_class$D = class DtoCategoryTree extends $Dto.get('test-vona:category', {
|
|
1739
1749
|
columns: ['id', 'name']
|
|
1740
|
-
}) {}) || _class$
|
|
1750
|
+
}) {}) || _class$D) || _class$D);
|
|
1741
1751
|
|
|
1742
|
-
var _dec$
|
|
1743
|
-
let DtoOrderCreate = (_dec$
|
|
1752
|
+
var _dec$C, _dec2$C, _class$C;
|
|
1753
|
+
let DtoOrderCreate = (_dec$C = Dto(), _dec2$C = BeanInfo({
|
|
1744
1754
|
module: "test-vona"
|
|
1745
|
-
}), _dec$
|
|
1755
|
+
}), _dec$C(_class$C = _dec2$C(_class$C = class DtoOrderCreate extends $Dto.create(() => ModelOrder, {
|
|
1746
1756
|
columns: ['orderNo', 'remark']
|
|
1747
|
-
}) {}) || _class$
|
|
1757
|
+
}) {}) || _class$C) || _class$C);
|
|
1748
1758
|
|
|
1749
|
-
var _dec$
|
|
1750
|
-
let DtoOrderQuery = (_dec$
|
|
1759
|
+
var _dec$B, _dec2$B, _dec3$r, _dec4$r, _class$B, _class2$r, _descriptor$a;
|
|
1760
|
+
let DtoOrderQuery = (_dec$B = Dto({
|
|
1751
1761
|
openapi: {
|
|
1752
1762
|
query: {
|
|
1753
1763
|
table: $tableName(EntityOrder)
|
|
1754
1764
|
}
|
|
1755
1765
|
}
|
|
1756
|
-
}), _dec2$
|
|
1766
|
+
}), _dec2$B = BeanInfo({
|
|
1757
1767
|
module: "test-vona"
|
|
1758
|
-
}), _dec3$
|
|
1768
|
+
}), _dec3$r = Api.field(v.optional(), v.openapi({
|
|
1759
1769
|
query: {
|
|
1760
1770
|
table: $tableName(EntityUser),
|
|
1761
1771
|
joinType: 'innerJoin',
|
|
1762
1772
|
joinOn: ['userId', 'testVonaUser.id'],
|
|
1763
1773
|
originalName: 'name'
|
|
1764
1774
|
}
|
|
1765
|
-
})), _dec4$
|
|
1775
|
+
})), _dec4$r = Reflect.metadata("design:type", String), _dec$B(_class$B = _dec2$B(_class$B = (_class2$r = class DtoOrderQuery extends $Dto.query(EntityOrder, ['orderNo', 'remark']) {
|
|
1766
1776
|
constructor(...args) {
|
|
1767
1777
|
super(...args);
|
|
1768
|
-
_initializerDefineProperty(this, "userName", _descriptor$
|
|
1778
|
+
_initializerDefineProperty(this, "userName", _descriptor$a, this);
|
|
1769
1779
|
}
|
|
1770
|
-
}, _descriptor$
|
|
1780
|
+
}, _descriptor$a = _applyDecoratedDescriptor(_class2$r.prototype, "userName", [_dec3$r, _dec4$r], {
|
|
1771
1781
|
configurable: true,
|
|
1772
1782
|
enumerable: true,
|
|
1773
1783
|
writable: true,
|
|
1774
1784
|
initializer: null
|
|
1775
|
-
}), _class2$
|
|
1785
|
+
}), _class2$r)) || _class$B) || _class$B);
|
|
1776
1786
|
|
|
1777
|
-
var _dec$
|
|
1778
|
-
let DtoOrderQueryPage = (_dec$
|
|
1787
|
+
var _dec$A, _dec2$A, _dec3$q, _dec4$q, _class$A, _class2$q, _descriptor$9;
|
|
1788
|
+
let DtoOrderQueryPage = (_dec$A = Dto({
|
|
1779
1789
|
fields: {
|
|
1780
1790
|
pageSize: z.number().min(1).max(300).default(30)
|
|
1781
1791
|
}
|
|
1782
|
-
}), _dec2$
|
|
1792
|
+
}), _dec2$A = BeanInfo({
|
|
1783
1793
|
module: "test-vona"
|
|
1784
|
-
}), _dec3$
|
|
1794
|
+
}), _dec3$q = Api.field(z.number().min(1).max(300).default(30)), _dec4$q = Reflect.metadata("design:type", Number), _dec$A(_class$A = _dec2$A(_class$A = (_class2$q = class DtoOrderQueryPage extends $Class.omit($Dto.queryPage(EntityOrder, ['orderNo', 'remark']), ['pageSize']) {
|
|
1785
1795
|
constructor(...args) {
|
|
1786
1796
|
super(...args);
|
|
1787
|
-
_initializerDefineProperty(this, "pageSize", _descriptor$
|
|
1797
|
+
_initializerDefineProperty(this, "pageSize", _descriptor$9, this);
|
|
1788
1798
|
}
|
|
1789
|
-
}, _descriptor$
|
|
1799
|
+
}, _descriptor$9 = _applyDecoratedDescriptor(_class2$q.prototype, "pageSize", [_dec3$q, _dec4$q], {
|
|
1790
1800
|
configurable: true,
|
|
1791
1801
|
enumerable: true,
|
|
1792
1802
|
writable: true,
|
|
1793
1803
|
initializer: null
|
|
1794
|
-
}), _class2$
|
|
1804
|
+
}), _class2$q)) || _class$A) || _class$A);
|
|
1795
1805
|
|
|
1796
|
-
var _dec$
|
|
1797
|
-
let DtoOrderResult = (_dec$
|
|
1806
|
+
var _dec$z, _dec2$z, _class$z;
|
|
1807
|
+
let DtoOrderResult = (_dec$z = Dto(), _dec2$z = BeanInfo({
|
|
1798
1808
|
module: "test-vona"
|
|
1799
|
-
}), _dec$
|
|
1809
|
+
}), _dec$z(_class$z = _dec2$z(_class$z = class DtoOrderResult extends $Dto.get(() => ModelOrder) {}) || _class$z) || _class$z);
|
|
1800
1810
|
|
|
1801
|
-
var _dec$
|
|
1802
|
-
let DtoOrderResultPage = (_dec$
|
|
1811
|
+
var _dec$y, _dec2$y, _class$y;
|
|
1812
|
+
let DtoOrderResultPage = (_dec$y = Dto(), _dec2$y = BeanInfo({
|
|
1803
1813
|
module: "test-vona"
|
|
1804
|
-
}), _dec$
|
|
1814
|
+
}), _dec$y(_class$y = _dec2$y(_class$y = class DtoOrderResultPage extends $Dto.selectAndCount(() => ModelOrder$1) {}) || _class$y) || _class$y);
|
|
1805
1815
|
|
|
1806
|
-
var _dec$
|
|
1807
|
-
let DtoOrderUpdate = (_dec$
|
|
1816
|
+
var _dec$x, _dec2$x, _class$x;
|
|
1817
|
+
let DtoOrderUpdate = (_dec$x = Dto(), _dec2$x = BeanInfo({
|
|
1808
1818
|
module: "test-vona"
|
|
1809
|
-
}), _dec$
|
|
1819
|
+
}), _dec$x(_class$x = _dec2$x(_class$x = class DtoOrderUpdate extends $Dto.update(() => ModelOrder, {
|
|
1810
1820
|
columns: ['orderNo', 'remark']
|
|
1811
|
-
}) {}) || _class$
|
|
1821
|
+
}) {}) || _class$x) || _class$x);
|
|
1822
|
+
|
|
1823
|
+
var _dec$w, _dec2$w, _class$w;
|
|
1824
|
+
let DtoPostAggregate = (_dec$w = Dto(), _dec2$w = BeanInfo({
|
|
1825
|
+
module: "test-vona"
|
|
1826
|
+
}), _dec$w(_class$w = _dec2$w(_class$w = class DtoPostAggregate extends $Dto.aggregate(() => ModelPost, {
|
|
1827
|
+
count: ['*', 'stars'],
|
|
1828
|
+
sum: 'stars',
|
|
1829
|
+
avg: 'stars',
|
|
1830
|
+
min: 'stars',
|
|
1831
|
+
max: 'stars'
|
|
1832
|
+
}) {}) || _class$w) || _class$w);
|
|
1812
1833
|
|
|
1813
|
-
var _dec$
|
|
1814
|
-
let DtoPostCreate = (_dec$
|
|
1834
|
+
var _dec$v, _dec2$v, _class$v;
|
|
1835
|
+
let DtoPostCreate = (_dec$v = Dto({
|
|
1815
1836
|
independent: true
|
|
1816
|
-
}), _dec2$
|
|
1837
|
+
}), _dec2$v = BeanInfo({
|
|
1838
|
+
module: "test-vona"
|
|
1839
|
+
}), _dec$v(_class$v = _dec2$v(_class$v = class DtoPostCreate extends $Dto.create(() => ModelPost) {}) || _class$v) || _class$v);
|
|
1840
|
+
|
|
1841
|
+
var _dec$u, _dec2$u, _class$u;
|
|
1842
|
+
let DtoPostGroup = (_dec$u = Dto(), _dec2$u = BeanInfo({
|
|
1817
1843
|
module: "test-vona"
|
|
1818
|
-
}), _dec$
|
|
1844
|
+
}), _dec$u(_class$u = _dec2$u(_class$u = class DtoPostGroup extends $Dto.group(() => ModelPost, 'userId', {
|
|
1845
|
+
count: '*',
|
|
1846
|
+
sum: 'stars'
|
|
1847
|
+
}) {}) || _class$u) || _class$u);
|
|
1819
1848
|
|
|
1820
|
-
var _dec$
|
|
1821
|
-
let DtoPostQuery = (_dec$
|
|
1849
|
+
var _dec$t, _dec2$t, _dec3$p, _dec4$p, _class$t, _class2$p, _descriptor$8;
|
|
1850
|
+
let DtoPostQuery = (_dec$t = Dto({
|
|
1822
1851
|
openapi: {
|
|
1823
1852
|
query: {
|
|
1824
1853
|
table: $tableName(EntityPost)
|
|
1825
1854
|
}
|
|
1826
1855
|
}
|
|
1827
|
-
}), _dec2$
|
|
1856
|
+
}), _dec2$t = BeanInfo({
|
|
1828
1857
|
module: "test-vona"
|
|
1829
|
-
}), _dec3$
|
|
1858
|
+
}), _dec3$p = Api.field(v.optional(), v.openapi({
|
|
1830
1859
|
query: {
|
|
1831
1860
|
table: 'testVonaUser',
|
|
1832
1861
|
joinOn: ['userId', 'testVonaUser.id'],
|
|
1833
1862
|
originalName: 'name',
|
|
1834
1863
|
op: '_eqI_'
|
|
1835
1864
|
}
|
|
1836
|
-
})), _dec4$
|
|
1865
|
+
})), _dec4$p = Reflect.metadata("design:type", String), _dec$t(_class$t = _dec2$t(_class$t = (_class2$p = class DtoPostQuery extends $Dto.queryPage(EntityPost, ['title']) {
|
|
1837
1866
|
constructor(...args) {
|
|
1838
1867
|
super(...args);
|
|
1839
|
-
_initializerDefineProperty(this, "userName", _descriptor$
|
|
1868
|
+
_initializerDefineProperty(this, "userName", _descriptor$8, this);
|
|
1840
1869
|
}
|
|
1841
|
-
}, _descriptor$
|
|
1870
|
+
}, _descriptor$8 = _applyDecoratedDescriptor(_class2$p.prototype, "userName", [_dec3$p, _dec4$p], {
|
|
1842
1871
|
configurable: true,
|
|
1843
1872
|
enumerable: true,
|
|
1844
1873
|
writable: true,
|
|
1845
1874
|
initializer: null
|
|
1846
|
-
}), _class2$
|
|
1875
|
+
}), _class2$p)) || _class$t) || _class$t);
|
|
1847
1876
|
|
|
1848
|
-
var _dec$
|
|
1849
|
-
let DtoPostQueryRes = (_dec$
|
|
1877
|
+
var _dec$s, _dec2$s, _class$s;
|
|
1878
|
+
let DtoPostQueryRes = (_dec$s = Dto(), _dec2$s = BeanInfo({
|
|
1850
1879
|
module: "test-vona"
|
|
1851
|
-
}), _dec$
|
|
1880
|
+
}), _dec$s(_class$s = _dec2$s(_class$s = class DtoPostQueryRes extends $Dto.selectAndCount(() => ModelPost, {
|
|
1852
1881
|
include: {
|
|
1853
1882
|
postContent: true
|
|
1854
1883
|
}
|
|
1855
|
-
}) {}) || _class$
|
|
1884
|
+
}) {}) || _class$s) || _class$s);
|
|
1856
1885
|
|
|
1857
|
-
var _dec$
|
|
1858
|
-
let DtoProfile = (_dec$
|
|
1886
|
+
var _dec$r, _dec2$r, _dec3$o, _dec4$o, _dec5$o, _dec6$o, _class$r, _class2$o, _descriptor$7, _descriptor2$7;
|
|
1887
|
+
let DtoProfile = (_dec$r = Dto(), _dec2$r = BeanInfo({
|
|
1859
1888
|
module: "test-vona"
|
|
1860
|
-
}), _dec3$
|
|
1889
|
+
}), _dec3$o = Api.field(), _dec4$o = Reflect.metadata("design:type", Number), _dec5$o = Api.field(v.email()), _dec6$o = Reflect.metadata("design:type", String), _dec$r(_class$r = _dec2$r(_class$r = (_class2$o = class DtoProfile {
|
|
1861
1890
|
constructor() {
|
|
1862
|
-
_initializerDefineProperty(this, "id", _descriptor$
|
|
1863
|
-
_initializerDefineProperty(this, "email", _descriptor2$
|
|
1891
|
+
_initializerDefineProperty(this, "id", _descriptor$7, this);
|
|
1892
|
+
_initializerDefineProperty(this, "email", _descriptor2$7, this);
|
|
1864
1893
|
}
|
|
1865
|
-
}, _descriptor$
|
|
1894
|
+
}, _descriptor$7 = _applyDecoratedDescriptor(_class2$o.prototype, "id", [_dec3$o, _dec4$o], {
|
|
1866
1895
|
configurable: true,
|
|
1867
1896
|
enumerable: true,
|
|
1868
1897
|
writable: true,
|
|
1869
1898
|
initializer: null
|
|
1870
|
-
}), _descriptor2$
|
|
1899
|
+
}), _descriptor2$7 = _applyDecoratedDescriptor(_class2$o.prototype, "email", [_dec5$o, _dec6$o], {
|
|
1871
1900
|
configurable: true,
|
|
1872
1901
|
enumerable: true,
|
|
1873
1902
|
writable: true,
|
|
1874
1903
|
initializer: null
|
|
1875
|
-
}), _class2$
|
|
1904
|
+
}), _class2$o)) || _class$r) || _class$r);
|
|
1876
1905
|
|
|
1877
|
-
var _dec$
|
|
1878
|
-
let DtoUserLazy = (_dec$
|
|
1906
|
+
var _dec$q, _dec2$q, _dec3$n, _dec4$n, _dec5$n, _dec6$n, _dec7$k, _dec8$g, _class$q, _class2$n, _descriptor$6, _descriptor2$6, _descriptor3$3;
|
|
1907
|
+
let DtoUserLazy = (_dec$q = Dto(), _dec2$q = BeanInfo({
|
|
1879
1908
|
module: "test-vona"
|
|
1880
|
-
}), _dec3$
|
|
1909
|
+
}), _dec3$n = Api.field(), _dec4$n = Reflect.metadata("design:type", String), _dec5$n = Api.field(v.lazy(v.optional(), () => DtoUserLazy)), _dec6$n = Reflect.metadata("design:type", Object), _dec7$k = Api.field(v.optional(), v.array(v.lazy(() => DtoRoleLazy))), _dec8$g = Reflect.metadata("design:type", Array), _dec$q(_class$q = _dec2$q(_class$q = (_class2$n = class DtoUserLazy {
|
|
1881
1910
|
constructor() {
|
|
1882
|
-
_initializerDefineProperty(this, "name", _descriptor$
|
|
1883
|
-
_initializerDefineProperty(this, "user", _descriptor2$
|
|
1884
|
-
_initializerDefineProperty(this, "roles", _descriptor3$
|
|
1911
|
+
_initializerDefineProperty(this, "name", _descriptor$6, this);
|
|
1912
|
+
_initializerDefineProperty(this, "user", _descriptor2$6, this);
|
|
1913
|
+
_initializerDefineProperty(this, "roles", _descriptor3$3, this);
|
|
1885
1914
|
}
|
|
1886
|
-
}, _descriptor$
|
|
1915
|
+
}, _descriptor$6 = _applyDecoratedDescriptor(_class2$n.prototype, "name", [_dec3$n, _dec4$n], {
|
|
1887
1916
|
configurable: true,
|
|
1888
1917
|
enumerable: true,
|
|
1889
1918
|
writable: true,
|
|
1890
1919
|
initializer: null
|
|
1891
|
-
}), _descriptor2$
|
|
1920
|
+
}), _descriptor2$6 = _applyDecoratedDescriptor(_class2$n.prototype, "user", [_dec5$n, _dec6$n], {
|
|
1892
1921
|
configurable: true,
|
|
1893
1922
|
enumerable: true,
|
|
1894
1923
|
writable: true,
|
|
1895
1924
|
initializer: null
|
|
1896
|
-
}), _descriptor3$
|
|
1925
|
+
}), _descriptor3$3 = _applyDecoratedDescriptor(_class2$n.prototype, "roles", [_dec7$k, _dec8$g], {
|
|
1897
1926
|
configurable: true,
|
|
1898
1927
|
enumerable: true,
|
|
1899
1928
|
writable: true,
|
|
1900
1929
|
initializer: null
|
|
1901
|
-
}), _class2$
|
|
1930
|
+
}), _class2$n)) || _class$q) || _class$q);
|
|
1902
1931
|
|
|
1903
|
-
var _dec$
|
|
1904
|
-
let DtoRoleLazy = (_dec$
|
|
1932
|
+
var _dec$p, _dec2$p, _dec3$m, _dec4$m, _dec5$m, _dec6$m, _class$p, _class2$m, _descriptor$5, _descriptor2$5;
|
|
1933
|
+
let DtoRoleLazy = (_dec$p = Dto(), _dec2$p = BeanInfo({
|
|
1905
1934
|
module: "test-vona"
|
|
1906
|
-
}), _dec3$
|
|
1935
|
+
}), _dec3$m = Api.field(), _dec4$m = Reflect.metadata("design:type", String), _dec5$m = Api.field(v.optional(), v.array(v.lazy(() => DtoUserLazy))), _dec6$m = Reflect.metadata("design:type", Array), _dec$p(_class$p = _dec2$p(_class$p = (_class2$m = class DtoRoleLazy {
|
|
1907
1936
|
constructor() {
|
|
1908
|
-
_initializerDefineProperty(this, "name", _descriptor$
|
|
1909
|
-
_initializerDefineProperty(this, "users", _descriptor2$
|
|
1937
|
+
_initializerDefineProperty(this, "name", _descriptor$5, this);
|
|
1938
|
+
_initializerDefineProperty(this, "users", _descriptor2$5, this);
|
|
1910
1939
|
}
|
|
1911
|
-
}, _descriptor$
|
|
1940
|
+
}, _descriptor$5 = _applyDecoratedDescriptor(_class2$m.prototype, "name", [_dec3$m, _dec4$m], {
|
|
1912
1941
|
configurable: true,
|
|
1913
1942
|
enumerable: true,
|
|
1914
1943
|
writable: true,
|
|
1915
1944
|
initializer: null
|
|
1916
|
-
}), _descriptor2$
|
|
1945
|
+
}), _descriptor2$5 = _applyDecoratedDescriptor(_class2$m.prototype, "users", [_dec5$m, _dec6$m], {
|
|
1917
1946
|
configurable: true,
|
|
1918
1947
|
enumerable: true,
|
|
1919
1948
|
writable: true,
|
|
1920
1949
|
initializer: null
|
|
1921
|
-
}), _class2$
|
|
1950
|
+
}), _class2$m)) || _class$p) || _class$p);
|
|
1922
1951
|
|
|
1923
|
-
|
|
1924
|
-
|
|
1952
|
+
function SensitiveEmail() {
|
|
1953
|
+
return Serializer.sensitive({
|
|
1954
|
+
// eslint-disable-next-line
|
|
1955
|
+
patternFrom: /(\w?)(\w+)(\w)(@\w+\.[a-z]+)/,
|
|
1956
|
+
patternTo: '$1****$3$4'
|
|
1957
|
+
});
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
var _dec$o, _dec2$o, _dec3$l, _dec4$l, _dec5$l, _dec6$l, _dec7$j, _dec8$f, _dec9$b, _dec0$b, _dec1$b, _dec10$9, _dec11$9, _dec12$9, _dec13$9, _dec14$8, _dec15$8, _dec16$8, _dec17$7, _dec18$7, _dec19$7, _dec20$7, _dec21$5, _dec22$4, _dec23$4, _dec24$4, _dec25$4, _dec26$3, _dec27$3, _dec28$2, _dec29$2, _dec30$2, _dec31$2, _dec32$2, _dec33$1, _class$o, _class2$l, _descriptor$4, _descriptor2$4, _descriptor3$2, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;
|
|
1961
|
+
let DtoSerializerSimple = (_dec$o = Dto(), _dec2$o = BeanInfo({
|
|
1962
|
+
module: "test-vona"
|
|
1963
|
+
}), _dec3$l = Serializer.exclude(), _dec4$l = Api.field(v.min(6)), _dec5$l = Reflect.metadata("design:type", String), _dec6$l = Api.field(v.serializerExclude(), v.min(6)), _dec7$j = Reflect.metadata("design:type", String), _dec8$f = Serializer.transform('test-vona:email'), _dec9$b = Reflect.metadata("design:type", String), _dec0$b = Serializer.transform('a-serialization:sensitive', {
|
|
1964
|
+
// eslint-disable-next-line
|
|
1965
|
+
patternFrom: /(\w?)(\w+)(\w)(@\w+\.[a-z]+)/,
|
|
1966
|
+
patternTo: '$1****$3$4'
|
|
1967
|
+
}), _dec1$b = Api.field(v.email()), _dec10$9 = Reflect.metadata("design:type", String), _dec11$9 = Serializer.sensitive({
|
|
1968
|
+
// eslint-disable-next-line
|
|
1969
|
+
patternFrom: /(\w?)(\w+)(\w)(@\w+\.[a-z]+)/,
|
|
1970
|
+
patternTo: '$1****$3$4'
|
|
1971
|
+
}), _dec12$9 = Api.field(v.email()), _dec13$9 = Reflect.metadata("design:type", String), _dec14$8 = SensitiveEmail(), _dec15$8 = Reflect.metadata("design:type", String), _dec16$8 = Api.field(v.openapi({
|
|
1972
|
+
serializerTransforms: {
|
|
1973
|
+
'a-serialization:sensitive': {
|
|
1974
|
+
// eslint-disable-next-line
|
|
1975
|
+
patternFrom: /(\w?)(\w+)(\w)(@\w+\.[a-z]+)/,
|
|
1976
|
+
patternTo: '$1****$3$4'
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
}), v.email()), _dec17$7 = Reflect.metadata("design:type", String), _dec18$7 = Api.field(v.serializerTransform('a-serialization:sensitive', {
|
|
1980
|
+
// eslint-disable-next-line
|
|
1981
|
+
patternFrom: /(\w?)(\w+)(\w)(@\w+\.[a-z]+)/,
|
|
1982
|
+
patternTo: '$1****$3$4'
|
|
1983
|
+
}), v.email()), _dec19$7 = Reflect.metadata("design:type", String), _dec20$7 = Api.field(v.serializerSensitive({
|
|
1984
|
+
// eslint-disable-next-line
|
|
1985
|
+
patternFrom: /(\w?)(\w+)(\w)(@\w+\.[a-z]+)/,
|
|
1986
|
+
patternTo: '$1****$3$4'
|
|
1987
|
+
}), v.email()), _dec21$5 = Reflect.metadata("design:type", String), _dec22$4 = Api.field(), _dec23$4 = Reflect.metadata("design:type", String), _dec24$4 = Api.field(), _dec25$4 = Reflect.metadata("design:type", String), _dec26$3 = Serializer.getter(function () {
|
|
1988
|
+
return `${this.firstName} ${this.lastName}`;
|
|
1989
|
+
}), _dec27$3 = Api.field(v.optional()), _dec28$2 = Reflect.metadata("design:type", String), _dec29$2 = Api.field(v.serializerGetter(function () {
|
|
1990
|
+
return `${this.firstName} ${this.lastName}`;
|
|
1991
|
+
}), v.optional()), _dec30$2 = Reflect.metadata("design:type", String), _dec31$2 = Api.field(v.optional()), _dec32$2 = Reflect.metadata("design:type", Function), _dec33$1 = Reflect.metadata("design:paramtypes", []), _dec$o(_class$o = _dec2$o(_class$o = (_class2$l = class DtoSerializerSimple {
|
|
1992
|
+
constructor() {
|
|
1993
|
+
_initializerDefineProperty(this, "password", _descriptor$4, this);
|
|
1994
|
+
_initializerDefineProperty(this, "password2", _descriptor2$4, this);
|
|
1995
|
+
_initializerDefineProperty(this, "email", _descriptor3$2, this);
|
|
1996
|
+
_initializerDefineProperty(this, "email2", _descriptor4, this);
|
|
1997
|
+
_initializerDefineProperty(this, "email3", _descriptor5, this);
|
|
1998
|
+
_initializerDefineProperty(this, "email4", _descriptor6, this);
|
|
1999
|
+
_initializerDefineProperty(this, "email5", _descriptor7, this);
|
|
2000
|
+
_initializerDefineProperty(this, "email6", _descriptor8, this);
|
|
2001
|
+
_initializerDefineProperty(this, "email7", _descriptor9, this);
|
|
2002
|
+
_initializerDefineProperty(this, "firstName", _descriptor0, this);
|
|
2003
|
+
_initializerDefineProperty(this, "lastName", _descriptor1, this);
|
|
2004
|
+
_initializerDefineProperty(this, "fullName", _descriptor10, this);
|
|
2005
|
+
_initializerDefineProperty(this, "fullName2", _descriptor11, this);
|
|
2006
|
+
}
|
|
2007
|
+
get fullName3() {
|
|
2008
|
+
return `${this.firstName} ${this.lastName}`;
|
|
2009
|
+
}
|
|
2010
|
+
}, _descriptor$4 = _applyDecoratedDescriptor(_class2$l.prototype, "password", [_dec3$l, _dec4$l, _dec5$l], {
|
|
2011
|
+
configurable: true,
|
|
2012
|
+
enumerable: true,
|
|
2013
|
+
writable: true,
|
|
2014
|
+
initializer: null
|
|
2015
|
+
}), _descriptor2$4 = _applyDecoratedDescriptor(_class2$l.prototype, "password2", [_dec6$l, _dec7$j], {
|
|
2016
|
+
configurable: true,
|
|
2017
|
+
enumerable: true,
|
|
2018
|
+
writable: true,
|
|
2019
|
+
initializer: null
|
|
2020
|
+
}), _descriptor3$2 = _applyDecoratedDescriptor(_class2$l.prototype, "email", [_dec8$f, _dec9$b], {
|
|
2021
|
+
configurable: true,
|
|
2022
|
+
enumerable: true,
|
|
2023
|
+
writable: true,
|
|
2024
|
+
initializer: null
|
|
2025
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class2$l.prototype, "email2", [_dec0$b, _dec1$b, _dec10$9], {
|
|
2026
|
+
configurable: true,
|
|
2027
|
+
enumerable: true,
|
|
2028
|
+
writable: true,
|
|
2029
|
+
initializer: null
|
|
2030
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class2$l.prototype, "email3", [_dec11$9, _dec12$9, _dec13$9], {
|
|
2031
|
+
configurable: true,
|
|
2032
|
+
enumerable: true,
|
|
2033
|
+
writable: true,
|
|
2034
|
+
initializer: null
|
|
2035
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class2$l.prototype, "email4", [_dec14$8, _dec15$8], {
|
|
2036
|
+
configurable: true,
|
|
2037
|
+
enumerable: true,
|
|
2038
|
+
writable: true,
|
|
2039
|
+
initializer: null
|
|
2040
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class2$l.prototype, "email5", [_dec16$8, _dec17$7], {
|
|
2041
|
+
configurable: true,
|
|
2042
|
+
enumerable: true,
|
|
2043
|
+
writable: true,
|
|
2044
|
+
initializer: null
|
|
2045
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class2$l.prototype, "email6", [_dec18$7, _dec19$7], {
|
|
2046
|
+
configurable: true,
|
|
2047
|
+
enumerable: true,
|
|
2048
|
+
writable: true,
|
|
2049
|
+
initializer: null
|
|
2050
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class2$l.prototype, "email7", [_dec20$7, _dec21$5], {
|
|
2051
|
+
configurable: true,
|
|
2052
|
+
enumerable: true,
|
|
2053
|
+
writable: true,
|
|
2054
|
+
initializer: null
|
|
2055
|
+
}), _descriptor0 = _applyDecoratedDescriptor(_class2$l.prototype, "firstName", [_dec22$4, _dec23$4], {
|
|
2056
|
+
configurable: true,
|
|
2057
|
+
enumerable: true,
|
|
2058
|
+
writable: true,
|
|
2059
|
+
initializer: null
|
|
2060
|
+
}), _descriptor1 = _applyDecoratedDescriptor(_class2$l.prototype, "lastName", [_dec24$4, _dec25$4], {
|
|
2061
|
+
configurable: true,
|
|
2062
|
+
enumerable: true,
|
|
2063
|
+
writable: true,
|
|
2064
|
+
initializer: null
|
|
2065
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class2$l.prototype, "fullName", [_dec26$3, _dec27$3, _dec28$2], {
|
|
2066
|
+
configurable: true,
|
|
2067
|
+
enumerable: true,
|
|
2068
|
+
writable: true,
|
|
2069
|
+
initializer: null
|
|
2070
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class2$l.prototype, "fullName2", [_dec29$2, _dec30$2], {
|
|
2071
|
+
configurable: true,
|
|
2072
|
+
enumerable: true,
|
|
2073
|
+
writable: true,
|
|
2074
|
+
initializer: null
|
|
2075
|
+
}), _applyDecoratedDescriptor(_class2$l.prototype, "fullName3", [_dec31$2, _dec32$2, _dec33$1], Object.getOwnPropertyDescriptor(_class2$l.prototype, "fullName3"), _class2$l.prototype), _class2$l)) || _class$o) || _class$o);
|
|
2076
|
+
|
|
2077
|
+
var _dec$n, _dec2$n, _dec3$k, _dec4$k, _dec5$k, _dec6$k, _class$n, _class2$k, _descriptor$3, _descriptor2$3;
|
|
2078
|
+
let DtoSerializerArray = (_dec$n = Dto(), _dec2$n = BeanInfo({
|
|
1925
2079
|
module: "test-vona"
|
|
1926
|
-
}), _dec3$
|
|
2080
|
+
}), _dec3$k = Api.field(v.serializerGetter((value, _data) => {
|
|
2081
|
+
return value.map(item => {
|
|
2082
|
+
return {
|
|
2083
|
+
...item,
|
|
2084
|
+
password: '111111'
|
|
2085
|
+
};
|
|
2086
|
+
});
|
|
2087
|
+
}), v.title('Simple'), v.array(DtoSerializerSimple)), _dec4$k = Reflect.metadata("design:type", Array), _dec5$k = Api.field(v.serializerGetter((value, _data) => {
|
|
2088
|
+
return value.map(item => {
|
|
2089
|
+
return {
|
|
2090
|
+
...item,
|
|
2091
|
+
password: '111111'
|
|
2092
|
+
};
|
|
2093
|
+
});
|
|
2094
|
+
}), v.title('Simple'), v.array(v.lazy(() => DtoSerializerSimple))), _dec6$k = Reflect.metadata("design:type", Array), _dec$n(_class$n = _dec2$n(_class$n = (_class2$k = class DtoSerializerArray {
|
|
1927
2095
|
constructor() {
|
|
1928
|
-
_initializerDefineProperty(this, "
|
|
2096
|
+
_initializerDefineProperty(this, "simples", _descriptor$3, this);
|
|
2097
|
+
_initializerDefineProperty(this, "simplesLazy", _descriptor2$3, this);
|
|
1929
2098
|
}
|
|
1930
|
-
}, _descriptor$
|
|
2099
|
+
}, _descriptor$3 = _applyDecoratedDescriptor(_class2$k.prototype, "simples", [_dec3$k, _dec4$k], {
|
|
1931
2100
|
configurable: true,
|
|
1932
2101
|
enumerable: true,
|
|
1933
2102
|
writable: true,
|
|
1934
2103
|
initializer: null
|
|
1935
|
-
}), _class2$
|
|
2104
|
+
}), _descriptor2$3 = _applyDecoratedDescriptor(_class2$k.prototype, "simplesLazy", [_dec5$k, _dec6$k], {
|
|
2105
|
+
configurable: true,
|
|
2106
|
+
enumerable: true,
|
|
2107
|
+
writable: true,
|
|
2108
|
+
initializer: null
|
|
2109
|
+
}), _class2$k)) || _class$n) || _class$n);
|
|
1936
2110
|
|
|
1937
|
-
var _dec$
|
|
1938
|
-
let
|
|
2111
|
+
var _dec$m, _dec2$m, _dec3$j, _dec4$j, _dec5$j, _dec6$j, _class$m, _class2$j, _descriptor$2, _descriptor2$2;
|
|
2112
|
+
let DtoSerializerLazy = (_dec$m = Dto(), _dec2$m = BeanInfo({
|
|
2113
|
+
module: "test-vona"
|
|
2114
|
+
}), _dec3$j = Api.field(v.serializerGetter(value => {
|
|
2115
|
+
return {
|
|
2116
|
+
...value,
|
|
2117
|
+
password: '111111'
|
|
2118
|
+
};
|
|
2119
|
+
}), v.object(DtoSerializerSimple)), _dec4$j = Reflect.metadata("design:type", typeof DtoSerializerSimple === "undefined" ? Object : DtoSerializerSimple), _dec5$j = Api.field(v.serializerGetter(value => {
|
|
2120
|
+
return {
|
|
2121
|
+
...value,
|
|
2122
|
+
password: '111111'
|
|
2123
|
+
};
|
|
2124
|
+
}), v.title('title'), v.optional(), v.lazy(v.description('description'), () => {
|
|
2125
|
+
return DtoSerializerSimple;
|
|
2126
|
+
})), _dec6$j = Reflect.metadata("design:type", typeof DtoSerializerSimple === "undefined" ? Object : DtoSerializerSimple), _dec$m(_class$m = _dec2$m(_class$m = (_class2$j = class DtoSerializerLazy {
|
|
2127
|
+
constructor() {
|
|
2128
|
+
_initializerDefineProperty(this, "simple", _descriptor$2, this);
|
|
2129
|
+
_initializerDefineProperty(this, "simpleLazy", _descriptor2$2, this);
|
|
2130
|
+
}
|
|
2131
|
+
}, _descriptor$2 = _applyDecoratedDescriptor(_class2$j.prototype, "simple", [_dec3$j, _dec4$j], {
|
|
2132
|
+
configurable: true,
|
|
2133
|
+
enumerable: true,
|
|
2134
|
+
writable: true,
|
|
2135
|
+
initializer: null
|
|
2136
|
+
}), _descriptor2$2 = _applyDecoratedDescriptor(_class2$j.prototype, "simpleLazy", [_dec5$j, _dec6$j], {
|
|
2137
|
+
configurable: true,
|
|
2138
|
+
enumerable: true,
|
|
2139
|
+
writable: true,
|
|
2140
|
+
initializer: null
|
|
2141
|
+
}), _class2$j)) || _class$m) || _class$m);
|
|
2142
|
+
|
|
2143
|
+
var _dec$l, _dec2$l, _dec3$i, _dec4$i, _dec5$i, _dec6$i, _dec7$i, _dec8$e, _class$l, _class2$i, _descriptor$1, _descriptor2$1, _descriptor3$1;
|
|
2144
|
+
let DtoSignin = (_dec$l = Dto(), _dec2$l = BeanInfo({
|
|
1939
2145
|
module: "test-vona"
|
|
1940
|
-
}), _dec3$
|
|
2146
|
+
}), _dec3$i = Api.field(), _dec4$i = Reflect.metadata("design:type", String), _dec5$i = Api.field(v.min(3)), _dec6$i = Reflect.metadata("design:type", String), _dec7$i = Api.field(v.captcha({
|
|
1941
2147
|
scene: 'a-captchasimple:simple'
|
|
1942
|
-
})), _dec8$
|
|
2148
|
+
})), _dec8$e = Reflect.metadata("design:type", typeof DtoCaptchaVerify === "undefined" ? Object : DtoCaptchaVerify), _dec$l(_class$l = _dec2$l(_class$l = (_class2$i = class DtoSignin {
|
|
1943
2149
|
constructor() {
|
|
1944
2150
|
_initializerDefineProperty(this, "username", _descriptor$1, this);
|
|
1945
2151
|
_initializerDefineProperty(this, "password", _descriptor2$1, this);
|
|
1946
2152
|
_initializerDefineProperty(this, "captcha", _descriptor3$1, this);
|
|
1947
2153
|
}
|
|
1948
|
-
}, _descriptor$1 = _applyDecoratedDescriptor(_class2$
|
|
2154
|
+
}, _descriptor$1 = _applyDecoratedDescriptor(_class2$i.prototype, "username", [_dec3$i, _dec4$i], {
|
|
1949
2155
|
configurable: true,
|
|
1950
2156
|
enumerable: true,
|
|
1951
2157
|
writable: true,
|
|
1952
2158
|
initializer: null
|
|
1953
|
-
}), _descriptor2$1 = _applyDecoratedDescriptor(_class2$
|
|
2159
|
+
}), _descriptor2$1 = _applyDecoratedDescriptor(_class2$i.prototype, "password", [_dec5$i, _dec6$i], {
|
|
1954
2160
|
configurable: true,
|
|
1955
2161
|
enumerable: true,
|
|
1956
2162
|
writable: true,
|
|
1957
2163
|
initializer: null
|
|
1958
|
-
}), _descriptor3$1 = _applyDecoratedDescriptor(_class2$
|
|
2164
|
+
}), _descriptor3$1 = _applyDecoratedDescriptor(_class2$i.prototype, "captcha", [_dec7$i, _dec8$e], {
|
|
1959
2165
|
configurable: true,
|
|
1960
2166
|
enumerable: true,
|
|
1961
2167
|
writable: true,
|
|
1962
2168
|
initializer: null
|
|
1963
|
-
}), _class2$
|
|
2169
|
+
}), _class2$i)) || _class$l) || _class$l);
|
|
1964
2170
|
|
|
1965
|
-
var _dec$
|
|
1966
|
-
let DtoUser = (_dec$
|
|
2171
|
+
var _dec$k, _dec2$k, _dec3$h, _dec4$h, _dec5$h, _dec6$h, _dec7$h, _dec8$d, _class$k, _class2$h, _descriptor, _descriptor2, _descriptor3;
|
|
2172
|
+
let DtoUser = (_dec$k = Dto({
|
|
1967
2173
|
openapi: {
|
|
1968
2174
|
title: $locale('User')
|
|
1969
2175
|
}
|
|
1970
|
-
}), _dec2$
|
|
2176
|
+
}), _dec2$k = BeanInfo({
|
|
1971
2177
|
module: "test-vona"
|
|
1972
|
-
}), _dec3$
|
|
2178
|
+
}), _dec3$h = Api.field(v.title($locale('UserId')), v.tableIdentity()), _dec4$h = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec5$h = Api.field(v.min(3)), _dec6$h = Reflect.metadata("design:type", String), _dec7$h = Api.field(), _dec8$d = Reflect.metadata("design:type", Boolean), _dec$k(_class$k = _dec2$k(_class$k = (_class2$h = class DtoUser {
|
|
1973
2179
|
constructor() {
|
|
1974
2180
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
1975
2181
|
_initializerDefineProperty(this, "name", _descriptor2, this);
|
|
1976
2182
|
_initializerDefineProperty(this, "married", _descriptor3, this);
|
|
1977
2183
|
}
|
|
1978
|
-
}, _descriptor = _applyDecoratedDescriptor(_class2$
|
|
2184
|
+
}, _descriptor = _applyDecoratedDescriptor(_class2$h.prototype, "id", [_dec3$h, _dec4$h], {
|
|
1979
2185
|
configurable: true,
|
|
1980
2186
|
enumerable: true,
|
|
1981
2187
|
writable: true,
|
|
1982
2188
|
initializer: null
|
|
1983
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2$
|
|
2189
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2$h.prototype, "name", [_dec5$h, _dec6$h], {
|
|
1984
2190
|
configurable: true,
|
|
1985
2191
|
enumerable: true,
|
|
1986
2192
|
writable: true,
|
|
1987
2193
|
initializer: null
|
|
1988
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2$
|
|
2194
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2$h.prototype, "married", [_dec7$h, _dec8$d], {
|
|
1989
2195
|
configurable: true,
|
|
1990
2196
|
enumerable: true,
|
|
1991
2197
|
writable: true,
|
|
1992
2198
|
initializer: null
|
|
1993
|
-
}), _class2$
|
|
2199
|
+
}), _class2$h)) || _class$k) || _class$k);
|
|
1994
2200
|
|
|
1995
|
-
var _dec$
|
|
1996
|
-
let DtoUserCreate = (_dec$
|
|
2201
|
+
var _dec$j, _dec2$j, _class$j;
|
|
2202
|
+
let DtoUserCreate = (_dec$j = Dto({
|
|
1997
2203
|
independent: true
|
|
1998
|
-
}), _dec2$
|
|
2204
|
+
}), _dec2$j = BeanInfo({
|
|
1999
2205
|
module: "test-vona"
|
|
2000
|
-
}), _dec$
|
|
2206
|
+
}), _dec$j(_class$j = _dec2$j(_class$j = class DtoUserCreate extends $Dto.create('test-vona:user', {
|
|
2001
2207
|
include: {
|
|
2002
2208
|
roles: true,
|
|
2003
2209
|
posts: true
|
|
2004
2210
|
}
|
|
2005
|
-
}) {}) || _class$
|
|
2211
|
+
}) {}) || _class$j) || _class$j);
|
|
2006
2212
|
|
|
2007
|
-
var _dec$
|
|
2008
|
-
let DtoUserUpdate = (_dec$
|
|
2213
|
+
var _dec$i, _dec2$i, _class$i;
|
|
2214
|
+
let DtoUserUpdate = (_dec$i = Dto(), _dec2$i = BeanInfo({
|
|
2009
2215
|
module: "test-vona"
|
|
2010
|
-
}), _dec$
|
|
2216
|
+
}), _dec$i(_class$i = _dec2$i(_class$i = class DtoUserUpdate extends $Dto.update('test-vona:user', {
|
|
2011
2217
|
include: {
|
|
2012
2218
|
posts: true
|
|
2013
2219
|
}
|
|
2014
|
-
}) {}) || _class$
|
|
2220
|
+
}) {}) || _class$i) || _class$i);
|
|
2015
2221
|
|
|
2016
2222
|
const __ThisModule__ = 'test-vona';
|
|
2017
2223
|
|
|
2018
|
-
var _dec$
|
|
2019
|
-
let ControllerBean = (_dec$
|
|
2224
|
+
var _dec$h, _dec2$h, _dec3$g, _dec4$g, _dec5$g, _dec6$g, _dec7$g, _dec8$c, _dec9$a, _dec0$a, _dec1$a, _class$h, _class2$g;
|
|
2225
|
+
let ControllerBean = (_dec$h = Controller({
|
|
2020
2226
|
path: 'bean',
|
|
2021
2227
|
meta: {
|
|
2022
2228
|
mode: 'test'
|
|
2023
2229
|
}
|
|
2024
|
-
}), _dec2$
|
|
2230
|
+
}), _dec2$h = Api.exclude(), _dec3$g = Passport.public(), _dec4$g = BeanInfo({
|
|
2025
2231
|
module: "test-vona"
|
|
2026
|
-
}), _dec5$
|
|
2232
|
+
}), _dec5$g = Web.get('test'), _dec6$g = Reflect.metadata("design:type", Function), _dec7$g = Reflect.metadata("design:paramtypes", []), _dec8$c = Web.get('service'), _dec9$a = Passport.public(), _dec0$a = Reflect.metadata("design:type", Function), _dec1$a = Reflect.metadata("design:paramtypes", []), _dec$h(_class$h = _dec2$h(_class$h = _dec3$g(_class$h = _dec4$g(_class$h = (_class2$g = class ControllerBean extends BeanBase {
|
|
2027
2233
|
async test() {
|
|
2028
2234
|
const a = 3;
|
|
2029
2235
|
const b = 4;
|
|
@@ -2113,17 +2319,17 @@ let ControllerBean = (_dec$g = Controller({
|
|
|
2113
2319
|
res = this.$scope.testVona.service.test.name;
|
|
2114
2320
|
assert.equal(res, 'serviceTest');
|
|
2115
2321
|
}
|
|
2116
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
2322
|
+
}, _applyDecoratedDescriptor(_class2$g.prototype, "test", [_dec5$g, _dec6$g, _dec7$g], Object.getOwnPropertyDescriptor(_class2$g.prototype, "test"), _class2$g.prototype), _applyDecoratedDescriptor(_class2$g.prototype, "service", [_dec8$c, _dec9$a, _dec0$a, _dec1$a], Object.getOwnPropertyDescriptor(_class2$g.prototype, "service"), _class2$g.prototype), _class2$g)) || _class$h) || _class$h) || _class$h) || _class$h);
|
|
2117
2323
|
|
|
2118
|
-
var _dec$
|
|
2119
|
-
let ControllerCacheMem = (_dec$
|
|
2324
|
+
var _dec$g, _dec2$g, _dec3$f, _dec4$f, _dec5$f, _dec6$f, _dec7$f, _class$g, _class2$f;
|
|
2325
|
+
let ControllerCacheMem = (_dec$g = Controller({
|
|
2120
2326
|
path: 'cacheMem',
|
|
2121
2327
|
meta: {
|
|
2122
2328
|
mode: 'test'
|
|
2123
2329
|
}
|
|
2124
|
-
}), _dec2$
|
|
2330
|
+
}), _dec2$g = Api.exclude(), _dec3$f = Passport.public(), _dec4$f = BeanInfo({
|
|
2125
2331
|
module: "test-vona"
|
|
2126
|
-
}), _dec5$
|
|
2332
|
+
}), _dec5$f = Web.post(), _dec6$f = Reflect.metadata("design:type", Function), _dec7$f = Reflect.metadata("design:paramtypes", []), _dec$g(_class$g = _dec2$g(_class$g = _dec3$f(_class$g = _dec4$f(_class$g = (_class2$f = class ControllerCacheMem extends BeanBase {
|
|
2127
2333
|
async mem() {
|
|
2128
2334
|
let res;
|
|
2129
2335
|
let value;
|
|
@@ -2178,17 +2384,17 @@ let ControllerCacheMem = (_dec$f = Controller({
|
|
|
2178
2384
|
assert.equal(value, undefined);
|
|
2179
2385
|
});
|
|
2180
2386
|
}
|
|
2181
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
2387
|
+
}, _applyDecoratedDescriptor(_class2$f.prototype, "mem", [_dec5$f, _dec6$f, _dec7$f], Object.getOwnPropertyDescriptor(_class2$f.prototype, "mem"), _class2$f.prototype), _class2$f)) || _class$g) || _class$g) || _class$g) || _class$g);
|
|
2182
2388
|
|
|
2183
|
-
var _dec$
|
|
2184
|
-
let ControllerCacheRedis = (_dec$
|
|
2389
|
+
var _dec$f, _dec2$f, _dec3$e, _dec4$e, _dec5$e, _dec6$e, _dec7$e, _class$f, _class2$e;
|
|
2390
|
+
let ControllerCacheRedis = (_dec$f = Controller({
|
|
2185
2391
|
path: 'cacheRedis',
|
|
2186
2392
|
meta: {
|
|
2187
2393
|
mode: 'test'
|
|
2188
2394
|
}
|
|
2189
|
-
}), _dec2$
|
|
2395
|
+
}), _dec2$f = Api.exclude(), _dec3$e = Passport.public(), _dec4$e = BeanInfo({
|
|
2190
2396
|
module: "test-vona"
|
|
2191
|
-
}), _dec5$
|
|
2397
|
+
}), _dec5$e = Web.post(), _dec6$e = Reflect.metadata("design:type", Function), _dec7$e = Reflect.metadata("design:paramtypes", []), _dec$f(_class$f = _dec2$f(_class$f = _dec3$e(_class$f = _dec4$e(_class$f = (_class2$e = class ControllerCacheRedis extends BeanBase {
|
|
2192
2398
|
async redis() {
|
|
2193
2399
|
let res;
|
|
2194
2400
|
let value;
|
|
@@ -2229,40 +2435,40 @@ let ControllerCacheRedis = (_dec$e = Controller({
|
|
|
2229
2435
|
assert.equal(value, undefined);
|
|
2230
2436
|
});
|
|
2231
2437
|
}
|
|
2232
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
2438
|
+
}, _applyDecoratedDescriptor(_class2$e.prototype, "redis", [_dec5$e, _dec6$e, _dec7$e], Object.getOwnPropertyDescriptor(_class2$e.prototype, "redis"), _class2$e.prototype), _class2$e)) || _class$f) || _class$f) || _class$f) || _class$f);
|
|
2233
2439
|
|
|
2234
|
-
var _dec$
|
|
2235
|
-
let ControllerCaptcha = (_dec$
|
|
2440
|
+
var _dec$e, _dec2$e, _dec3$d, _dec4$d, _dec5$d, _dec6$d, _dec7$d, _dec8$b, _class$e, _class2$d;
|
|
2441
|
+
let ControllerCaptcha = (_dec$e = Controller({
|
|
2236
2442
|
path: 'captcha',
|
|
2237
2443
|
meta: {
|
|
2238
2444
|
mode: ['test', 'dev']
|
|
2239
2445
|
}
|
|
2240
|
-
}), _dec2$
|
|
2446
|
+
}), _dec2$e = BeanInfo({
|
|
2241
2447
|
module: "test-vona"
|
|
2242
|
-
}), _dec3$
|
|
2448
|
+
}), _dec3$d = Web.post('signin'), _dec4$d = Passport.public(), _dec5$d = Captcha.verify({
|
|
2243
2449
|
scene: 'a-captchasimple:simple'
|
|
2244
|
-
}), _dec6$
|
|
2450
|
+
}), _dec6$d = function (target, key) {
|
|
2245
2451
|
return Arg.body()(target, key, 0);
|
|
2246
|
-
}, _dec7$
|
|
2452
|
+
}, _dec7$d = Reflect.metadata("design:type", Function), _dec8$b = Reflect.metadata("design:paramtypes", [typeof DtoSignin === "undefined" ? Object : DtoSignin]), _dec$e(_class$e = _dec2$e(_class$e = (_class2$d = class ControllerCaptcha extends BeanBase {
|
|
2247
2453
|
async signin(_user) {}
|
|
2248
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
2454
|
+
}, _applyDecoratedDescriptor(_class2$d.prototype, "signin", [_dec3$d, _dec4$d, _dec5$d, _dec6$d, _dec7$d, _dec8$b], Object.getOwnPropertyDescriptor(_class2$d.prototype, "signin"), _class2$d.prototype), _class2$d)) || _class$e) || _class$e);
|
|
2249
2455
|
|
|
2250
|
-
var _dec$
|
|
2251
|
-
let ControllerDtoTest = (_dec$
|
|
2456
|
+
var _dec$d, _dec2$d, _dec3$c, _dec4$c, _dec5$c, _dec6$c, _dec7$c, _dec8$a, _dec9$9, _dec0$9, _dec1$9, _dec10$8, _dec11$8, _dec12$8, _dec13$8, _dec14$7, _dec15$7, _dec16$7, _dec17$6, _dec18$6, _dec19$6, _dec20$6, _dec21$4, _dec22$3, _dec23$3, _dec24$3, _dec25$3, _dec26$2, _dec27$2, _dec28$1, _dec29$1, _dec30$1, _dec31$1, _dec32$1, _class$d, _class2$c;
|
|
2457
|
+
let ControllerDtoTest = (_dec$d = Controller('dtoTest', {
|
|
2252
2458
|
meta: {
|
|
2253
2459
|
mode: ['test', 'dev']
|
|
2254
2460
|
}
|
|
2255
|
-
}), _dec2$
|
|
2461
|
+
}), _dec2$d = BeanInfo({
|
|
2256
2462
|
module: "test-vona"
|
|
2257
|
-
}), _dec3$
|
|
2463
|
+
}), _dec3$c = Web.get('getUserLazy'), _dec4$c = Reflect.metadata("design:type", Function), _dec5$c = Reflect.metadata("design:paramtypes", []), _dec6$c = Web.get('getUserDynamic'), _dec7$c = Api.body($Dto.get('test-vona:post')), _dec8$a = Reflect.metadata("design:type", Function), _dec9$9 = Reflect.metadata("design:paramtypes", []), _dec0$9 = Web.get('getUserStats'), _dec1$9 = Api.body($Dto.get('test-vona:userStats')), _dec10$8 = Reflect.metadata("design:type", Function), _dec11$8 = Reflect.metadata("design:paramtypes", []), _dec12$8 = Web.get('getUserStatsGroup'), _dec13$8 = Api.body($Dto.get('test-vona:userStatsGroup')), _dec14$7 = Reflect.metadata("design:type", Function), _dec15$7 = Reflect.metadata("design:paramtypes", []), _dec16$7 = Web.post('createUser'), _dec17$6 = function (target, key) {
|
|
2258
2464
|
return Arg.body(v.object(DtoUserCreate))(target, key, 0);
|
|
2259
|
-
}, _dec18$
|
|
2465
|
+
}, _dec18$6 = Reflect.metadata("design:type", Function), _dec19$6 = Reflect.metadata("design:paramtypes", [typeof DtoUserCreate === "undefined" ? Object : DtoUserCreate]), _dec20$6 = Web.patch('updateUser/:id'), _dec21$4 = function (target, key) {
|
|
2260
2466
|
return Arg.param('id')(target, key, 0);
|
|
2261
2467
|
}, _dec22$3 = function (target, key) {
|
|
2262
2468
|
return Arg.body(v.object(DtoUserUpdate))(target, key, 1);
|
|
2263
2469
|
}, _dec23$3 = Reflect.metadata("design:type", Function), _dec24$3 = Reflect.metadata("design:paramtypes", [typeof TableIdentity === "undefined" ? Object : TableIdentity, typeof DtoUserUpdate === "undefined" ? Object : DtoUserUpdate]), _dec25$3 = Web.get('getCategoryTree'), _dec26$2 = Api.body(v.array($Dto.get('test-vona:category', {
|
|
2264
2470
|
columns: ['id', 'name']
|
|
2265
|
-
}))), _dec27$2 = Reflect.metadata("design:type", Function), _dec28$1 = Reflect.metadata("design:paramtypes", []), _dec29$1 = Web.get('getCategoryTree2'), _dec30$1 = Api.body(v.array(DtoCategoryTree)), _dec31$1 = Reflect.metadata("design:type", Function), _dec32$1 = Reflect.metadata("design:paramtypes", []), _dec$
|
|
2471
|
+
}))), _dec27$2 = Reflect.metadata("design:type", Function), _dec28$1 = Reflect.metadata("design:paramtypes", []), _dec29$1 = Web.get('getCategoryTree2'), _dec30$1 = Api.body(v.array(DtoCategoryTree)), _dec31$1 = Reflect.metadata("design:type", Function), _dec32$1 = Reflect.metadata("design:paramtypes", []), _dec$d(_class$d = _dec2$d(_class$d = (_class2$c = class ControllerDtoTest extends BeanBase {
|
|
2266
2472
|
getUserLazy() {
|
|
2267
2473
|
return {};
|
|
2268
2474
|
}
|
|
@@ -2291,73 +2497,73 @@ let ControllerDtoTest = (_dec$c = Controller('dtoTest', {
|
|
|
2291
2497
|
});
|
|
2292
2498
|
return items;
|
|
2293
2499
|
}
|
|
2294
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
2500
|
+
}, _applyDecoratedDescriptor(_class2$c.prototype, "getUserLazy", [_dec3$c, _dec4$c, _dec5$c], Object.getOwnPropertyDescriptor(_class2$c.prototype, "getUserLazy"), _class2$c.prototype), _applyDecoratedDescriptor(_class2$c.prototype, "getPostDynamic", [_dec6$c, _dec7$c, _dec8$a, _dec9$9], Object.getOwnPropertyDescriptor(_class2$c.prototype, "getPostDynamic"), _class2$c.prototype), _applyDecoratedDescriptor(_class2$c.prototype, "getUserStats", [_dec0$9, _dec1$9, _dec10$8, _dec11$8], Object.getOwnPropertyDescriptor(_class2$c.prototype, "getUserStats"), _class2$c.prototype), _applyDecoratedDescriptor(_class2$c.prototype, "getUserStatsGroup", [_dec12$8, _dec13$8, _dec14$7, _dec15$7], Object.getOwnPropertyDescriptor(_class2$c.prototype, "getUserStatsGroup"), _class2$c.prototype), _applyDecoratedDescriptor(_class2$c.prototype, "createUser", [_dec16$7, _dec17$6, _dec18$6, _dec19$6], Object.getOwnPropertyDescriptor(_class2$c.prototype, "createUser"), _class2$c.prototype), _applyDecoratedDescriptor(_class2$c.prototype, "updateUser", [_dec20$6, _dec21$4, _dec22$3, _dec23$3, _dec24$3], Object.getOwnPropertyDescriptor(_class2$c.prototype, "updateUser"), _class2$c.prototype), _applyDecoratedDescriptor(_class2$c.prototype, "getCategoryTree", [_dec25$3, _dec26$2, _dec27$2, _dec28$1], Object.getOwnPropertyDescriptor(_class2$c.prototype, "getCategoryTree"), _class2$c.prototype), _applyDecoratedDescriptor(_class2$c.prototype, "getCategoryTree2", [_dec29$1, _dec30$1, _dec31$1, _dec32$1], Object.getOwnPropertyDescriptor(_class2$c.prototype, "getCategoryTree2"), _class2$c.prototype), _class2$c)) || _class$d) || _class$d);
|
|
2295
2501
|
|
|
2296
|
-
var _dec$
|
|
2297
|
-
let ControllerGuardPassport = (_dec$
|
|
2502
|
+
var _dec$c, _dec2$c, _dec3$b, _dec4$b, _dec5$b, _dec6$b, _dec7$b, _dec8$9, _dec9$8, _dec0$8, _dec1$8, _dec10$7, _dec11$7, _dec12$7, _dec13$7, _dec14$6, _dec15$6, _dec16$6, _class$c, _class2$b;
|
|
2503
|
+
let ControllerGuardPassport = (_dec$c = Controller('guardPassport'), _dec2$c = BeanInfo({
|
|
2298
2504
|
module: "test-vona"
|
|
2299
|
-
}), _dec3$
|
|
2505
|
+
}), _dec3$b = Web.get('testUserName'), _dec4$b = Passport.userName({
|
|
2300
2506
|
name: 'admin'
|
|
2301
|
-
}), _dec5$
|
|
2507
|
+
}), _dec5$b = Reflect.metadata("design:type", Function), _dec6$b = Reflect.metadata("design:paramtypes", []), _dec7$b = Web.get('testUserNameFail'), _dec8$9 = Passport.userName({
|
|
2302
2508
|
name: 'admin-none'
|
|
2303
|
-
}), _dec9$
|
|
2509
|
+
}), _dec9$8 = Reflect.metadata("design:type", Function), _dec0$8 = Reflect.metadata("design:paramtypes", []), _dec1$8 = Web.get('testRoleName'), _dec10$7 = Passport.roleName({
|
|
2304
2510
|
name: 'admin'
|
|
2305
|
-
}), _dec11$
|
|
2511
|
+
}), _dec11$7 = Reflect.metadata("design:type", Function), _dec12$7 = Reflect.metadata("design:paramtypes", []), _dec13$7 = Web.get('testRoleNameFail'), _dec14$6 = Passport.roleName({
|
|
2306
2512
|
name: 'admin-none'
|
|
2307
|
-
}), _dec15$
|
|
2513
|
+
}), _dec15$6 = Reflect.metadata("design:type", Function), _dec16$6 = Reflect.metadata("design:paramtypes", []), _dec$c(_class$c = _dec2$c(_class$c = (_class2$b = class ControllerGuardPassport extends BeanBase {
|
|
2308
2514
|
testUserName() {}
|
|
2309
2515
|
testUserNameFail() {}
|
|
2310
2516
|
testRoleName() {}
|
|
2311
2517
|
testRoleNameFail() {}
|
|
2312
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
2518
|
+
}, _applyDecoratedDescriptor(_class2$b.prototype, "testUserName", [_dec3$b, _dec4$b, _dec5$b, _dec6$b], Object.getOwnPropertyDescriptor(_class2$b.prototype, "testUserName"), _class2$b.prototype), _applyDecoratedDescriptor(_class2$b.prototype, "testUserNameFail", [_dec7$b, _dec8$9, _dec9$8, _dec0$8], Object.getOwnPropertyDescriptor(_class2$b.prototype, "testUserNameFail"), _class2$b.prototype), _applyDecoratedDescriptor(_class2$b.prototype, "testRoleName", [_dec1$8, _dec10$7, _dec11$7, _dec12$7], Object.getOwnPropertyDescriptor(_class2$b.prototype, "testRoleName"), _class2$b.prototype), _applyDecoratedDescriptor(_class2$b.prototype, "testRoleNameFail", [_dec13$7, _dec14$6, _dec15$6, _dec16$6], Object.getOwnPropertyDescriptor(_class2$b.prototype, "testRoleNameFail"), _class2$b.prototype), _class2$b)) || _class$c) || _class$c);
|
|
2313
2519
|
|
|
2314
|
-
var _dec$
|
|
2315
|
-
let ControllerOnion = (_dec$
|
|
2520
|
+
var _dec$b, _dec2$b, _dec3$a, _dec4$a, _dec5$a, _dec6$a, _dec7$a, _dec8$8, _dec9$7, _dec0$7, _dec1$7, _dec10$6, _dec11$6, _dec12$6, _dec13$6, _dec14$5, _dec15$5, _dec16$5, _dec17$5, _dec18$5, _dec19$5, _dec20$5, _dec21$3, _dec22$2, _dec23$2, _dec24$2, _dec25$2, _dec26$1, _dec27$1, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _class$b, _class2$a;
|
|
2521
|
+
let ControllerOnion = (_dec$b = Controller({
|
|
2316
2522
|
path: 'onion',
|
|
2317
2523
|
tags: ['Onion'],
|
|
2318
2524
|
meta: {
|
|
2319
2525
|
mode: ['dev', 'test']
|
|
2320
2526
|
}
|
|
2321
|
-
}), _dec2$
|
|
2527
|
+
}), _dec2$b = BeanInfo({
|
|
2322
2528
|
module: "test-vona"
|
|
2323
|
-
}), _dec3$
|
|
2529
|
+
}), _dec3$a = Web.get('/'), _dec4$a = Aspect.aopMethod('a-orm:transaction', {
|
|
2324
2530
|
enable: true,
|
|
2325
2531
|
meta: {
|
|
2326
2532
|
mode: 'dev'
|
|
2327
2533
|
}
|
|
2328
|
-
}), _dec5$
|
|
2534
|
+
}), _dec5$a = Aspect.guardGlobal('a-user:passport', {
|
|
2329
2535
|
public: true
|
|
2330
|
-
}), _dec6$
|
|
2536
|
+
}), _dec6$a = Reflect.metadata("design:type", Function), _dec7$a = Reflect.metadata("design:paramtypes", []), _dec8$8 = Web.post('//echo'), _dec9$7 = Aspect.guardGlobal('a-user:passport', {
|
|
2331
2537
|
public: true
|
|
2332
|
-
}), _dec0$
|
|
2538
|
+
}), _dec0$7 = Aspect.middlewareGlobal('a-core:gate', {
|
|
2333
2539
|
gate: {
|
|
2334
2540
|
mode: 'dev'
|
|
2335
2541
|
}
|
|
2336
|
-
}), _dec1$
|
|
2542
|
+
}), _dec1$7 = Core.gate({
|
|
2337
2543
|
gate: {
|
|
2338
2544
|
mode: 'dev'
|
|
2339
2545
|
}
|
|
2340
|
-
}), _dec10$
|
|
2546
|
+
}), _dec10$6 = Aspect.aopMethod('a-orm:transaction', {
|
|
2341
2547
|
isolationLevel: 'SERIALIZABLE',
|
|
2342
2548
|
readOnly: true
|
|
2343
|
-
}), _dec11$
|
|
2549
|
+
}), _dec11$6 = Database.transaction({
|
|
2344
2550
|
isolationLevel: 'READ_COMMITTED',
|
|
2345
2551
|
readOnly: false
|
|
2346
|
-
}), _dec12$
|
|
2552
|
+
}), _dec12$6 = Api.body(v.optional(), z$1.string()), _dec13$6 = function (target, key) {
|
|
2347
2553
|
return Arg.query('id', v.default(0), z$1.number())(target, key, 0);
|
|
2348
|
-
}, _dec14$
|
|
2554
|
+
}, _dec14$5 = function (target, key) {
|
|
2349
2555
|
return Arg.query('name', z$1.number().optional())(target, key, 2);
|
|
2350
|
-
}, _dec15$
|
|
2556
|
+
}, _dec15$5 = function (target, key) {
|
|
2351
2557
|
return Arg.body(v.title($locale('User')), z$1.object({
|
|
2352
2558
|
id: z$1.number().openapi({
|
|
2353
2559
|
title: $locale('UserId')
|
|
2354
2560
|
})
|
|
2355
2561
|
}))(target, key, 3);
|
|
2356
|
-
}, _dec16$
|
|
2562
|
+
}, _dec16$5 = Reflect.metadata("design:type", Function), _dec17$5 = Reflect.metadata("design:paramtypes", [Number, String, String, typeof DtoUser === "undefined" ? Object : DtoUser]), _dec18$5 = Web.post('echo2/:userId/:userName'), _dec19$5 = Aspect.guardGlobal('a-user:passport', {
|
|
2357
2563
|
public: true
|
|
2358
|
-
}), _dec20$
|
|
2564
|
+
}), _dec20$5 = function (target, key) {
|
|
2359
2565
|
return Arg.param('userId', v.title($locale('UserId')), v.example('example:1'))(target, key, 0);
|
|
2360
|
-
}, _dec21$
|
|
2566
|
+
}, _dec21$3 = function (target, key) {
|
|
2361
2567
|
return Arg.param('userName', v.title($locale('UserId')), v.example('example:1'))(target, key, 1);
|
|
2362
2568
|
}, _dec22$2 = function (target, key) {
|
|
2363
2569
|
return Arg.query(DtoUser)(target, key, 2);
|
|
@@ -2388,7 +2594,7 @@ let ControllerOnion = (_dec$a = Controller({
|
|
|
2388
2594
|
return Arg.query('ids', v.default([1]), v.array(Number, {
|
|
2389
2595
|
separator: '-'
|
|
2390
2596
|
}))(target, key, 0);
|
|
2391
|
-
}, _dec43 = Reflect.metadata("design:type", Function), _dec44 = Reflect.metadata("design:paramtypes", [Array]), _dec45 = Web.get('echo6'), _dec46 = Passport.admin(), _dec47 = Reflect.metadata("design:type", Function), _dec48 = Reflect.metadata("design:paramtypes", []), _dec$
|
|
2597
|
+
}, _dec43 = Reflect.metadata("design:type", Function), _dec44 = Reflect.metadata("design:paramtypes", [Array]), _dec45 = Web.get('echo6'), _dec46 = Passport.admin(), _dec47 = Reflect.metadata("design:type", Function), _dec48 = Reflect.metadata("design:paramtypes", []), _dec$b(_class$b = _dec2$b(_class$b = (_class2$a = class ControllerOnion extends BeanBase {
|
|
2392
2598
|
index() {
|
|
2393
2599
|
return this.ctx.db.inTransaction;
|
|
2394
2600
|
// return 'Hello Vona';
|
|
@@ -2419,9 +2625,9 @@ let ControllerOnion = (_dec$a = Controller({
|
|
|
2419
2625
|
echo6() {
|
|
2420
2626
|
return this.bean.passport.isAuthenticated;
|
|
2421
2627
|
}
|
|
2422
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
2628
|
+
}, _applyDecoratedDescriptor(_class2$a.prototype, "index", [_dec3$a, _dec4$a, _dec5$a, _dec6$a, _dec7$a], Object.getOwnPropertyDescriptor(_class2$a.prototype, "index"), _class2$a.prototype), _applyDecoratedDescriptor(_class2$a.prototype, "echo", [_dec8$8, _dec9$7, _dec0$7, _dec1$7, _dec10$6, _dec11$6, _dec12$6, _dec13$6, _dec14$5, _dec15$5, _dec16$5, _dec17$5], Object.getOwnPropertyDescriptor(_class2$a.prototype, "echo"), _class2$a.prototype), _applyDecoratedDescriptor(_class2$a.prototype, "echo2", [_dec18$5, _dec19$5, _dec20$5, _dec21$3, _dec22$2, _dec23$2, _dec24$2, _dec25$2], Object.getOwnPropertyDescriptor(_class2$a.prototype, "echo2"), _class2$a.prototype), _applyDecoratedDescriptor(_class2$a.prototype, "echo3", [_dec26$1, _dec27$1, _dec28, _dec29, _dec30, _dec31, _dec32], Object.getOwnPropertyDescriptor(_class2$a.prototype, "echo3"), _class2$a.prototype), _applyDecoratedDescriptor(_class2$a.prototype, "echo4", [_dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39], Object.getOwnPropertyDescriptor(_class2$a.prototype, "echo4"), _class2$a.prototype), _applyDecoratedDescriptor(_class2$a.prototype, "echo5", [_dec40, _dec41, _dec42, _dec43, _dec44], Object.getOwnPropertyDescriptor(_class2$a.prototype, "echo5"), _class2$a.prototype), _applyDecoratedDescriptor(_class2$a.prototype, "echo6", [_dec45, _dec46, _dec47, _dec48], Object.getOwnPropertyDescriptor(_class2$a.prototype, "echo6"), _class2$a.prototype), _class2$a)) || _class$b) || _class$b);
|
|
2423
2629
|
|
|
2424
|
-
var _dec$
|
|
2630
|
+
var _dec$a, _dec2$a, _dec3$9, _dec4$9, _dec5$9, _dec6$9, _dec7$9, _dec8$7, _dec9$6, _dec0$6, _dec1$6, _dec10$5, _dec11$5, _dec12$5, _dec13$5, _dec14$4, _dec15$4, _dec16$4, _dec17$4, _dec18$4, _dec19$4, _dec20$4, _class$a, _class2$9;
|
|
2425
2631
|
function myCustomQueryTransform(_ctx, info) {
|
|
2426
2632
|
if (info.key === 'userName') {
|
|
2427
2633
|
info.params.where[info.fullName] = info.value;
|
|
@@ -2429,19 +2635,19 @@ function myCustomQueryTransform(_ctx, info) {
|
|
|
2429
2635
|
}
|
|
2430
2636
|
return undefined;
|
|
2431
2637
|
}
|
|
2432
|
-
let ControllerOrder = (_dec$
|
|
2638
|
+
let ControllerOrder = (_dec$a = Controller('order'), _dec2$a = BeanInfo({
|
|
2433
2639
|
module: "test-vona"
|
|
2434
|
-
}), _dec3$
|
|
2640
|
+
}), _dec3$9 = Web.post('create'), _dec4$9 = Api.body(DtoOrderResult), _dec5$9 = function (target, key) {
|
|
2435
2641
|
return Arg.body()(target, key, 0);
|
|
2436
|
-
}, _dec6$
|
|
2642
|
+
}, _dec6$9 = Reflect.metadata("design:type", Function), _dec7$9 = Reflect.metadata("design:paramtypes", [typeof DtoOrderCreate === "undefined" ? Object : DtoOrderCreate]), _dec8$7 = Web.post('update/:id'), _dec9$6 = function (target, key) {
|
|
2437
2643
|
return Arg.param('id')(target, key, 0);
|
|
2438
|
-
}, _dec0$
|
|
2644
|
+
}, _dec0$6 = function (target, key) {
|
|
2439
2645
|
return Arg.body()(target, key, 1);
|
|
2440
|
-
}, _dec1$
|
|
2646
|
+
}, _dec1$6 = Reflect.metadata("design:type", Function), _dec10$5 = Reflect.metadata("design:paramtypes", [typeof TableIdentity === "undefined" ? Object : TableIdentity, typeof DtoOrderUpdate === "undefined" ? Object : DtoOrderUpdate]), _dec11$5 = Web.get('findAll'), _dec12$5 = Api.body(v.array(DtoOrderResult)), _dec13$5 = function (target, key) {
|
|
2441
2647
|
return Arg.queryPro(DtoOrderQuery, myCustomQueryTransform)(target, key, 0);
|
|
2442
|
-
}, _dec14$
|
|
2648
|
+
}, _dec14$4 = Reflect.metadata("design:type", Function), _dec15$4 = Reflect.metadata("design:paramtypes", [typeof IQueryParams === "undefined" ? Object : IQueryParams]), _dec16$4 = Web.get('findMany'), _dec17$4 = Api.body(DtoOrderResultPage), _dec18$4 = function (target, key) {
|
|
2443
2649
|
return Arg.queryPro(DtoOrderQueryPage)(target, key, 0);
|
|
2444
|
-
}, _dec19$
|
|
2650
|
+
}, _dec19$4 = Reflect.metadata("design:type", Function), _dec20$4 = Reflect.metadata("design:paramtypes", [typeof IQueryParams === "undefined" ? Object : IQueryParams]), _dec$a(_class$a = _dec2$a(_class$a = (_class2$9 = class ControllerOrder extends BeanBase {
|
|
2445
2651
|
async create(data) {
|
|
2446
2652
|
return await this.scope.model.order.insert(data);
|
|
2447
2653
|
}
|
|
@@ -2467,25 +2673,25 @@ let ControllerOrder = (_dec$9 = Controller('order'), _dec2$9 = BeanInfo({
|
|
|
2467
2673
|
}
|
|
2468
2674
|
});
|
|
2469
2675
|
}
|
|
2470
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
2676
|
+
}, _applyDecoratedDescriptor(_class2$9.prototype, "create", [_dec3$9, _dec4$9, _dec5$9, _dec6$9, _dec7$9], Object.getOwnPropertyDescriptor(_class2$9.prototype, "create"), _class2$9.prototype), _applyDecoratedDescriptor(_class2$9.prototype, "update", [_dec8$7, _dec9$6, _dec0$6, _dec1$6, _dec10$5], Object.getOwnPropertyDescriptor(_class2$9.prototype, "update"), _class2$9.prototype), _applyDecoratedDescriptor(_class2$9.prototype, "findAll", [_dec11$5, _dec12$5, _dec13$5, _dec14$4, _dec15$4], Object.getOwnPropertyDescriptor(_class2$9.prototype, "findAll"), _class2$9.prototype), _applyDecoratedDescriptor(_class2$9.prototype, "findMany", [_dec16$4, _dec17$4, _dec18$4, _dec19$4, _dec20$4], Object.getOwnPropertyDescriptor(_class2$9.prototype, "findMany"), _class2$9.prototype), _class2$9)) || _class$a) || _class$a);
|
|
2471
2677
|
|
|
2472
|
-
var _dec$
|
|
2473
|
-
let ControllerPassport = (_dec$
|
|
2678
|
+
var _dec$9, _dec2$9, _dec3$8, _dec4$8, _dec5$8, _dec6$8, _dec7$8, _dec8$6, _dec9$5, _dec0$5, _dec1$5, _dec10$4, _dec11$4, _dec12$4, _dec13$4, _dec14$3, _dec15$3, _dec16$3, _dec17$3, _dec18$3, _dec19$3, _dec20$3, _dec21$2, _dec22$1, _dec23$1, _dec24$1, _dec25$1, _class$9, _class2$8;
|
|
2679
|
+
let ControllerPassport = (_dec$9 = Controller({
|
|
2474
2680
|
path: 'passport',
|
|
2475
2681
|
meta: {
|
|
2476
2682
|
mode: 'test'
|
|
2477
2683
|
}
|
|
2478
|
-
}), _dec2$
|
|
2684
|
+
}), _dec2$9 = Api.exclude(), _dec3$8 = BeanInfo({
|
|
2479
2685
|
module: "test-vona"
|
|
2480
|
-
}), _dec4$
|
|
2686
|
+
}), _dec4$8 = Web.get('echo/:name'), _dec5$8 = Passport.public(), _dec6$8 = function (target, key) {
|
|
2481
2687
|
return Arg.param('name')(target, key, 0);
|
|
2482
|
-
}, _dec7$
|
|
2688
|
+
}, _dec7$8 = function (target, key) {
|
|
2483
2689
|
return Arg.user()(target, key, 1);
|
|
2484
|
-
}, _dec8$
|
|
2690
|
+
}, _dec8$6 = Reflect.metadata("design:type", Function), _dec9$5 = Reflect.metadata("design:paramtypes", [String, typeof IUserBase === "undefined" ? Object : IUserBase]), _dec0$5 = Web.post('login'), _dec1$5 = Api.body(v.object(DtoJwtToken)), _dec10$4 = Passport.public(), _dec11$4 = function (target, key) {
|
|
2485
2691
|
return Arg.body('name')(target, key, 0);
|
|
2486
|
-
}, _dec12$
|
|
2692
|
+
}, _dec12$4 = Reflect.metadata("design:type", Function), _dec13$4 = Reflect.metadata("design:paramtypes", [String]), _dec14$3 = Web.get('isAuthenticated'), _dec15$3 = Reflect.metadata("design:type", Function), _dec16$3 = Reflect.metadata("design:paramtypes", []), _dec17$3 = Web.post('refresh'), _dec18$3 = Api.body(v.object(DtoJwtToken)), _dec19$3 = Passport.public(), _dec20$3 = function (target, key) {
|
|
2487
2693
|
return Arg.body('refreshToken')(target, key, 0);
|
|
2488
|
-
}, _dec21$
|
|
2694
|
+
}, _dec21$2 = Reflect.metadata("design:type", Function), _dec22$1 = Reflect.metadata("design:paramtypes", [String]), _dec23$1 = Web.post('logout'), _dec24$1 = Reflect.metadata("design:type", Function), _dec25$1 = Reflect.metadata("design:paramtypes", []), _dec$9(_class$9 = _dec2$9(_class$9 = _dec3$8(_class$9 = (_class2$8 = class ControllerPassport extends BeanBase {
|
|
2489
2695
|
echo(name, user) {
|
|
2490
2696
|
assert.equal(name, 'admin');
|
|
2491
2697
|
assert.equal(user.name, 'admin');
|
|
@@ -2507,19 +2713,19 @@ let ControllerPassport = (_dec$8 = Controller({
|
|
|
2507
2713
|
async logout() {
|
|
2508
2714
|
return await this.bean.passport.signout();
|
|
2509
2715
|
}
|
|
2510
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
2716
|
+
}, _applyDecoratedDescriptor(_class2$8.prototype, "echo", [_dec4$8, _dec5$8, _dec6$8, _dec7$8, _dec8$6, _dec9$5], Object.getOwnPropertyDescriptor(_class2$8.prototype, "echo"), _class2$8.prototype), _applyDecoratedDescriptor(_class2$8.prototype, "login", [_dec0$5, _dec1$5, _dec10$4, _dec11$4, _dec12$4, _dec13$4], Object.getOwnPropertyDescriptor(_class2$8.prototype, "login"), _class2$8.prototype), _applyDecoratedDescriptor(_class2$8.prototype, "isAuthenticated", [_dec14$3, _dec15$3, _dec16$3], Object.getOwnPropertyDescriptor(_class2$8.prototype, "isAuthenticated"), _class2$8.prototype), _applyDecoratedDescriptor(_class2$8.prototype, "refresh", [_dec17$3, _dec18$3, _dec19$3, _dec20$3, _dec21$2, _dec22$1], Object.getOwnPropertyDescriptor(_class2$8.prototype, "refresh"), _class2$8.prototype), _applyDecoratedDescriptor(_class2$8.prototype, "logout", [_dec23$1, _dec24$1, _dec25$1], Object.getOwnPropertyDescriptor(_class2$8.prototype, "logout"), _class2$8.prototype), _class2$8)) || _class$9) || _class$9) || _class$9);
|
|
2511
2717
|
|
|
2512
|
-
var _dec$
|
|
2513
|
-
let ControllerPerformAction = (_dec$
|
|
2718
|
+
var _dec$8, _dec2$8, _dec3$7, _dec4$7, _dec5$7, _dec6$7, _dec7$7, _dec8$5, _class$8, _class2$7;
|
|
2719
|
+
let ControllerPerformAction = (_dec$8 = Controller({
|
|
2514
2720
|
path: 'performAction',
|
|
2515
2721
|
meta: {
|
|
2516
2722
|
mode: 'test'
|
|
2517
2723
|
}
|
|
2518
|
-
}), _dec2$
|
|
2724
|
+
}), _dec2$8 = Api.exclude(), _dec3$7 = BeanInfo({
|
|
2519
2725
|
module: "test-vona"
|
|
2520
|
-
}), _dec4$
|
|
2726
|
+
}), _dec4$7 = Web.post('echo'), _dec5$7 = Passport.public(), _dec6$7 = function (target, key) {
|
|
2521
2727
|
return Arg.body('id')(target, key, 0);
|
|
2522
|
-
}, _dec7$
|
|
2728
|
+
}, _dec7$7 = Reflect.metadata("design:type", Function), _dec8$5 = Reflect.metadata("design:paramtypes", [Number]), _dec$8(_class$8 = _dec2$8(_class$8 = _dec3$7(_class$8 = (_class2$7 = class ControllerPerformAction extends BeanBase {
|
|
2523
2729
|
echo(id) {
|
|
2524
2730
|
const url = this.scope.util.combineApiPath('performAction/echo');
|
|
2525
2731
|
return {
|
|
@@ -2527,20 +2733,40 @@ let ControllerPerformAction = (_dec$7 = Controller({
|
|
|
2527
2733
|
url
|
|
2528
2734
|
};
|
|
2529
2735
|
}
|
|
2530
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
2736
|
+
}, _applyDecoratedDescriptor(_class2$7.prototype, "echo", [_dec4$7, _dec5$7, _dec6$7, _dec7$7, _dec8$5], Object.getOwnPropertyDescriptor(_class2$7.prototype, "echo"), _class2$7.prototype), _class2$7)) || _class$8) || _class$8) || _class$8);
|
|
2531
2737
|
|
|
2532
|
-
var _dec$
|
|
2533
|
-
let ControllerPost = (_dec$
|
|
2738
|
+
var _dec$7, _dec2$7, _dec3$6, _dec4$6, _dec5$6, _dec6$6, _dec7$6, _dec8$4, _dec9$4, _dec0$4, _dec1$4, _dec10$3, _dec11$3, _dec12$3, _dec13$3, _dec14$2, _dec15$2, _dec16$2, _dec17$2, _dec18$2, _dec19$2, _dec20$2, _class$7, _class2$6;
|
|
2739
|
+
let ControllerPost = (_dec$7 = Controller('post', {
|
|
2534
2740
|
meta: {
|
|
2535
2741
|
mode: ['test', 'dev']
|
|
2536
2742
|
}
|
|
2537
|
-
}), _dec2$
|
|
2743
|
+
}), _dec2$7 = BeanInfo({
|
|
2538
2744
|
module: "test-vona"
|
|
2539
|
-
}), _dec3$
|
|
2745
|
+
}), _dec3$6 = Web.get('group'), _dec4$6 = Api.body(v.array(DtoPostGroup)), _dec5$6 = Reflect.metadata("design:type", Function), _dec6$6 = Reflect.metadata("design:paramtypes", []), _dec7$6 = Web.get('aggregate'), _dec8$4 = Api.body(DtoPostAggregate), _dec9$4 = Reflect.metadata("design:type", Function), _dec0$4 = Reflect.metadata("design:paramtypes", []), _dec1$4 = Web.get('findManyEcho'), _dec10$3 = Api.body(DtoPostQueryRes), _dec11$3 = Passport.public(), _dec12$3 = function (target, key) {
|
|
2540
2746
|
return Arg.queryPro(DtoPostQuery)(target, key, 0);
|
|
2541
|
-
},
|
|
2747
|
+
}, _dec13$3 = Reflect.metadata("design:type", Function), _dec14$2 = Reflect.metadata("design:paramtypes", [typeof IQueryParams === "undefined" ? Object : IQueryParams]), _dec15$2 = Web.get('findMany'), _dec16$2 = Api.body(DtoPostQueryRes), _dec17$2 = Passport.public(), _dec18$2 = function (target, key) {
|
|
2542
2748
|
return Arg.queryPro(DtoPostQuery)(target, key, 0);
|
|
2543
|
-
},
|
|
2749
|
+
}, _dec19$2 = Reflect.metadata("design:type", Function), _dec20$2 = Reflect.metadata("design:paramtypes", [typeof IQueryParams === "undefined" ? Object : IQueryParams]), _dec$7(_class$7 = _dec2$7(_class$7 = (_class2$6 = class ControllerPost extends BeanBase {
|
|
2750
|
+
async group() {
|
|
2751
|
+
return await this.scope.model.post.group({
|
|
2752
|
+
groups: 'userId',
|
|
2753
|
+
aggrs: {
|
|
2754
|
+
count: '*',
|
|
2755
|
+
sum: 'stars'
|
|
2756
|
+
}
|
|
2757
|
+
});
|
|
2758
|
+
}
|
|
2759
|
+
async aggregate() {
|
|
2760
|
+
return await this.scope.model.post.aggregate({
|
|
2761
|
+
aggrs: {
|
|
2762
|
+
count: ['*', 'stars'],
|
|
2763
|
+
sum: 'stars',
|
|
2764
|
+
avg: 'stars',
|
|
2765
|
+
min: 'stars',
|
|
2766
|
+
max: 'stars'
|
|
2767
|
+
}
|
|
2768
|
+
});
|
|
2769
|
+
}
|
|
2544
2770
|
findManyEcho(params) {
|
|
2545
2771
|
return params;
|
|
2546
2772
|
}
|
|
@@ -2550,17 +2776,17 @@ let ControllerPost = (_dec$6 = Controller('post', {
|
|
|
2550
2776
|
async findMany(params) {
|
|
2551
2777
|
return await this.scope.service.post.findMany(params);
|
|
2552
2778
|
}
|
|
2553
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
2779
|
+
}, _applyDecoratedDescriptor(_class2$6.prototype, "group", [_dec3$6, _dec4$6, _dec5$6, _dec6$6], Object.getOwnPropertyDescriptor(_class2$6.prototype, "group"), _class2$6.prototype), _applyDecoratedDescriptor(_class2$6.prototype, "aggregate", [_dec7$6, _dec8$4, _dec9$4, _dec0$4], Object.getOwnPropertyDescriptor(_class2$6.prototype, "aggregate"), _class2$6.prototype), _applyDecoratedDescriptor(_class2$6.prototype, "findManyEcho", [_dec1$4, _dec10$3, _dec11$3, _dec12$3, _dec13$3, _dec14$2], Object.getOwnPropertyDescriptor(_class2$6.prototype, "findManyEcho"), _class2$6.prototype), _applyDecoratedDescriptor(_class2$6.prototype, "findMany", [_dec15$2, _dec16$2, _dec17$2, _dec18$2, _dec19$2, _dec20$2], Object.getOwnPropertyDescriptor(_class2$6.prototype, "findMany"), _class2$6.prototype), _class2$6)) || _class$7) || _class$7);
|
|
2554
2780
|
|
|
2555
|
-
var _dec$
|
|
2556
|
-
let ControllerQueue = (_dec$
|
|
2781
|
+
var _dec$6, _dec2$6, _dec3$5, _dec4$5, _dec5$5, _dec6$5, _dec7$5, _dec8$3, _dec9$3, _dec0$3, _dec1$3, _class$6, _class2$5;
|
|
2782
|
+
let ControllerQueue = (_dec$6 = Controller({
|
|
2557
2783
|
path: 'queue',
|
|
2558
2784
|
meta: {
|
|
2559
2785
|
mode: 'test'
|
|
2560
2786
|
}
|
|
2561
|
-
}), _dec2$
|
|
2787
|
+
}), _dec2$6 = Api.exclude(), _dec3$5 = BeanInfo({
|
|
2562
2788
|
module: "test-vona"
|
|
2563
|
-
}), _dec4$
|
|
2789
|
+
}), _dec4$5 = Web.post('pushAsync'), _dec5$5 = Passport.public(), _dec6$5 = Reflect.metadata("design:type", Function), _dec7$5 = Reflect.metadata("design:paramtypes", []), _dec8$3 = Web.post('push'), _dec9$3 = Passport.public(), _dec0$3 = Reflect.metadata("design:type", Function), _dec1$3 = Reflect.metadata("design:paramtypes", []), _dec$6(_class$6 = _dec2$6(_class$6 = _dec3$5(_class$6 = (_class2$5 = class ControllerQueue extends BeanBase {
|
|
2564
2790
|
async pushAsync() {
|
|
2565
2791
|
const res = await this.scope.queue.test.pushAsync({
|
|
2566
2792
|
a: 1,
|
|
@@ -2575,7 +2801,33 @@ let ControllerQueue = (_dec$5 = Controller({
|
|
|
2575
2801
|
b: 3
|
|
2576
2802
|
});
|
|
2577
2803
|
}
|
|
2578
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
2804
|
+
}, _applyDecoratedDescriptor(_class2$5.prototype, "pushAsync", [_dec4$5, _dec5$5, _dec6$5, _dec7$5], Object.getOwnPropertyDescriptor(_class2$5.prototype, "pushAsync"), _class2$5.prototype), _applyDecoratedDescriptor(_class2$5.prototype, "push", [_dec8$3, _dec9$3, _dec0$3, _dec1$3], Object.getOwnPropertyDescriptor(_class2$5.prototype, "push"), _class2$5.prototype), _class2$5)) || _class$6) || _class$6) || _class$6);
|
|
2805
|
+
|
|
2806
|
+
var _dec$5, _dec2$5, _dec3$4, _dec4$4, _dec5$4, _dec6$4, _dec7$4, _dec8$2, _dec9$2, _dec0$2, _dec1$2, _dec10$2, _dec11$2, _dec12$2, _dec13$2, _dec14$1, _dec15$1, _dec16$1, _dec17$1, _dec18$1, _dec19$1, _dec20$1, _dec21$1, _class$5, _class2$4;
|
|
2807
|
+
let ControllerSerializer = (_dec$5 = Controller({
|
|
2808
|
+
path: 'serializer',
|
|
2809
|
+
meta: {
|
|
2810
|
+
mode: ['test', 'dev']
|
|
2811
|
+
}
|
|
2812
|
+
}), _dec2$5 = BeanInfo({
|
|
2813
|
+
module: "test-vona"
|
|
2814
|
+
}), _dec3$4 = Web.post('echoSimple'), _dec4$4 = Api.body(DtoSerializerSimple), _dec5$4 = Passport.public(), _dec6$4 = Serializer.enable(), _dec7$4 = function (target, key) {
|
|
2815
|
+
return Arg.body()(target, key, 0);
|
|
2816
|
+
}, _dec8$2 = Reflect.metadata("design:type", Function), _dec9$2 = Reflect.metadata("design:paramtypes", [typeof DtoSerializerSimple === "undefined" ? Object : DtoSerializerSimple]), _dec0$2 = Web.post('echoArray'), _dec1$2 = Api.body(v.array(DtoSerializerArray)), _dec10$2 = Passport.public(), _dec11$2 = Serializer.enable(), _dec12$2 = function (target, key) {
|
|
2817
|
+
return Arg.body(v.array(DtoSerializerArray))(target, key, 0);
|
|
2818
|
+
}, _dec13$2 = Reflect.metadata("design:type", Function), _dec14$1 = Reflect.metadata("design:paramtypes", [Array]), _dec15$1 = Web.post('echoLazy'), _dec16$1 = Api.body(DtoSerializerLazy), _dec17$1 = Passport.public(), _dec18$1 = Serializer.enable(), _dec19$1 = function (target, key) {
|
|
2819
|
+
return Arg.body(DtoSerializerLazy)(target, key, 0);
|
|
2820
|
+
}, _dec20$1 = Reflect.metadata("design:type", Function), _dec21$1 = Reflect.metadata("design:paramtypes", [typeof DtoSerializerLazy === "undefined" ? Object : DtoSerializerLazy]), _dec$5(_class$5 = _dec2$5(_class$5 = (_class2$4 = class ControllerSerializer extends BeanBase {
|
|
2821
|
+
echoSimple(data) {
|
|
2822
|
+
return data;
|
|
2823
|
+
}
|
|
2824
|
+
echoArray(data) {
|
|
2825
|
+
return data;
|
|
2826
|
+
}
|
|
2827
|
+
echoLazy(data) {
|
|
2828
|
+
return data;
|
|
2829
|
+
}
|
|
2830
|
+
}, _applyDecoratedDescriptor(_class2$4.prototype, "echoSimple", [_dec3$4, _dec4$4, _dec5$4, _dec6$4, _dec7$4, _dec8$2, _dec9$2], Object.getOwnPropertyDescriptor(_class2$4.prototype, "echoSimple"), _class2$4.prototype), _applyDecoratedDescriptor(_class2$4.prototype, "echoArray", [_dec0$2, _dec1$2, _dec10$2, _dec11$2, _dec12$2, _dec13$2, _dec14$1], Object.getOwnPropertyDescriptor(_class2$4.prototype, "echoArray"), _class2$4.prototype), _applyDecoratedDescriptor(_class2$4.prototype, "echoLazy", [_dec15$1, _dec16$1, _dec17$1, _dec18$1, _dec19$1, _dec20$1, _dec21$1], Object.getOwnPropertyDescriptor(_class2$4.prototype, "echoLazy"), _class2$4.prototype), _class2$4)) || _class$5) || _class$5);
|
|
2579
2831
|
|
|
2580
2832
|
var _dec$4, _dec2$4, _dec3$3, _dec4$3, _dec5$3, _dec6$3, _dec7$3, _class$4, _class2$3;
|
|
2581
2833
|
let ControllerSummer = (_dec$4 = Controller({
|
|
@@ -2884,4 +3136,4 @@ function $locale(key) {
|
|
|
2884
3136
|
}
|
|
2885
3137
|
/** scope: end */
|
|
2886
3138
|
|
|
2887
|
-
export { $locale, AopMethodTest, AopRegExp, AopSimple, BeanTestCtx, BroadcastTest, CacheMemTest, CacheRedisPost, CacheRedisTest, ControllerBean, ControllerCacheMem, ControllerCacheRedis, ControllerCaptcha, ControllerDtoTest, ControllerGuardPassport, ControllerOnion, ControllerOrder, ControllerPassport, ControllerPerformAction, ControllerPost, ControllerQueue, ControllerSummer, ControllerTail, ControllerTransaction, ControllerUpload, DtoCategoryTree, DtoOrderCreate, DtoOrderQuery, DtoOrderQueryPage, DtoOrderResult, DtoOrderResultPage, DtoOrderUpdate, DtoPostCreate, DtoPostQuery, DtoPostQueryRes, DtoProfile, DtoRoleLazy,
|
|
3139
|
+
export { $locale, AopMethodTest, AopRegExp, AopSimple, BeanTestCtx, BroadcastTest, CacheMemTest, CacheRedisPost, CacheRedisTest, ControllerBean, ControllerCacheMem, ControllerCacheRedis, ControllerCaptcha, ControllerDtoTest, ControllerGuardPassport, ControllerOnion, ControllerOrder, ControllerPassport, ControllerPerformAction, ControllerPost, ControllerQueue, ControllerSerializer, ControllerSummer, ControllerTail, ControllerTransaction, ControllerUpload, DtoCategoryTree, DtoOrderCreate, DtoOrderQuery, DtoOrderQueryPage, DtoOrderResult, DtoOrderResultPage, DtoOrderUpdate, DtoPostAggregate, DtoPostCreate, DtoPostGroup, DtoPostQuery, DtoPostQueryRes, DtoProfile, DtoRoleLazy, DtoSerializerArray, DtoSerializerLazy, DtoSerializerSimple, DtoSignin, DtoUser, DtoUserCreate, DtoUserLazy, DtoUserUpdate, EntityCategory, EntityOrder, EntityPost, EntityPostContent, EntityProduct, EntityRole, EntityRoleUser, EntityTest, EntityUser, EventHelloEcho, EventListenerHelloEcho, MetaVersion, ModelCategory, ModelCategoryChain, ModelOrder, ModelOrderStats, ModelPost, ModelPostContent, ModelProduct, ModelRole, ModelRoleUser, ModelTest, ModelTestDynamicTable, ModelUser, ModelUserStats, ModelUserStatsGroup, QueueTest, ScheduleTest, ScheduleTest3, ScopeModuleTestVona, SensitiveEmail, SerializerTransformEmail, ServiceAopMethod, ServiceCaching, ServiceCategory, ServiceOrder, ServicePost, ServiceProduct, ServiceTest, ServiceTestApp, ServiceTestClass, ServiceTestData, ServiceTransaction, ServiceUser, SummerCacheTest, config, locales };
|