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