vona-module-test-vona 5.0.28 → 5.0.29
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 +636 -18
- package/dist/bean/cacheMem.test.d.ts +4 -2
- package/dist/config/locale/en-us.d.ts +1 -0
- package/dist/config/locale/zh-cn.d.ts +1 -0
- package/dist/controller/dtoTest.d.ts +26 -0
- package/dist/dto/categoryTree.d.ts +9 -0
- package/dist/dto/roleLazy.d.ts +8 -0
- package/dist/dto/user.d.ts +1 -1
- package/dist/dto/userCreate.d.ts +15 -0
- package/dist/dto/userLazy.d.ts +9 -0
- package/dist/dto/userUpdate.d.ts +15 -0
- package/dist/entity/category.d.ts +8 -0
- package/dist/entity/post.d.ts +9 -0
- package/dist/entity/postContent.d.ts +8 -0
- package/dist/entity/role.d.ts +7 -0
- package/dist/entity/roleUser.d.ts +8 -0
- package/dist/entity/test.d.ts +4 -2
- package/dist/entity/user.d.ts +9 -0
- package/dist/index.js +724 -173
- package/dist/model/category.d.ts +7 -0
- package/dist/model/post.d.ts +7 -0
- package/dist/model/postContent.d.ts +7 -0
- package/dist/model/role.d.ts +7 -0
- package/dist/model/roleUser.d.ts +7 -0
- package/dist/model/test.d.ts +4 -1
- package/dist/model/testDynamicTable.d.ts +4 -1
- package/dist/model/user.d.ts +7 -0
- package/dist/model/userStats.d.ts +7 -0
- package/dist/model/userStatsGroup.d.ts +7 -0
- package/dist/service/testData.d.ts +18 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BeanInfo, BeanAopBase, BeanAopMethodBase, BeanBase, cast, retry, BeanScopeBase } from 'vona';
|
|
2
2
|
import { Aop, AopMethod, Aspect } from 'vona-module-a-aspect';
|
|
3
|
-
import { Entity, EntityBase, Model, BeanModelBase, Database } from 'vona-module-a-database';
|
|
4
3
|
import { Api, v, Arg } from 'vona-module-a-openapi';
|
|
4
|
+
import { Entity, EntityBase, Model, $relation, BeanModelBase, Database, $Dto, TableIdentity as TableIdentity$1 } from 'vona-module-a-orm';
|
|
5
5
|
import moment from 'moment';
|
|
6
6
|
import { Bean, Service, Scope } from 'vona-module-a-bean';
|
|
7
7
|
import { getKeyHash, CacheMem, BeanCacheMemBase, CacheRedis, BeanCacheRedisBase } from 'vona-module-a-cache';
|
|
@@ -21,15 +21,15 @@ import { z } from 'zod';
|
|
|
21
21
|
import { DtoJwtToken } from 'vona-module-a-jwt';
|
|
22
22
|
import { SymbolUploadValue } from 'vona-module-a-upload';
|
|
23
23
|
|
|
24
|
-
var _dec$
|
|
25
|
-
let AopRegExp = (_dec$
|
|
24
|
+
var _dec$W, _dec2$W, _class$W;
|
|
25
|
+
let AopRegExp = (_dec$W = Aop({
|
|
26
26
|
match: [/^test-vona\.service\.test\w+$/, 'testCtx'],
|
|
27
27
|
meta: {
|
|
28
28
|
mode: 'test'
|
|
29
29
|
}
|
|
30
|
-
}), _dec2$
|
|
30
|
+
}), _dec2$W = BeanInfo({
|
|
31
31
|
module: "test-vona"
|
|
32
|
-
}), _dec$
|
|
32
|
+
}), _dec$W(_class$W = _dec2$W(_class$W = class AopRegExp extends BeanAopBase {
|
|
33
33
|
__get_name__(next) {
|
|
34
34
|
const value = next();
|
|
35
35
|
return `${value}:regexpaop`;
|
|
@@ -51,24 +51,24 @@ let AopRegExp = (_dec$B = Aop({
|
|
|
51
51
|
const result = await next();
|
|
52
52
|
return `${result}:regexpaop`;
|
|
53
53
|
}
|
|
54
|
-
}) || _class$
|
|
54
|
+
}) || _class$W) || _class$W);
|
|
55
55
|
|
|
56
|
-
var _dec$
|
|
56
|
+
var _dec$V, _dec2$V, _class$V;
|
|
57
57
|
class AopSimpleBase extends BeanAopBase {
|
|
58
58
|
actionSync(_args, next) {
|
|
59
59
|
const result = next();
|
|
60
60
|
return `${result}:simpleaop`;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
let AopSimple = (_dec$
|
|
63
|
+
let AopSimple = (_dec$V = Aop({
|
|
64
64
|
match: 'testCtx',
|
|
65
65
|
dependencies: 'test-vona:regExp',
|
|
66
66
|
meta: {
|
|
67
67
|
mode: 'test'
|
|
68
68
|
}
|
|
69
|
-
}), _dec2$
|
|
69
|
+
}), _dec2$V = BeanInfo({
|
|
70
70
|
module: "test-vona"
|
|
71
|
-
}), _dec$
|
|
71
|
+
}), _dec$V(_class$V = _dec2$V(_class$V = class AopSimple extends AopSimpleBase {
|
|
72
72
|
// magic
|
|
73
73
|
__get__(prop, next) {
|
|
74
74
|
const value = next();
|
|
@@ -108,14 +108,14 @@ let AopSimple = (_dec$A = Aop({
|
|
|
108
108
|
const result = await next();
|
|
109
109
|
return `${result}:simpleaop`;
|
|
110
110
|
}
|
|
111
|
-
}) || _class$
|
|
111
|
+
}) || _class$V) || _class$V);
|
|
112
112
|
|
|
113
|
-
var _dec$
|
|
114
|
-
let AopMethodTest = (_dec$
|
|
113
|
+
var _dec$U, _dec2$U, _class$U;
|
|
114
|
+
let AopMethodTest = (_dec$U = AopMethod({
|
|
115
115
|
wrapper: ''
|
|
116
|
-
}), _dec2$
|
|
116
|
+
}), _dec2$U = BeanInfo({
|
|
117
117
|
module: "test-vona"
|
|
118
|
-
}), _dec$
|
|
118
|
+
}), _dec$U(_class$U = _dec2$U(_class$U = class AopMethodTest extends BeanAopMethodBase {
|
|
119
119
|
get(options, next, _receiver, _prop) {
|
|
120
120
|
const res = next();
|
|
121
121
|
return this._wrapper(options.wrapper, res);
|
|
@@ -142,7 +142,7 @@ let AopMethodTest = (_dec$z = AopMethod({
|
|
|
142
142
|
if (index === data.length - wrapper.length) data = data.substring(0, index);
|
|
143
143
|
return data;
|
|
144
144
|
}
|
|
145
|
-
}) || _class$
|
|
145
|
+
}) || _class$U) || _class$U);
|
|
146
146
|
|
|
147
147
|
function _applyDecoratedDescriptor(i, e, r, n, l) {
|
|
148
148
|
var a = {};
|
|
@@ -161,47 +161,321 @@ function _initializerDefineProperty(e, i, r, l) {
|
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
var _dec$
|
|
165
|
-
let
|
|
164
|
+
var _dec$T, _dec2$T, _dec3$q, _dec4$q, _dec5$p, _dec6$p, _class$T, _class2$q, _descriptor$a, _descriptor2$9;
|
|
165
|
+
let EntityCategory = (_dec$T = Entity('testVonaCategory'), _dec2$T = BeanInfo({
|
|
166
166
|
module: "test-vona"
|
|
167
|
-
}), _dec3$
|
|
167
|
+
}), _dec3$q = Api.field(), _dec4$q = Reflect.metadata("design:type", String), _dec5$p = Api.field(v.tableIdentity()), _dec6$p = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$T(_class$T = _dec2$T(_class$T = (_class2$q = class EntityCategory extends EntityBase {
|
|
168
168
|
constructor(...args) {
|
|
169
169
|
super(...args);
|
|
170
|
-
_initializerDefineProperty(this, "
|
|
171
|
-
_initializerDefineProperty(this, "
|
|
170
|
+
_initializerDefineProperty(this, "name", _descriptor$a, this);
|
|
171
|
+
_initializerDefineProperty(this, "categoryIdParent", _descriptor2$9, this);
|
|
172
172
|
}
|
|
173
|
-
}, _descriptor$
|
|
173
|
+
}, _descriptor$a = _applyDecoratedDescriptor(_class2$q.prototype, "name", [_dec3$q, _dec4$q], {
|
|
174
174
|
configurable: true,
|
|
175
175
|
enumerable: true,
|
|
176
176
|
writable: true,
|
|
177
177
|
initializer: null
|
|
178
|
-
}), _descriptor2$
|
|
178
|
+
}), _descriptor2$9 = _applyDecoratedDescriptor(_class2$q.prototype, "categoryIdParent", [_dec5$p, _dec6$p], {
|
|
179
179
|
configurable: true,
|
|
180
180
|
enumerable: true,
|
|
181
181
|
writable: true,
|
|
182
182
|
initializer: null
|
|
183
|
-
}), _class2$
|
|
183
|
+
}), _class2$q)) || _class$T) || _class$T);
|
|
184
184
|
|
|
185
|
-
var _dec$
|
|
186
|
-
let
|
|
185
|
+
var _dec$S, _dec2$S, _dec3$p, _dec4$p, _dec5$o, _dec6$o, _dec7$k, _dec8$g, _class$S, _class2$p, _descriptor$9, _descriptor2$8, _descriptor3$4;
|
|
186
|
+
let EntityPost = (_dec$S = Entity('testVonaPost'), _dec2$S = BeanInfo({
|
|
187
|
+
module: "test-vona"
|
|
188
|
+
}), _dec3$p = Api.field(), _dec4$p = Reflect.metadata("design:type", String), _dec5$o = Api.field(v.tableIdentity()), _dec6$o = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec7$k = Api.field(v.optional()), _dec8$g = Reflect.metadata("design:type", Number), _dec$S(_class$S = _dec2$S(_class$S = (_class2$p = class EntityPost extends EntityBase {
|
|
189
|
+
constructor(...args) {
|
|
190
|
+
super(...args);
|
|
191
|
+
_initializerDefineProperty(this, "title", _descriptor$9, this);
|
|
192
|
+
_initializerDefineProperty(this, "userId", _descriptor2$8, this);
|
|
193
|
+
_initializerDefineProperty(this, "stars", _descriptor3$4, this);
|
|
194
|
+
}
|
|
195
|
+
}, _descriptor$9 = _applyDecoratedDescriptor(_class2$p.prototype, "title", [_dec3$p, _dec4$p], {
|
|
196
|
+
configurable: true,
|
|
197
|
+
enumerable: true,
|
|
198
|
+
writable: true,
|
|
199
|
+
initializer: null
|
|
200
|
+
}), _descriptor2$8 = _applyDecoratedDescriptor(_class2$p.prototype, "userId", [_dec5$o, _dec6$o], {
|
|
201
|
+
configurable: true,
|
|
202
|
+
enumerable: true,
|
|
203
|
+
writable: true,
|
|
204
|
+
initializer: null
|
|
205
|
+
}), _descriptor3$4 = _applyDecoratedDescriptor(_class2$p.prototype, "stars", [_dec7$k, _dec8$g], {
|
|
206
|
+
configurable: true,
|
|
207
|
+
enumerable: true,
|
|
208
|
+
writable: true,
|
|
209
|
+
initializer: null
|
|
210
|
+
}), _class2$p)) || _class$S) || _class$S);
|
|
211
|
+
|
|
212
|
+
var _dec$R, _dec2$R, _dec3$o, _dec4$o, _dec5$n, _dec6$n, _class$R, _class2$o, _descriptor$8, _descriptor2$7;
|
|
213
|
+
let EntityPostContent = (_dec$R = Entity('testVonaPostContent'), _dec2$R = BeanInfo({
|
|
214
|
+
module: "test-vona"
|
|
215
|
+
}), _dec3$o = Api.field(), _dec4$o = Reflect.metadata("design:type", String), _dec5$n = Api.field(v.tableIdentity()), _dec6$n = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$R(_class$R = _dec2$R(_class$R = (_class2$o = class EntityPostContent extends EntityBase {
|
|
216
|
+
constructor(...args) {
|
|
217
|
+
super(...args);
|
|
218
|
+
_initializerDefineProperty(this, "content", _descriptor$8, this);
|
|
219
|
+
_initializerDefineProperty(this, "postId", _descriptor2$7, this);
|
|
220
|
+
}
|
|
221
|
+
}, _descriptor$8 = _applyDecoratedDescriptor(_class2$o.prototype, "content", [_dec3$o, _dec4$o], {
|
|
222
|
+
configurable: true,
|
|
223
|
+
enumerable: true,
|
|
224
|
+
writable: true,
|
|
225
|
+
initializer: null
|
|
226
|
+
}), _descriptor2$7 = _applyDecoratedDescriptor(_class2$o.prototype, "postId", [_dec5$n, _dec6$n], {
|
|
227
|
+
configurable: true,
|
|
228
|
+
enumerable: true,
|
|
229
|
+
writable: true,
|
|
230
|
+
initializer: null
|
|
231
|
+
}), _class2$o)) || _class$R) || _class$R);
|
|
232
|
+
|
|
233
|
+
var _dec$Q, _dec2$Q, _dec3$n, _dec4$n, _class$Q, _class2$n, _descriptor$7;
|
|
234
|
+
let EntityRole = (_dec$Q = Entity('testVonaRole'), _dec2$Q = BeanInfo({
|
|
235
|
+
module: "test-vona"
|
|
236
|
+
}), _dec3$n = Api.field(), _dec4$n = Reflect.metadata("design:type", String), _dec$Q(_class$Q = _dec2$Q(_class$Q = (_class2$n = class EntityRole extends EntityBase {
|
|
237
|
+
constructor(...args) {
|
|
238
|
+
super(...args);
|
|
239
|
+
_initializerDefineProperty(this, "name", _descriptor$7, this);
|
|
240
|
+
}
|
|
241
|
+
}, _descriptor$7 = _applyDecoratedDescriptor(_class2$n.prototype, "name", [_dec3$n, _dec4$n], {
|
|
242
|
+
configurable: true,
|
|
243
|
+
enumerable: true,
|
|
244
|
+
writable: true,
|
|
245
|
+
initializer: null
|
|
246
|
+
}), _class2$n)) || _class$Q) || _class$Q);
|
|
247
|
+
|
|
248
|
+
var _dec$P, _dec2$P, _dec3$m, _dec4$m, _dec5$m, _dec6$m, _class$P, _class2$m, _descriptor$6, _descriptor2$6;
|
|
249
|
+
let EntityRoleUser = (_dec$P = Entity('testVonaRoleUser'), _dec2$P = BeanInfo({
|
|
250
|
+
module: "test-vona"
|
|
251
|
+
}), _dec3$m = Api.field(v.tableIdentity()), _dec4$m = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec5$m = Api.field(v.tableIdentity()), _dec6$m = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec$P(_class$P = _dec2$P(_class$P = (_class2$m = class EntityRoleUser extends EntityBase {
|
|
252
|
+
constructor(...args) {
|
|
253
|
+
super(...args);
|
|
254
|
+
_initializerDefineProperty(this, "userId", _descriptor$6, this);
|
|
255
|
+
_initializerDefineProperty(this, "roleId", _descriptor2$6, this);
|
|
256
|
+
}
|
|
257
|
+
}, _descriptor$6 = _applyDecoratedDescriptor(_class2$m.prototype, "userId", [_dec3$m, _dec4$m], {
|
|
258
|
+
configurable: true,
|
|
259
|
+
enumerable: true,
|
|
260
|
+
writable: true,
|
|
261
|
+
initializer: null
|
|
262
|
+
}), _descriptor2$6 = _applyDecoratedDescriptor(_class2$m.prototype, "roleId", [_dec5$m, _dec6$m], {
|
|
263
|
+
configurable: true,
|
|
264
|
+
enumerable: true,
|
|
265
|
+
writable: true,
|
|
266
|
+
initializer: null
|
|
267
|
+
}), _class2$m)) || _class$P) || _class$P);
|
|
268
|
+
|
|
269
|
+
var _dec$O, _dec2$O, _dec3$l, _dec4$l, _dec5$l, _dec6$l, _dec7$j, _dec8$f, _class$O, _class2$l, _descriptor$5, _descriptor2$5, _descriptor3$3;
|
|
270
|
+
let EntityTest = (_dec$O = Entity('testVonaTest', {
|
|
271
|
+
openapi: {
|
|
272
|
+
title: $locale('Test')
|
|
273
|
+
}
|
|
274
|
+
}), _dec2$O = BeanInfo({
|
|
275
|
+
module: "test-vona"
|
|
276
|
+
}), _dec3$l = Api.field(v.title($locale('Test'))), _dec4$l = Reflect.metadata("design:type", String), _dec5$l = Api.field(), _dec6$l = Reflect.metadata("design:type", String), _dec7$j = Api.field(v.default(() => {
|
|
277
|
+
return new Date();
|
|
278
|
+
})), _dec8$f = Reflect.metadata("design:type", typeof Date === "undefined" ? Object : Date), _dec$O(_class$O = _dec2$O(_class$O = (_class2$l = class EntityTest extends EntityBase {
|
|
279
|
+
constructor(...args) {
|
|
280
|
+
super(...args);
|
|
281
|
+
_initializerDefineProperty(this, "title", _descriptor$5, this);
|
|
282
|
+
_initializerDefineProperty(this, "description", _descriptor2$5, this);
|
|
283
|
+
_initializerDefineProperty(this, "testDate", _descriptor3$3, this);
|
|
284
|
+
}
|
|
285
|
+
}, _descriptor$5 = _applyDecoratedDescriptor(_class2$l.prototype, "title", [_dec3$l, _dec4$l], {
|
|
286
|
+
configurable: true,
|
|
287
|
+
enumerable: true,
|
|
288
|
+
writable: true,
|
|
289
|
+
initializer: null
|
|
290
|
+
}), _descriptor2$5 = _applyDecoratedDescriptor(_class2$l.prototype, "description", [_dec5$l, _dec6$l], {
|
|
291
|
+
configurable: true,
|
|
292
|
+
enumerable: true,
|
|
293
|
+
writable: true,
|
|
294
|
+
initializer: null
|
|
295
|
+
}), _descriptor3$3 = _applyDecoratedDescriptor(_class2$l.prototype, "testDate", [_dec7$j, _dec8$f], {
|
|
296
|
+
configurable: true,
|
|
297
|
+
enumerable: true,
|
|
298
|
+
writable: true,
|
|
299
|
+
initializer: null
|
|
300
|
+
}), _class2$l)) || _class$O) || _class$O);
|
|
301
|
+
|
|
302
|
+
var _dec$N, _dec2$N, _dec3$k, _dec4$k, _dec5$k, _dec6$k, _dec7$i, _dec8$e, _class$N, _class2$k, _descriptor$4, _descriptor2$4, _descriptor3$2;
|
|
303
|
+
let EntityUser = (_dec$N = Entity('testVonaUser'), _dec2$N = BeanInfo({
|
|
304
|
+
module: "test-vona"
|
|
305
|
+
}), _dec3$k = Api.field(), _dec4$k = Reflect.metadata("design:type", String), _dec5$k = Api.field(v.optional()), _dec6$k = Reflect.metadata("design:type", Number), _dec7$i = Api.field(v.optional()), _dec8$e = Reflect.metadata("design:type", Number), _dec$N(_class$N = _dec2$N(_class$N = (_class2$k = class EntityUser extends EntityBase {
|
|
306
|
+
constructor(...args) {
|
|
307
|
+
super(...args);
|
|
308
|
+
_initializerDefineProperty(this, "name", _descriptor$4, this);
|
|
309
|
+
_initializerDefineProperty(this, "age", _descriptor2$4, this);
|
|
310
|
+
_initializerDefineProperty(this, "scores", _descriptor3$2, this);
|
|
311
|
+
}
|
|
312
|
+
}, _descriptor$4 = _applyDecoratedDescriptor(_class2$k.prototype, "name", [_dec3$k, _dec4$k], {
|
|
313
|
+
configurable: true,
|
|
314
|
+
enumerable: true,
|
|
315
|
+
writable: true,
|
|
316
|
+
initializer: null
|
|
317
|
+
}), _descriptor2$4 = _applyDecoratedDescriptor(_class2$k.prototype, "age", [_dec5$k, _dec6$k], {
|
|
318
|
+
configurable: true,
|
|
319
|
+
enumerable: true,
|
|
320
|
+
writable: true,
|
|
321
|
+
initializer: null
|
|
322
|
+
}), _descriptor3$2 = _applyDecoratedDescriptor(_class2$k.prototype, "scores", [_dec7$i, _dec8$e], {
|
|
323
|
+
configurable: true,
|
|
324
|
+
enumerable: true,
|
|
325
|
+
writable: true,
|
|
326
|
+
initializer: null
|
|
327
|
+
}), _class2$k)) || _class$N) || _class$N);
|
|
328
|
+
|
|
329
|
+
var _dec$M, _dec2$M, _class$M;
|
|
330
|
+
let ModelCategory = (_dec$M = Model({
|
|
331
|
+
entity: EntityCategory,
|
|
332
|
+
relations: {
|
|
333
|
+
children: $relation.hasMany(() => ModelCategory, 'categoryIdParent', {
|
|
334
|
+
autoload: true,
|
|
335
|
+
columns: ['id', 'name']
|
|
336
|
+
})
|
|
337
|
+
}
|
|
338
|
+
}), _dec2$M = BeanInfo({
|
|
339
|
+
module: "test-vona"
|
|
340
|
+
}), _dec$M(_class$M = _dec2$M(_class$M = class ModelCategory extends BeanModelBase {}) || _class$M) || _class$M);
|
|
341
|
+
|
|
342
|
+
var _dec$L, _dec2$L, _class$L;
|
|
343
|
+
let ModelPostContent = (_dec$L = Model({
|
|
344
|
+
entity: EntityPostContent,
|
|
345
|
+
relations: {
|
|
346
|
+
post: $relation.belongsTo(ModelPostContent, () => ModelPost, 'postId')
|
|
347
|
+
},
|
|
348
|
+
cache: {
|
|
349
|
+
modelsClear: () => ModelPost
|
|
350
|
+
}
|
|
351
|
+
}), _dec2$L = BeanInfo({
|
|
352
|
+
module: "test-vona"
|
|
353
|
+
}), _dec$L(_class$L = _dec2$L(_class$L = class ModelPostContent extends BeanModelBase {}) || _class$L) || _class$L);
|
|
354
|
+
|
|
355
|
+
var _dec$K, _dec2$K, _class$K;
|
|
356
|
+
let ModelUserStats = (_dec$K = Model({
|
|
357
|
+
entity: EntityUser,
|
|
358
|
+
relations: {
|
|
359
|
+
posts: $relation.hasMany(() => ModelPost, 'userId', {
|
|
360
|
+
autoload: true,
|
|
361
|
+
aggrs: {
|
|
362
|
+
count: ['*', 'title'],
|
|
363
|
+
sum: 'stars'
|
|
364
|
+
}
|
|
365
|
+
}),
|
|
366
|
+
roles: $relation.belongsToMany('test-vona:roleUser', 'test-vona:role', 'userId', 'roleId', {
|
|
367
|
+
aggrs: {
|
|
368
|
+
count: '*'
|
|
369
|
+
}
|
|
370
|
+
})
|
|
371
|
+
}
|
|
372
|
+
}), _dec2$K = BeanInfo({
|
|
373
|
+
module: "test-vona"
|
|
374
|
+
}), _dec$K(_class$K = _dec2$K(_class$K = class ModelUserStats extends BeanModelBase {}) || _class$K) || _class$K);
|
|
375
|
+
|
|
376
|
+
var _dec$J, _dec2$J, _class$J;
|
|
377
|
+
let ModelUserStatsGroup = (_dec$J = Model({
|
|
378
|
+
entity: EntityUser,
|
|
379
|
+
relations: {
|
|
380
|
+
posts: $relation.hasMany(() => ModelPost, 'userId', {
|
|
381
|
+
autoload: true,
|
|
382
|
+
groups: ['title'],
|
|
383
|
+
aggrs: {
|
|
384
|
+
count: ['*', 'title'],
|
|
385
|
+
sum: 'stars'
|
|
386
|
+
},
|
|
387
|
+
orders: [['title', 'desc']]
|
|
388
|
+
}, undefined, true),
|
|
389
|
+
roles: $relation.belongsToMany('test-vona:roleUser', 'test-vona:role', 'userId', 'roleId', {
|
|
390
|
+
groups: ['name'],
|
|
391
|
+
aggrs: {
|
|
392
|
+
count: '*'
|
|
393
|
+
},
|
|
394
|
+
orders: [['name', 'asc']]
|
|
395
|
+
}, undefined, true)
|
|
396
|
+
}
|
|
397
|
+
}), _dec2$J = BeanInfo({
|
|
398
|
+
module: "test-vona"
|
|
399
|
+
}), _dec$J(_class$J = _dec2$J(_class$J = class ModelUserStatsGroup extends BeanModelBase {}) || _class$J) || _class$J);
|
|
400
|
+
|
|
401
|
+
var _dec$I, _dec2$I, _class$I;
|
|
402
|
+
let ModelUser = (_dec$I = Model({
|
|
403
|
+
entity: EntityUser,
|
|
404
|
+
relations: {
|
|
405
|
+
posts: $relation.hasMany(() => ModelPost, 'userId', {
|
|
406
|
+
columns: ['id', 'title']
|
|
407
|
+
}, ['test-vona:user', ModelPostContent]),
|
|
408
|
+
roles: $relation.belongsToMany('test-vona:roleUser', 'test-vona:role', 'userId', 'roleId', {
|
|
409
|
+
columns: ['id', 'name']
|
|
410
|
+
})
|
|
411
|
+
},
|
|
412
|
+
cache: {
|
|
413
|
+
modelsClear: [() => ModelUserStats, () => ModelUserStatsGroup]
|
|
414
|
+
}
|
|
415
|
+
}), _dec2$I = BeanInfo({
|
|
416
|
+
module: "test-vona"
|
|
417
|
+
}), _dec$I(_class$I = _dec2$I(_class$I = class ModelUser extends BeanModelBase {}) || _class$I) || _class$I);
|
|
418
|
+
|
|
419
|
+
var _dec$H, _dec2$H, _class$H;
|
|
420
|
+
let ModelPost = (_dec$H = Model({
|
|
421
|
+
entity: EntityPost,
|
|
422
|
+
relations: {
|
|
423
|
+
postContent: $relation.hasOne('test-vona:postContent', 'postId', {
|
|
424
|
+
columns: ['id', 'content']
|
|
425
|
+
}),
|
|
426
|
+
user: $relation.belongsTo(ModelPost, () => ModelUser, 'userId', {
|
|
427
|
+
autoload: true,
|
|
428
|
+
columns: ['id', 'name']
|
|
429
|
+
})
|
|
430
|
+
}
|
|
431
|
+
}), _dec2$H = BeanInfo({
|
|
432
|
+
module: "test-vona"
|
|
433
|
+
}), _dec$H(_class$H = _dec2$H(_class$H = class ModelPost extends BeanModelBase {}) || _class$H) || _class$H);
|
|
434
|
+
|
|
435
|
+
var _dec$G, _dec2$G, _class$G;
|
|
436
|
+
let ModelRoleUser = (_dec$G = Model({
|
|
437
|
+
entity: EntityRoleUser
|
|
438
|
+
}), _dec2$G = BeanInfo({
|
|
439
|
+
module: "test-vona"
|
|
440
|
+
}), _dec$G(_class$G = _dec2$G(_class$G = class ModelRoleUser extends BeanModelBase {}) || _class$G) || _class$G);
|
|
441
|
+
|
|
442
|
+
var _dec$F, _dec2$F, _class$F;
|
|
443
|
+
let ModelRole = (_dec$F = Model({
|
|
444
|
+
entity: EntityRole,
|
|
445
|
+
relations: {
|
|
446
|
+
users: $relation.belongsToMany(() => ModelRoleUser, () => ModelUser, 'roleId', 'userId', {
|
|
447
|
+
columns: ['id', 'name']
|
|
448
|
+
})
|
|
449
|
+
}
|
|
450
|
+
}), _dec2$F = BeanInfo({
|
|
451
|
+
module: "test-vona"
|
|
452
|
+
}), _dec$F(_class$F = _dec2$F(_class$F = class ModelRole extends BeanModelBase {}) || _class$F) || _class$F);
|
|
453
|
+
|
|
454
|
+
var _dec$E, _dec2$E, _class$E;
|
|
455
|
+
let ModelTest = (_dec$E = Model({
|
|
187
456
|
entity: EntityTest,
|
|
188
|
-
|
|
189
|
-
}), _dec2$
|
|
457
|
+
client: 'default'
|
|
458
|
+
}), _dec2$E = BeanInfo({
|
|
190
459
|
module: "test-vona"
|
|
191
|
-
}), _dec$
|
|
460
|
+
}), _dec$E(_class$E = _dec2$E(_class$E = class ModelTest extends BeanModelBase {}) || _class$E) || _class$E);
|
|
192
461
|
|
|
193
|
-
var _dec$
|
|
194
|
-
let ModelTestDynamicTable = (_dec$
|
|
462
|
+
var _dec$D, _dec2$D, _class$D;
|
|
463
|
+
let ModelTestDynamicTable = (_dec$D = Model({
|
|
195
464
|
entity: EntityTest,
|
|
196
465
|
table(ctx, defaultTable) {
|
|
197
466
|
if (ctx.instanceName !== '') return defaultTable;
|
|
198
467
|
return `${defaultTable}_${moment().format('YYYYMMDD')}`;
|
|
468
|
+
},
|
|
469
|
+
softDeletionPrune: {
|
|
470
|
+
handler: async (_ctx, _modelInstance) => {
|
|
471
|
+
// do nothing
|
|
472
|
+
}
|
|
199
473
|
}
|
|
200
|
-
}), _dec2$
|
|
474
|
+
}), _dec2$D = BeanInfo({
|
|
201
475
|
module: "test-vona"
|
|
202
|
-
}), _dec$
|
|
476
|
+
}), _dec$D(_class$D = _dec2$D(_class$D = class ModelTestDynamicTable extends BeanModelBase {}) || _class$D) || _class$D);
|
|
203
477
|
|
|
204
|
-
var _dec$
|
|
478
|
+
var _dec$C, _dec2$C, _class$C;
|
|
205
479
|
class TestCtx0 extends BeanBase {
|
|
206
480
|
constructor(...args) {
|
|
207
481
|
super(...args);
|
|
@@ -263,35 +537,35 @@ class TestCtx1 extends TestCtx0 {
|
|
|
263
537
|
});
|
|
264
538
|
}
|
|
265
539
|
}
|
|
266
|
-
let BeanTestCtx = (_dec$
|
|
540
|
+
let BeanTestCtx = (_dec$C = Bean(), _dec2$C = BeanInfo({
|
|
267
541
|
module: "test-vona"
|
|
268
|
-
}), _dec$
|
|
542
|
+
}), _dec$C(_class$C = _dec2$C(_class$C = class BeanTestCtx extends TestCtx1 {}) || _class$C) || _class$C);
|
|
269
543
|
|
|
270
|
-
var _dec$
|
|
271
|
-
let ServiceAopMethodBase = (_dec$
|
|
544
|
+
var _dec$B, _dec2$B, _dec3$j, _dec4$j, _class$B, _dec5$j, _dec6$j, _dec7$h, _dec8$d, _dec9$9, _dec0$9, _dec1$9, _dec10$7, _dec11$7, _dec12$7, _dec13$7, _dec14$6, _dec15$6, _dec16$6, _class2$j, _class3;
|
|
545
|
+
let ServiceAopMethodBase = (_dec$B = Aspect.aopMethod('test-vona:test', {
|
|
272
546
|
wrapper: '+'
|
|
273
|
-
}), _dec2$
|
|
547
|
+
}), _dec2$B = Aspect.aopMethod('test-vona:test', {
|
|
274
548
|
wrapper: '-'
|
|
275
|
-
}), _dec3$
|
|
549
|
+
}), _dec3$j = Reflect.metadata("design:type", Function), _dec4$j = Reflect.metadata("design:paramtypes", []), _class$B = class ServiceAopMethodBase extends BeanBase {
|
|
276
550
|
testSyncBase() {
|
|
277
551
|
return 'hello';
|
|
278
552
|
}
|
|
279
|
-
}, _applyDecoratedDescriptor(_class$
|
|
280
|
-
let ServiceAopMethod = (_dec5$
|
|
553
|
+
}, _applyDecoratedDescriptor(_class$B.prototype, "testSyncBase", [_dec$B, _dec2$B, _dec3$j, _dec4$j], Object.getOwnPropertyDescriptor(_class$B.prototype, "testSyncBase"), _class$B.prototype), _class$B);
|
|
554
|
+
let ServiceAopMethod = (_dec5$j = Service(), _dec6$j = BeanInfo({
|
|
281
555
|
module: "test-vona"
|
|
282
|
-
}), _dec7$
|
|
556
|
+
}), _dec7$h = Aspect.aopMethod('test-vona:test', {
|
|
283
557
|
wrapper: '+'
|
|
284
|
-
}), _dec8$
|
|
558
|
+
}), _dec8$d = Aspect.aopMethod('test-vona:test', {
|
|
285
559
|
wrapper: '-'
|
|
286
|
-
}), _dec9$
|
|
560
|
+
}), _dec9$9 = Reflect.metadata("design:type", Function), _dec0$9 = Reflect.metadata("design:paramtypes", []), _dec1$9 = Aspect.aopMethod('test-vona:test', {
|
|
287
561
|
wrapper: '+'
|
|
288
|
-
}), _dec10$
|
|
562
|
+
}), _dec10$7 = Aspect.aopMethod('test-vona:test', {
|
|
289
563
|
wrapper: '-'
|
|
290
|
-
}), _dec11$
|
|
564
|
+
}), _dec11$7 = Reflect.metadata("design:type", Function), _dec12$7 = Reflect.metadata("design:paramtypes", []), _dec13$7 = Aspect.aopMethod('test-vona:test', {
|
|
291
565
|
wrapper: '+'
|
|
292
|
-
}), _dec14$
|
|
566
|
+
}), _dec14$6 = Aspect.aopMethod('test-vona:test', {
|
|
293
567
|
wrapper: '-'
|
|
294
|
-
}), _dec15$
|
|
568
|
+
}), _dec15$6 = Reflect.metadata("design:type", Function), _dec16$6 = Reflect.metadata("design:paramtypes", []), _dec5$j(_class2$j = _dec6$j(_class2$j = (_class3 = class ServiceAopMethod extends ServiceAopMethodBase {
|
|
295
569
|
constructor(...args) {
|
|
296
570
|
super(...args);
|
|
297
571
|
this._name = '';
|
|
@@ -308,49 +582,49 @@ let ServiceAopMethod = (_dec5$g = Service(), _dec6$g = BeanInfo({
|
|
|
308
582
|
set name(value) {
|
|
309
583
|
this._name = value;
|
|
310
584
|
}
|
|
311
|
-
}, _applyDecoratedDescriptor(_class3.prototype, "testSync", [_dec7$
|
|
585
|
+
}, _applyDecoratedDescriptor(_class3.prototype, "testSync", [_dec7$h, _dec8$d, _dec9$9, _dec0$9], Object.getOwnPropertyDescriptor(_class3.prototype, "testSync"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, "testAsync", [_dec1$9, _dec10$7, _dec11$7, _dec12$7], Object.getOwnPropertyDescriptor(_class3.prototype, "testAsync"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, "name", [_dec13$7, _dec14$6, _dec15$6, _dec16$6], Object.getOwnPropertyDescriptor(_class3.prototype, "name"), _class3.prototype), _class3)) || _class2$j) || _class2$j);
|
|
312
586
|
|
|
313
|
-
var _dec$
|
|
587
|
+
var _dec$A, _dec2$A, _dec3$i, _dec4$i, _dec5$i, _dec6$i, _dec7$g, _dec8$c, _dec9$8, _dec0$8, _dec1$8, _dec10$6, _dec11$6, _dec12$6, _dec13$6, _dec14$5, _dec15$5, _dec16$5, _dec17$4, _dec18$4, _dec19$4, _dec20$4, _dec21$4, _dec22$4, _dec23$4, _dec24$4, _dec25$4, _dec26$3, _dec27$3, _class$A, _class2$i;
|
|
314
588
|
function cacheKeyFn(args, prop, options) {
|
|
315
589
|
return `${this.$beanFullName}_${options.cacheProp ?? prop}_${getKeyHash(args)}`;
|
|
316
590
|
}
|
|
317
|
-
let ServiceCaching = (_dec$
|
|
591
|
+
let ServiceCaching = (_dec$A = Service(), _dec2$A = BeanInfo({
|
|
318
592
|
module: "test-vona"
|
|
319
|
-
}), _dec3$
|
|
593
|
+
}), _dec3$i = Caching.get({
|
|
320
594
|
cacheName: 'test-vona:test',
|
|
321
595
|
cacheProp: 'test',
|
|
322
596
|
cacheKeyFn: 'cacheKey'
|
|
323
|
-
}), _dec4$
|
|
597
|
+
}), _dec4$i = Reflect.metadata("design:type", Function), _dec5$i = Reflect.metadata("design:paramtypes", [Number]), _dec6$i = Caching.get({
|
|
324
598
|
cacheName: 'test-vona:test',
|
|
325
599
|
cacheProp: 'test',
|
|
326
600
|
cacheKeyFn
|
|
327
|
-
}), _dec7$
|
|
601
|
+
}), _dec7$g = Reflect.metadata("design:type", Function), _dec8$c = Reflect.metadata("design:paramtypes", [Number]), _dec9$8 = Caching.get({
|
|
328
602
|
cacheName: 'test-vona:test',
|
|
329
603
|
cacheProp: 'test',
|
|
330
604
|
cacheKey: 'cel://join([get(self,"$beanFullName"),options.cacheProp,hashkey(args)],"_")'
|
|
331
|
-
}), _dec0$
|
|
605
|
+
}), _dec0$8 = Reflect.metadata("design:type", Function), _dec1$8 = Reflect.metadata("design:paramtypes", [Number]), _dec10$6 = Caching.get({
|
|
332
606
|
cacheName: 'test-vona:test',
|
|
333
607
|
cacheProp: 'test'
|
|
334
|
-
}), _dec11$
|
|
608
|
+
}), _dec11$6 = Reflect.metadata("design:type", Function), _dec12$6 = Reflect.metadata("design:paramtypes", [Number]), _dec13$6 = Caching.set({
|
|
335
609
|
cacheName: 'test-vona:test',
|
|
336
610
|
cacheProp: 'test',
|
|
337
611
|
cacheKeyFn: 'cacheKeySet',
|
|
338
612
|
cacheValueFn: 'cacheValueSet'
|
|
339
|
-
}), _dec14$
|
|
613
|
+
}), _dec14$5 = Reflect.metadata("design:type", Function), _dec15$5 = Reflect.metadata("design:paramtypes", [Number, typeof TSummerCacheTestData === "undefined" ? Object : TSummerCacheTestData]), _dec16$5 = Caching.set({
|
|
340
614
|
cacheName: 'test-vona:test',
|
|
341
615
|
cacheProp: 'test',
|
|
342
616
|
cacheKey: 'cel://join([get(self,"$beanFullName"),options.cacheProp,hashkey([args[0]])],"_")',
|
|
343
617
|
cacheValue: 'cel://{"id": args[1].id, "name": args[1].name}'
|
|
344
|
-
}), _dec17$
|
|
618
|
+
}), _dec17$4 = Reflect.metadata("design:type", Function), _dec18$4 = Reflect.metadata("design:paramtypes", [Number, typeof TSummerCacheTestData === "undefined" ? Object : TSummerCacheTestData]), _dec19$4 = Caching.set({
|
|
345
619
|
cacheName: 'test-vona:test',
|
|
346
620
|
cacheProp: 'test',
|
|
347
621
|
cacheKeyFn: 'cacheKeySet'
|
|
348
|
-
}), _dec20$
|
|
622
|
+
}), _dec20$4 = Reflect.metadata("design:type", Function), _dec21$4 = Reflect.metadata("design:paramtypes", [Number, typeof TSummerCacheTestData === "undefined" ? Object : TSummerCacheTestData]), _dec22$4 = Caching.del({
|
|
349
623
|
cacheName: 'test-vona:test',
|
|
350
624
|
cacheProp: 'test'
|
|
351
|
-
}), _dec23$
|
|
625
|
+
}), _dec23$4 = Reflect.metadata("design:type", Function), _dec24$4 = Reflect.metadata("design:paramtypes", [Number]), _dec25$4 = Caching.clear({
|
|
352
626
|
cacheName: 'test-vona:test'
|
|
353
|
-
}), _dec26$
|
|
627
|
+
}), _dec26$3 = Reflect.metadata("design:type", Function), _dec27$3 = Reflect.metadata("design:paramtypes", []), _dec$A(_class$A = _dec2$A(_class$A = (_class2$i = class ServiceCaching extends BeanBase {
|
|
354
628
|
cacheKey(args, prop, options) {
|
|
355
629
|
return `${this.$beanFullName}_${options.cacheProp ?? prop}_${getKeyHash(args)}`;
|
|
356
630
|
}
|
|
@@ -394,21 +668,21 @@ let ServiceCaching = (_dec$t = Service(), _dec2$t = BeanInfo({
|
|
|
394
668
|
async clear() {
|
|
395
669
|
// do nothing
|
|
396
670
|
}
|
|
397
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
671
|
+
}, _applyDecoratedDescriptor(_class2$i.prototype, "get", [_dec3$i, _dec4$i, _dec5$i], Object.getOwnPropertyDescriptor(_class2$i.prototype, "get"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "get2", [_dec6$i, _dec7$g, _dec8$c], Object.getOwnPropertyDescriptor(_class2$i.prototype, "get2"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "get3", [_dec9$8, _dec0$8, _dec1$8], Object.getOwnPropertyDescriptor(_class2$i.prototype, "get3"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "get4", [_dec10$6, _dec11$6, _dec12$6], Object.getOwnPropertyDescriptor(_class2$i.prototype, "get4"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "set", [_dec13$6, _dec14$5, _dec15$5], Object.getOwnPropertyDescriptor(_class2$i.prototype, "set"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "set2", [_dec16$5, _dec17$4, _dec18$4], Object.getOwnPropertyDescriptor(_class2$i.prototype, "set2"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "set3", [_dec19$4, _dec20$4, _dec21$4], Object.getOwnPropertyDescriptor(_class2$i.prototype, "set3"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "del", [_dec22$4, _dec23$4, _dec24$4], Object.getOwnPropertyDescriptor(_class2$i.prototype, "del"), _class2$i.prototype), _applyDecoratedDescriptor(_class2$i.prototype, "clear", [_dec25$4, _dec26$3, _dec27$3], Object.getOwnPropertyDescriptor(_class2$i.prototype, "clear"), _class2$i.prototype), _class2$i)) || _class$A) || _class$A);
|
|
398
672
|
|
|
399
|
-
var _dec$
|
|
400
|
-
let ServiceTest = (_dec$
|
|
673
|
+
var _dec$z, _dec2$z, _class$z;
|
|
674
|
+
let ServiceTest = (_dec$z = Service(), _dec2$z = BeanInfo({
|
|
401
675
|
module: "test-vona"
|
|
402
|
-
}), _dec$
|
|
676
|
+
}), _dec$z(_class$z = _dec2$z(_class$z = class ServiceTest extends BeanBase {
|
|
403
677
|
get name() {
|
|
404
678
|
return 'serviceTest';
|
|
405
679
|
}
|
|
406
|
-
}) || _class$
|
|
680
|
+
}) || _class$z) || _class$z);
|
|
407
681
|
|
|
408
|
-
var _dec$
|
|
409
|
-
let ServiceTestApp = (_dec$
|
|
682
|
+
var _dec$y, _dec2$y, _class$y;
|
|
683
|
+
let ServiceTestApp = (_dec$y = Service(), _dec2$y = BeanInfo({
|
|
410
684
|
module: "test-vona"
|
|
411
|
-
}), _dec$
|
|
685
|
+
}), _dec$y(_class$y = _dec2$y(_class$y = class ServiceTestApp extends BeanBase {
|
|
412
686
|
actionSync({
|
|
413
687
|
a,
|
|
414
688
|
b
|
|
@@ -421,9 +695,9 @@ let ServiceTestApp = (_dec$r = Service(), _dec2$r = BeanInfo({
|
|
|
421
695
|
}) {
|
|
422
696
|
return Promise.resolve(a + b);
|
|
423
697
|
}
|
|
424
|
-
}) || _class$
|
|
698
|
+
}) || _class$y) || _class$y);
|
|
425
699
|
|
|
426
|
-
var _dec$
|
|
700
|
+
var _dec$x, _dec2$x, _class$x;
|
|
427
701
|
class ClassBeanBase extends BeanBase {
|
|
428
702
|
actionSync({
|
|
429
703
|
a,
|
|
@@ -432,132 +706,268 @@ class ClassBeanBase extends BeanBase {
|
|
|
432
706
|
return a + b;
|
|
433
707
|
}
|
|
434
708
|
}
|
|
435
|
-
let ServiceTestClass = (_dec$
|
|
709
|
+
let ServiceTestClass = (_dec$x = Service(), _dec2$x = BeanInfo({
|
|
436
710
|
module: "test-vona"
|
|
437
|
-
}), _dec$
|
|
711
|
+
}), _dec$x(_class$x = _dec2$x(_class$x = class ServiceTestClass extends ClassBeanBase {
|
|
438
712
|
async actionAsync({
|
|
439
713
|
a,
|
|
440
714
|
b
|
|
441
715
|
}) {
|
|
442
716
|
return Promise.resolve(a + b);
|
|
443
717
|
}
|
|
444
|
-
}) || _class$
|
|
718
|
+
}) || _class$x) || _class$x);
|
|
445
719
|
|
|
446
|
-
var _dec$
|
|
720
|
+
var _dec$w, _dec2$w, _class$w;
|
|
721
|
+
let ServiceTestData = (_dec$w = Service(), _dec2$w = BeanInfo({
|
|
722
|
+
module: "test-vona"
|
|
723
|
+
}), _dec$w(_class$w = _dec2$w(_class$w = class ServiceTestData extends BeanBase {
|
|
724
|
+
async create(prefix) {
|
|
725
|
+
const scopeTest = this.scope;
|
|
726
|
+
const userTom = await scopeTest.model.user.insert({
|
|
727
|
+
name: `${prefix}:tom`
|
|
728
|
+
});
|
|
729
|
+
const userJimmy = await scopeTest.model.user.insert({
|
|
730
|
+
name: `${prefix}:jimmy`
|
|
731
|
+
});
|
|
732
|
+
const roleFamily = await scopeTest.model.role.insert({
|
|
733
|
+
name: `${prefix}:family`
|
|
734
|
+
});
|
|
735
|
+
const roleFriend = await scopeTest.model.role.insert({
|
|
736
|
+
name: `${prefix}:friend`
|
|
737
|
+
});
|
|
738
|
+
await scopeTest.model.roleUser.insertBulk([{
|
|
739
|
+
userId: userTom.id,
|
|
740
|
+
roleId: roleFamily.id
|
|
741
|
+
}, {
|
|
742
|
+
userId: userTom.id,
|
|
743
|
+
roleId: roleFriend.id
|
|
744
|
+
}, {
|
|
745
|
+
userId: userJimmy.id,
|
|
746
|
+
roleId: roleFamily.id
|
|
747
|
+
}]);
|
|
748
|
+
const postApple = await scopeTest.model.post.insert({
|
|
749
|
+
title: `${prefix}:postApple`,
|
|
750
|
+
userId: userTom.id
|
|
751
|
+
});
|
|
752
|
+
const postPear = await scopeTest.model.post.insert({
|
|
753
|
+
title: `${prefix}:postPear`,
|
|
754
|
+
userId: userTom.id
|
|
755
|
+
});
|
|
756
|
+
const postContentApple = await scopeTest.model.postContent.insert({
|
|
757
|
+
content: `${prefix}:postContentApple`,
|
|
758
|
+
postId: postApple.id
|
|
759
|
+
});
|
|
760
|
+
// ok
|
|
761
|
+
return {
|
|
762
|
+
userTom,
|
|
763
|
+
userJimmy,
|
|
764
|
+
roleFamily,
|
|
765
|
+
roleFriend,
|
|
766
|
+
postApple,
|
|
767
|
+
postPear,
|
|
768
|
+
postContentApple
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
async drop(data) {
|
|
772
|
+
const {
|
|
773
|
+
userTom,
|
|
774
|
+
userJimmy,
|
|
775
|
+
roleFamily,
|
|
776
|
+
roleFriend,
|
|
777
|
+
postApple,
|
|
778
|
+
postPear,
|
|
779
|
+
postContentApple
|
|
780
|
+
} = data;
|
|
781
|
+
const scopeTest = this.scope;
|
|
782
|
+
await scopeTest.model.postContent.delete({
|
|
783
|
+
id: postContentApple.id
|
|
784
|
+
});
|
|
785
|
+
await scopeTest.model.post.delete({
|
|
786
|
+
id: postApple.id
|
|
787
|
+
});
|
|
788
|
+
await scopeTest.model.post.delete({
|
|
789
|
+
id: postPear.id
|
|
790
|
+
});
|
|
791
|
+
await scopeTest.model.roleUser.delete({
|
|
792
|
+
userId: userTom.id
|
|
793
|
+
});
|
|
794
|
+
await scopeTest.model.roleUser.delete({
|
|
795
|
+
userId: userJimmy.id
|
|
796
|
+
});
|
|
797
|
+
await scopeTest.model.role.delete({
|
|
798
|
+
id: roleFamily.id
|
|
799
|
+
});
|
|
800
|
+
await scopeTest.model.role.delete({
|
|
801
|
+
id: roleFriend.id
|
|
802
|
+
});
|
|
803
|
+
await scopeTest.model.user.delete({
|
|
804
|
+
id: userTom.id
|
|
805
|
+
});
|
|
806
|
+
await scopeTest.model.user.delete({
|
|
807
|
+
id: userJimmy.id
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
}) || _class$w) || _class$w);
|
|
811
|
+
|
|
812
|
+
var _dec$v, _dec2$v, _dec3$h, _dec4$h, _dec5$h, _dec6$h, _dec7$f, _dec8$b, _class$v, _class2$h;
|
|
447
813
|
const tableNameFail$1 = '__tempTransactionFail';
|
|
448
814
|
const tableNameSuccess$1 = '__tempTransactionSuccess';
|
|
449
|
-
let ServiceTransaction = (_dec$
|
|
815
|
+
let ServiceTransaction = (_dec$v = Service(), _dec2$v = BeanInfo({
|
|
450
816
|
module: "test-vona"
|
|
451
|
-
}), _dec3$
|
|
817
|
+
}), _dec3$h = Database.transaction(), _dec4$h = Reflect.metadata("design:type", Function), _dec5$h = Reflect.metadata("design:paramtypes", [Object]), _dec6$h = Database.transaction(), _dec7$f = Reflect.metadata("design:type", Function), _dec8$b = Reflect.metadata("design:paramtypes", [Object]), _dec$v(_class$v = _dec2$v(_class$v = (_class2$h = class ServiceTransaction extends BeanBase {
|
|
452
818
|
async fail(item) {
|
|
453
|
-
await this.
|
|
454
|
-
await this.
|
|
819
|
+
await this.bean.model.update(`${tableNameFail$1}`, item);
|
|
820
|
+
await this.bean.model.update(`${tableNameFail$1}error`, item);
|
|
455
821
|
}
|
|
456
822
|
async success(item) {
|
|
457
|
-
await this.
|
|
823
|
+
await this.bean.model.update(tableNameSuccess$1, item);
|
|
458
824
|
}
|
|
459
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
825
|
+
}, _applyDecoratedDescriptor(_class2$h.prototype, "fail", [_dec3$h, _dec4$h, _dec5$h], Object.getOwnPropertyDescriptor(_class2$h.prototype, "fail"), _class2$h.prototype), _applyDecoratedDescriptor(_class2$h.prototype, "success", [_dec6$h, _dec7$f, _dec8$b], Object.getOwnPropertyDescriptor(_class2$h.prototype, "success"), _class2$h.prototype), _class2$h)) || _class$v) || _class$v);
|
|
460
826
|
|
|
461
|
-
var _dec$
|
|
462
|
-
let BroadcastTest = (_dec$
|
|
827
|
+
var _dec$u, _dec2$u, _class$u;
|
|
828
|
+
let BroadcastTest = (_dec$u = Broadcast(), _dec2$u = BeanInfo({
|
|
463
829
|
module: "test-vona"
|
|
464
|
-
}), _dec$
|
|
830
|
+
}), _dec$u(_class$u = _dec2$u(_class$u = class BroadcastTest extends BeanBroadcastBase {
|
|
465
831
|
async execute(data, isEmitter) {
|
|
466
832
|
// locale
|
|
467
833
|
assert.equal(this.ctx.locale, 'zh-cn');
|
|
468
834
|
// data
|
|
469
835
|
assert.equal(data.message, 'hello');
|
|
470
836
|
}
|
|
471
|
-
}) || _class$
|
|
837
|
+
}) || _class$u) || _class$u);
|
|
472
838
|
|
|
473
|
-
var _dec$
|
|
474
|
-
let CacheMemTest = (_dec$
|
|
839
|
+
var _dec$t, _dec2$t, _class$t;
|
|
840
|
+
let CacheMemTest = (_dec$t = CacheMem({
|
|
475
841
|
ttl: 1 * 1000
|
|
476
|
-
}), _dec2$
|
|
842
|
+
}), _dec2$t = BeanInfo({
|
|
477
843
|
module: "test-vona"
|
|
478
|
-
}), _dec$
|
|
844
|
+
}), _dec$t(_class$t = _dec2$t(_class$t = class CacheMemTest extends BeanCacheMemBase {}) || _class$t) || _class$t);
|
|
479
845
|
|
|
480
|
-
var _dec$
|
|
481
|
-
let CacheRedisTest = (_dec$
|
|
846
|
+
var _dec$s, _dec2$s, _class$s;
|
|
847
|
+
let CacheRedisTest = (_dec$s = CacheRedis({
|
|
482
848
|
ttl: 1 * 1000
|
|
483
|
-
}), _dec2$
|
|
849
|
+
}), _dec2$s = BeanInfo({
|
|
484
850
|
module: "test-vona"
|
|
485
|
-
}), _dec$
|
|
851
|
+
}), _dec$s(_class$s = _dec2$s(_class$s = class CacheRedisTest extends BeanCacheRedisBase {}) || _class$s) || _class$s);
|
|
486
852
|
|
|
487
|
-
var _dec$
|
|
488
|
-
let EventHelloEcho = (_dec$
|
|
853
|
+
var _dec$r, _dec2$r, _class$r;
|
|
854
|
+
let EventHelloEcho = (_dec$r = Event(), _dec2$r = BeanInfo({
|
|
489
855
|
module: "test-vona"
|
|
490
|
-
}), _dec$
|
|
856
|
+
}), _dec$r(_class$r = _dec2$r(_class$r = class EventHelloEcho extends BeanEventBase {}) || _class$r) || _class$r);
|
|
491
857
|
|
|
492
|
-
var _dec$
|
|
493
|
-
let EventListenerHelloEcho = (_dec$
|
|
858
|
+
var _dec$q, _dec2$q, _class$q;
|
|
859
|
+
let EventListenerHelloEcho = (_dec$q = EventListener({
|
|
494
860
|
match: 'test-vona:helloEcho'
|
|
495
|
-
}), _dec2$
|
|
861
|
+
}), _dec2$q = BeanInfo({
|
|
496
862
|
module: "test-vona"
|
|
497
|
-
}), _dec$
|
|
863
|
+
}), _dec$q(_class$q = _dec2$q(_class$q = class EventListenerHelloEcho extends BeanBase {
|
|
498
864
|
async execute(data, next) {
|
|
499
865
|
// next
|
|
500
866
|
const result = await next();
|
|
501
867
|
return `${data.text} ${result}`;
|
|
502
868
|
}
|
|
503
|
-
}) || _class$
|
|
869
|
+
}) || _class$q) || _class$q);
|
|
504
870
|
|
|
505
|
-
var _dec$
|
|
506
|
-
let MetaVersion = (_dec$
|
|
871
|
+
var _dec$p, _dec2$p, _class$p;
|
|
872
|
+
let MetaVersion = (_dec$p = Meta(), _dec2$p = BeanInfo({
|
|
507
873
|
module: "test-vona"
|
|
508
|
-
}), _dec$
|
|
874
|
+
}), _dec$p(_class$p = _dec2$p(_class$p = class MetaVersion extends BeanBase {
|
|
509
875
|
async update(options) {
|
|
510
876
|
if (options.version === 1) {
|
|
511
|
-
//
|
|
512
|
-
const
|
|
513
|
-
await this.bean.model.createTable(
|
|
877
|
+
// testVonaTest
|
|
878
|
+
const entityTest = this.scope.entity.test;
|
|
879
|
+
await this.bean.model.createTable(entityTest.$table, table => {
|
|
880
|
+
table.comment(entityTest.$comment.$table);
|
|
881
|
+
table.basicFields();
|
|
882
|
+
table.string(entityTest.title, 255).comment(entityTest.$comment.title);
|
|
883
|
+
table.string(entityTest.description, 255);
|
|
884
|
+
});
|
|
885
|
+
// testVonaUser
|
|
886
|
+
const entityUser = this.scope.entity.user;
|
|
887
|
+
await this.bean.model.createTable(entityUser.$table, table => {
|
|
888
|
+
table.basicFields();
|
|
889
|
+
table.string(entityUser.name, 255);
|
|
890
|
+
table.integer(entityUser.age);
|
|
891
|
+
table.integer(entityUser.scores);
|
|
892
|
+
});
|
|
893
|
+
// testVonaRole
|
|
894
|
+
const entityRole = this.scope.entity.role;
|
|
895
|
+
await this.bean.model.createTable(entityRole.$table, table => {
|
|
896
|
+
table.basicFields();
|
|
897
|
+
table.string(entityRole.name, 255);
|
|
898
|
+
});
|
|
899
|
+
// testVonaRoleUser
|
|
900
|
+
const entityRoleUser = this.scope.entity.roleUser;
|
|
901
|
+
await this.bean.model.createTable(entityRoleUser.$table, table => {
|
|
902
|
+
table.basicFields();
|
|
903
|
+
table.tableIdentity(entityRoleUser.userId);
|
|
904
|
+
table.tableIdentity(entityRoleUser.roleId);
|
|
905
|
+
});
|
|
906
|
+
// testVonaPost
|
|
907
|
+
const entityPost = this.scope.entity.post;
|
|
908
|
+
await this.bean.model.createTable(entityPost.$table, table => {
|
|
514
909
|
table.basicFields();
|
|
515
|
-
table.string(
|
|
516
|
-
table.
|
|
910
|
+
table.string(entityPost.title, 255);
|
|
911
|
+
table.userId();
|
|
912
|
+
table.integer(entityPost.stars);
|
|
913
|
+
});
|
|
914
|
+
// testVonaPostContent
|
|
915
|
+
const entityPostContent = this.scope.entity.postContent;
|
|
916
|
+
await this.bean.model.createTable(entityPostContent.$table, table => {
|
|
917
|
+
table.basicFields();
|
|
918
|
+
table.text(entityPostContent.content);
|
|
919
|
+
table.tableIdentity(entityPostContent.postId);
|
|
920
|
+
});
|
|
921
|
+
// testVonaCategory
|
|
922
|
+
const entityCategory = this.scope.entity.category;
|
|
923
|
+
await this.bean.model.createTable(entityCategory.$table, table => {
|
|
924
|
+
table.basicFields();
|
|
925
|
+
table.string(entityCategory.name, 255);
|
|
926
|
+
table.tableIdentity(entityCategory.categoryIdParent);
|
|
517
927
|
});
|
|
518
928
|
}
|
|
519
929
|
}
|
|
520
|
-
}) || _class$
|
|
930
|
+
}) || _class$p) || _class$p);
|
|
521
931
|
|
|
522
|
-
var _dec$
|
|
523
|
-
let QueueTest = (_dec$
|
|
932
|
+
var _dec$o, _dec2$o, _class$o;
|
|
933
|
+
let QueueTest = (_dec$o = Queue(), _dec2$o = BeanInfo({
|
|
524
934
|
module: "test-vona"
|
|
525
|
-
}), _dec$
|
|
935
|
+
}), _dec$o(_class$o = _dec2$o(_class$o = class QueueTest extends BeanQueueBase {
|
|
526
936
|
async execute(data, _options) {
|
|
527
937
|
return data.a + data.b;
|
|
528
938
|
}
|
|
529
|
-
}) || _class$
|
|
939
|
+
}) || _class$o) || _class$o);
|
|
530
940
|
|
|
531
|
-
var _dec$
|
|
532
|
-
let ScheduleTest = (_dec$
|
|
941
|
+
var _dec$n, _dec2$n, _class$n;
|
|
942
|
+
let ScheduleTest = (_dec$n = Schedule({
|
|
533
943
|
enable: false,
|
|
534
944
|
repeat: {
|
|
535
945
|
every: 3000
|
|
536
946
|
}
|
|
537
|
-
}), _dec2$
|
|
947
|
+
}), _dec2$n = BeanInfo({
|
|
538
948
|
module: "test-vona"
|
|
539
|
-
}), _dec$
|
|
949
|
+
}), _dec$n(_class$n = _dec2$n(_class$n = class ScheduleTest extends BeanBase {
|
|
540
950
|
async execute(job) {
|
|
541
951
|
this.$logger.silly(`Schedule Test: iid=${this.ctx.instance.id}, every=${job?.data.options?.jobOptions?.repeat?.every}, ${new Date()}`);
|
|
542
952
|
}
|
|
543
|
-
}) || _class$
|
|
953
|
+
}) || _class$n) || _class$n);
|
|
544
954
|
|
|
545
|
-
var _dec$
|
|
546
|
-
let ScheduleTest3 = (_dec$
|
|
955
|
+
var _dec$m, _dec2$m, _class$m;
|
|
956
|
+
let ScheduleTest3 = (_dec$m = Schedule({
|
|
547
957
|
enable: false,
|
|
548
958
|
repeat: {
|
|
549
959
|
every: 5000
|
|
550
960
|
}
|
|
551
|
-
}), _dec2$
|
|
961
|
+
}), _dec2$m = BeanInfo({
|
|
552
962
|
module: "test-vona"
|
|
553
|
-
}), _dec$
|
|
963
|
+
}), _dec$m(_class$m = _dec2$m(_class$m = class ScheduleTest3 extends BeanBase {
|
|
554
964
|
async execute(job) {
|
|
555
965
|
this.$logger.silly(`Schedule Test3: iid=${this.ctx.instance.id}, every=${job?.data.options?.jobOptions?.repeat?.every}, ${new Date()}`);
|
|
556
966
|
}
|
|
557
|
-
}) || _class$
|
|
967
|
+
}) || _class$m) || _class$m);
|
|
558
968
|
|
|
559
|
-
var _dec$
|
|
560
|
-
let SummerCacheTest = (_dec$
|
|
969
|
+
var _dec$l, _dec2$l, _class$l;
|
|
970
|
+
let SummerCacheTest = (_dec$l = SummerCache({
|
|
561
971
|
mode: 'all',
|
|
562
972
|
mem: {
|
|
563
973
|
max: 2,
|
|
@@ -566,98 +976,177 @@ let SummerCacheTest = (_dec$f = SummerCache({
|
|
|
566
976
|
redis: {
|
|
567
977
|
ttl: 3 * 1000
|
|
568
978
|
}
|
|
569
|
-
}), _dec2$
|
|
979
|
+
}), _dec2$l = BeanInfo({
|
|
570
980
|
module: "test-vona"
|
|
571
|
-
}), _dec$
|
|
981
|
+
}), _dec$l(_class$l = _dec2$l(_class$l = class SummerCacheTest extends BeanSummerCacheBase {
|
|
572
982
|
async getNative(key, _options) {
|
|
573
983
|
return {
|
|
574
984
|
id: key.id,
|
|
575
985
|
name: `name_${key.id}`
|
|
576
986
|
};
|
|
577
987
|
}
|
|
578
|
-
}) || _class$
|
|
988
|
+
}) || _class$l) || _class$l);
|
|
989
|
+
|
|
990
|
+
var _dec$k, _dec2$k, _class$k;
|
|
991
|
+
let DtoCategoryTree = (_dec$k = Dto(), _dec2$k = BeanInfo({
|
|
992
|
+
module: "test-vona"
|
|
993
|
+
}), _dec$k(_class$k = _dec2$k(_class$k = class DtoCategoryTree extends $Dto.get('test-vona:category', {
|
|
994
|
+
columns: ['id', 'name']
|
|
995
|
+
}) {}) || _class$k) || _class$k);
|
|
579
996
|
|
|
580
|
-
var _dec$
|
|
581
|
-
let DtoProfile = (_dec$
|
|
997
|
+
var _dec$j, _dec2$j, _dec3$g, _dec4$g, _dec5$g, _dec6$g, _class$j, _class2$g, _descriptor$3, _descriptor2$3;
|
|
998
|
+
let DtoProfile = (_dec$j = Dto(), _dec2$j = BeanInfo({
|
|
582
999
|
module: "test-vona"
|
|
583
|
-
}), _dec3$
|
|
1000
|
+
}), _dec3$g = Api.field(), _dec4$g = Reflect.metadata("design:type", Number), _dec5$g = Api.field(v.email()), _dec6$g = Reflect.metadata("design:type", String), _dec$j(_class$j = _dec2$j(_class$j = (_class2$g = class DtoProfile {
|
|
584
1001
|
constructor() {
|
|
585
|
-
_initializerDefineProperty(this, "id", _descriptor$
|
|
586
|
-
_initializerDefineProperty(this, "email", _descriptor2$
|
|
1002
|
+
_initializerDefineProperty(this, "id", _descriptor$3, this);
|
|
1003
|
+
_initializerDefineProperty(this, "email", _descriptor2$3, this);
|
|
587
1004
|
}
|
|
588
|
-
}, _descriptor$
|
|
1005
|
+
}, _descriptor$3 = _applyDecoratedDescriptor(_class2$g.prototype, "id", [_dec3$g, _dec4$g], {
|
|
589
1006
|
configurable: true,
|
|
590
1007
|
enumerable: true,
|
|
591
1008
|
writable: true,
|
|
592
1009
|
initializer: null
|
|
593
|
-
}), _descriptor2$
|
|
1010
|
+
}), _descriptor2$3 = _applyDecoratedDescriptor(_class2$g.prototype, "email", [_dec5$g, _dec6$g], {
|
|
594
1011
|
configurable: true,
|
|
595
1012
|
enumerable: true,
|
|
596
1013
|
writable: true,
|
|
597
1014
|
initializer: null
|
|
598
|
-
}), _class2$
|
|
1015
|
+
}), _class2$g)) || _class$j) || _class$j);
|
|
599
1016
|
|
|
600
|
-
var _dec$
|
|
601
|
-
let
|
|
1017
|
+
var _dec$i, _dec2$i, _dec3$f, _dec4$f, _dec5$f, _dec6$f, _dec7$e, _dec8$a, _class$i, _class2$f, _descriptor$2, _descriptor2$2, _descriptor3$1;
|
|
1018
|
+
let DtoUserLazy = (_dec$i = Dto(), _dec2$i = BeanInfo({
|
|
1019
|
+
module: "test-vona"
|
|
1020
|
+
}), _dec3$f = Api.field(), _dec4$f = Reflect.metadata("design:type", String), _dec5$f = Api.field(v.lazy(v.optional(), () => DtoUserLazy)), _dec6$f = Reflect.metadata("design:type", Object), _dec7$e = Api.field(v.optional(), v.array(v.lazy(() => DtoRoleLazy))), _dec8$a = Reflect.metadata("design:type", Array), _dec$i(_class$i = _dec2$i(_class$i = (_class2$f = class DtoUserLazy {
|
|
1021
|
+
constructor() {
|
|
1022
|
+
_initializerDefineProperty(this, "name", _descriptor$2, this);
|
|
1023
|
+
_initializerDefineProperty(this, "user", _descriptor2$2, this);
|
|
1024
|
+
_initializerDefineProperty(this, "roles", _descriptor3$1, this);
|
|
1025
|
+
}
|
|
1026
|
+
}, _descriptor$2 = _applyDecoratedDescriptor(_class2$f.prototype, "name", [_dec3$f, _dec4$f], {
|
|
1027
|
+
configurable: true,
|
|
1028
|
+
enumerable: true,
|
|
1029
|
+
writable: true,
|
|
1030
|
+
initializer: null
|
|
1031
|
+
}), _descriptor2$2 = _applyDecoratedDescriptor(_class2$f.prototype, "user", [_dec5$f, _dec6$f], {
|
|
1032
|
+
configurable: true,
|
|
1033
|
+
enumerable: true,
|
|
1034
|
+
writable: true,
|
|
1035
|
+
initializer: null
|
|
1036
|
+
}), _descriptor3$1 = _applyDecoratedDescriptor(_class2$f.prototype, "roles", [_dec7$e, _dec8$a], {
|
|
1037
|
+
configurable: true,
|
|
1038
|
+
enumerable: true,
|
|
1039
|
+
writable: true,
|
|
1040
|
+
initializer: null
|
|
1041
|
+
}), _class2$f)) || _class$i) || _class$i);
|
|
1042
|
+
|
|
1043
|
+
var _dec$h, _dec2$h, _dec3$e, _dec4$e, _dec5$e, _dec6$e, _class$h, _class2$e, _descriptor$1, _descriptor2$1;
|
|
1044
|
+
let DtoRoleLazy = (_dec$h = Dto(), _dec2$h = BeanInfo({
|
|
1045
|
+
module: "test-vona"
|
|
1046
|
+
}), _dec3$e = Api.field(), _dec4$e = Reflect.metadata("design:type", String), _dec5$e = Api.field(v.optional(), v.array(v.lazy(() => DtoUserLazy))), _dec6$e = Reflect.metadata("design:type", Array), _dec$h(_class$h = _dec2$h(_class$h = (_class2$e = class DtoRoleLazy {
|
|
1047
|
+
constructor() {
|
|
1048
|
+
_initializerDefineProperty(this, "name", _descriptor$1, this);
|
|
1049
|
+
_initializerDefineProperty(this, "users", _descriptor2$1, this);
|
|
1050
|
+
}
|
|
1051
|
+
}, _descriptor$1 = _applyDecoratedDescriptor(_class2$e.prototype, "name", [_dec3$e, _dec4$e], {
|
|
1052
|
+
configurable: true,
|
|
1053
|
+
enumerable: true,
|
|
1054
|
+
writable: true,
|
|
1055
|
+
initializer: null
|
|
1056
|
+
}), _descriptor2$1 = _applyDecoratedDescriptor(_class2$e.prototype, "users", [_dec5$e, _dec6$e], {
|
|
1057
|
+
configurable: true,
|
|
1058
|
+
enumerable: true,
|
|
1059
|
+
writable: true,
|
|
1060
|
+
initializer: null
|
|
1061
|
+
}), _class2$e)) || _class$h) || _class$h);
|
|
1062
|
+
|
|
1063
|
+
var _dec$g, _dec2$g, _dec3$d, _dec4$d, _dec5$d, _dec6$d, _dec7$d, _dec8$9, _class$g, _class2$d, _descriptor, _descriptor2, _descriptor3;
|
|
1064
|
+
let DtoUser = (_dec$g = Dto({
|
|
602
1065
|
openapi: {
|
|
603
1066
|
title: $locale('User')
|
|
604
1067
|
}
|
|
605
|
-
}), _dec2$
|
|
1068
|
+
}), _dec2$g = BeanInfo({
|
|
606
1069
|
module: "test-vona"
|
|
607
|
-
}), _dec3$
|
|
1070
|
+
}), _dec3$d = Api.field(v.title($locale('UserId')), v.tableIdentity()), _dec4$d = Reflect.metadata("design:type", typeof TableIdentity === "undefined" ? Object : TableIdentity), _dec5$d = Api.field(v.min(3)), _dec6$d = Reflect.metadata("design:type", String), _dec7$d = Api.field(), _dec8$9 = Reflect.metadata("design:type", Boolean), _dec$g(_class$g = _dec2$g(_class$g = (_class2$d = class DtoUser {
|
|
608
1071
|
constructor() {
|
|
609
1072
|
_initializerDefineProperty(this, "id", _descriptor, this);
|
|
610
1073
|
_initializerDefineProperty(this, "name", _descriptor2, this);
|
|
611
1074
|
_initializerDefineProperty(this, "married", _descriptor3, this);
|
|
612
1075
|
}
|
|
613
|
-
}, _descriptor = _applyDecoratedDescriptor(_class2$
|
|
1076
|
+
}, _descriptor = _applyDecoratedDescriptor(_class2$d.prototype, "id", [_dec3$d, _dec4$d], {
|
|
614
1077
|
configurable: true,
|
|
615
1078
|
enumerable: true,
|
|
616
1079
|
writable: true,
|
|
617
1080
|
initializer: null
|
|
618
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class2$
|
|
1081
|
+
}), _descriptor2 = _applyDecoratedDescriptor(_class2$d.prototype, "name", [_dec5$d, _dec6$d], {
|
|
619
1082
|
configurable: true,
|
|
620
1083
|
enumerable: true,
|
|
621
1084
|
writable: true,
|
|
622
1085
|
initializer: null
|
|
623
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class2$
|
|
1086
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class2$d.prototype, "married", [_dec7$d, _dec8$9], {
|
|
624
1087
|
configurable: true,
|
|
625
1088
|
enumerable: true,
|
|
626
1089
|
writable: true,
|
|
627
1090
|
initializer: null
|
|
628
|
-
}), _class2$
|
|
1091
|
+
}), _class2$d)) || _class$g) || _class$g);
|
|
1092
|
+
|
|
1093
|
+
var _dec$f, _dec2$f, _class$f;
|
|
1094
|
+
let DtoUserCreate = (_dec$f = Dto(), _dec2$f = BeanInfo({
|
|
1095
|
+
module: "test-vona"
|
|
1096
|
+
}), _dec$f(_class$f = _dec2$f(_class$f = class DtoUserCreate extends $Dto.create('test-vona:user', {
|
|
1097
|
+
include: {
|
|
1098
|
+
posts: {
|
|
1099
|
+
include: {
|
|
1100
|
+
user: false
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}) {}) || _class$f) || _class$f);
|
|
1105
|
+
|
|
1106
|
+
var _dec$e, _dec2$e, _class$e;
|
|
1107
|
+
let DtoUserUpdate = (_dec$e = Dto(), _dec2$e = BeanInfo({
|
|
1108
|
+
module: "test-vona"
|
|
1109
|
+
}), _dec$e(_class$e = _dec2$e(_class$e = class DtoUserUpdate extends $Dto.update('test-vona:user', {
|
|
1110
|
+
include: {
|
|
1111
|
+
posts: {
|
|
1112
|
+
include: {
|
|
1113
|
+
user: false
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
}) {}) || _class$e) || _class$e);
|
|
629
1118
|
|
|
630
1119
|
const __ThisModule__ = 'test-vona';
|
|
631
1120
|
|
|
632
|
-
var _dec$
|
|
633
|
-
let ControllerBean = (_dec$
|
|
1121
|
+
var _dec$d, _dec2$d, _dec3$c, _dec4$c, _dec5$c, _dec6$c, _dec7$c, _dec8$8, _dec9$7, _dec0$7, _dec1$7, _class$d, _class2$c;
|
|
1122
|
+
let ControllerBean = (_dec$d = Controller({
|
|
634
1123
|
path: 'bean',
|
|
635
1124
|
meta: {
|
|
636
1125
|
mode: 'test'
|
|
637
1126
|
}
|
|
638
|
-
}), _dec2$
|
|
1127
|
+
}), _dec2$d = Api.exclude(), _dec3$c = Passport.public(), _dec4$c = BeanInfo({
|
|
639
1128
|
module: "test-vona"
|
|
640
|
-
}), _dec5$
|
|
1129
|
+
}), _dec5$c = Web.get('test'), _dec6$c = Reflect.metadata("design:type", Function), _dec7$c = Reflect.metadata("design:paramtypes", []), _dec8$8 = Web.get('service'), _dec9$7 = Passport.public(), _dec0$7 = Reflect.metadata("design:type", Function), _dec1$7 = Reflect.metadata("design:paramtypes", []), _dec$d(_class$d = _dec2$d(_class$d = _dec3$c(_class$d = _dec4$c(_class$d = (_class2$c = class ControllerBean extends BeanBase {
|
|
641
1130
|
async test() {
|
|
642
1131
|
const a = 3;
|
|
643
1132
|
const b = 4;
|
|
644
1133
|
let res;
|
|
645
1134
|
|
|
646
1135
|
// app.bean
|
|
647
|
-
assert.equal(this.
|
|
648
|
-
res = this.
|
|
1136
|
+
assert.equal(this.bean._getBean('test-vona.service.testApp'), this.bean['test-vona.service.testApp']);
|
|
1137
|
+
res = this.bean['test-vona.service.testApp'].actionSync({
|
|
649
1138
|
a,
|
|
650
1139
|
b
|
|
651
1140
|
});
|
|
652
1141
|
assert.equal(res, `${a + b}:regexpaop`);
|
|
653
|
-
res = await this.
|
|
1142
|
+
res = await this.bean['test-vona.service.testApp'].actionAsync({
|
|
654
1143
|
a,
|
|
655
1144
|
b
|
|
656
1145
|
});
|
|
657
1146
|
assert.equal(res, `${a + b}:regexpaop`);
|
|
658
1147
|
|
|
659
1148
|
// ctx.bean: global
|
|
660
|
-
assert.equal(this.bean.testCtx, this.
|
|
1149
|
+
assert.equal(this.bean.testCtx, this.bean.testCtx);
|
|
661
1150
|
|
|
662
1151
|
// magic
|
|
663
1152
|
res = cast(this.bean.testCtx).magic;
|
|
@@ -703,9 +1192,9 @@ let ControllerBean = (_dec$c = Controller({
|
|
|
703
1192
|
|
|
704
1193
|
// magic of self
|
|
705
1194
|
cast(this.bean.testCtx).magicSelf = '__magicSelf__';
|
|
706
|
-
res = cast(this.
|
|
1195
|
+
res = cast(this.bean.testCtx).magicSelf;
|
|
707
1196
|
assert.equal(res, '__magicSelf__');
|
|
708
|
-
res = cast(this.
|
|
1197
|
+
res = cast(this.bean.testCtx)['magic:self'];
|
|
709
1198
|
assert.equal(res, '__magicSelf__');
|
|
710
1199
|
}
|
|
711
1200
|
async service() {
|
|
@@ -727,21 +1216,35 @@ let ControllerBean = (_dec$c = Controller({
|
|
|
727
1216
|
res = this.$scope.testVona.service.test.name;
|
|
728
1217
|
assert.equal(res, 'serviceTest');
|
|
729
1218
|
}
|
|
730
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
1219
|
+
}, _applyDecoratedDescriptor(_class2$c.prototype, "test", [_dec5$c, _dec6$c, _dec7$c], Object.getOwnPropertyDescriptor(_class2$c.prototype, "test"), _class2$c.prototype), _applyDecoratedDescriptor(_class2$c.prototype, "service", [_dec8$8, _dec9$7, _dec0$7, _dec1$7], Object.getOwnPropertyDescriptor(_class2$c.prototype, "service"), _class2$c.prototype), _class2$c)) || _class$d) || _class$d) || _class$d) || _class$d);
|
|
731
1220
|
|
|
732
|
-
var _dec$
|
|
733
|
-
let ControllerCacheMem = (_dec$
|
|
1221
|
+
var _dec$c, _dec2$c, _dec3$b, _dec4$b, _dec5$b, _dec6$b, _dec7$b, _class$c, _class2$b;
|
|
1222
|
+
let ControllerCacheMem = (_dec$c = Controller({
|
|
734
1223
|
path: 'cacheMem',
|
|
735
1224
|
meta: {
|
|
736
1225
|
mode: 'test'
|
|
737
1226
|
}
|
|
738
|
-
}), _dec2$
|
|
1227
|
+
}), _dec2$c = Api.exclude(), _dec3$b = Passport.public(), _dec4$b = BeanInfo({
|
|
739
1228
|
module: "test-vona"
|
|
740
|
-
}), _dec5$
|
|
1229
|
+
}), _dec5$b = Web.post(), _dec6$b = Reflect.metadata("design:type", Function), _dec7$b = Reflect.metadata("design:paramtypes", []), _dec$c(_class$c = _dec2$c(_class$c = _dec3$b(_class$c = _dec4$b(_class$c = (_class2$b = class ControllerCacheMem extends BeanBase {
|
|
741
1230
|
async mem() {
|
|
742
1231
|
let res;
|
|
743
1232
|
let value;
|
|
744
1233
|
|
|
1234
|
+
// set/get
|
|
1235
|
+
this.scope.cacheMem.test.set({
|
|
1236
|
+
name: 'zhen.nann'
|
|
1237
|
+
}, '__immutable__');
|
|
1238
|
+
value = this.scope.cacheMem.test.get('__immutable__');
|
|
1239
|
+
assert.deepEqual(value, {
|
|
1240
|
+
name: 'zhen.nann'
|
|
1241
|
+
});
|
|
1242
|
+
value.name = 'zhennann';
|
|
1243
|
+
value = this.scope.cacheMem.test.get('__immutable__');
|
|
1244
|
+
assert.deepEqual(value, {
|
|
1245
|
+
name: 'zhen.nann'
|
|
1246
|
+
});
|
|
1247
|
+
|
|
745
1248
|
// set
|
|
746
1249
|
value = this.scope.cacheMem.test.getset('zhen.nann');
|
|
747
1250
|
assert.equal(value, undefined);
|
|
@@ -778,17 +1281,17 @@ let ControllerCacheMem = (_dec$b = Controller({
|
|
|
778
1281
|
assert.equal(value, undefined);
|
|
779
1282
|
});
|
|
780
1283
|
}
|
|
781
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
1284
|
+
}, _applyDecoratedDescriptor(_class2$b.prototype, "mem", [_dec5$b, _dec6$b, _dec7$b], Object.getOwnPropertyDescriptor(_class2$b.prototype, "mem"), _class2$b.prototype), _class2$b)) || _class$c) || _class$c) || _class$c) || _class$c);
|
|
782
1285
|
|
|
783
|
-
var _dec$
|
|
784
|
-
let ControllerCacheRedis = (_dec$
|
|
1286
|
+
var _dec$b, _dec2$b, _dec3$a, _dec4$a, _dec5$a, _dec6$a, _dec7$a, _class$b, _class2$a;
|
|
1287
|
+
let ControllerCacheRedis = (_dec$b = Controller({
|
|
785
1288
|
path: 'cacheRedis',
|
|
786
1289
|
meta: {
|
|
787
1290
|
mode: 'test'
|
|
788
1291
|
}
|
|
789
|
-
}), _dec2$
|
|
1292
|
+
}), _dec2$b = Api.exclude(), _dec3$a = Passport.public(), _dec4$a = BeanInfo({
|
|
790
1293
|
module: "test-vona"
|
|
791
|
-
}), _dec5$
|
|
1294
|
+
}), _dec5$a = Web.post(), _dec6$a = Reflect.metadata("design:type", Function), _dec7$a = Reflect.metadata("design:paramtypes", []), _dec$b(_class$b = _dec2$b(_class$b = _dec3$a(_class$b = _dec4$a(_class$b = (_class2$a = class ControllerCacheRedis extends BeanBase {
|
|
792
1295
|
async redis() {
|
|
793
1296
|
let res;
|
|
794
1297
|
let value;
|
|
@@ -829,7 +1332,53 @@ let ControllerCacheRedis = (_dec$a = Controller({
|
|
|
829
1332
|
assert.equal(value, undefined);
|
|
830
1333
|
});
|
|
831
1334
|
}
|
|
832
|
-
}, _applyDecoratedDescriptor(_class2$
|
|
1335
|
+
}, _applyDecoratedDescriptor(_class2$a.prototype, "redis", [_dec5$a, _dec6$a, _dec7$a], Object.getOwnPropertyDescriptor(_class2$a.prototype, "redis"), _class2$a.prototype), _class2$a)) || _class$b) || _class$b) || _class$b) || _class$b);
|
|
1336
|
+
|
|
1337
|
+
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$3, _dec18$3, _dec19$3, _dec20$3, _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$a, _class2$9;
|
|
1338
|
+
let ControllerDtoTest = (_dec$a = Controller('dtoTest', {
|
|
1339
|
+
meta: {
|
|
1340
|
+
mode: ['test', 'dev']
|
|
1341
|
+
}
|
|
1342
|
+
}), _dec2$a = BeanInfo({
|
|
1343
|
+
module: "test-vona"
|
|
1344
|
+
}), _dec3$9 = Web.get('getUserLazy'), _dec4$9 = Reflect.metadata("design:type", Function), _dec5$9 = Reflect.metadata("design:paramtypes", []), _dec6$9 = Web.get('getUserDynamic'), _dec7$9 = Api.body($Dto.get('test-vona:post')), _dec8$7 = Reflect.metadata("design:type", Function), _dec9$6 = Reflect.metadata("design:paramtypes", []), _dec0$6 = Web.get('getUserStats'), _dec1$6 = Api.body($Dto.get('test-vona:userStats')), _dec10$5 = Reflect.metadata("design:type", Function), _dec11$5 = Reflect.metadata("design:paramtypes", []), _dec12$5 = Web.get('getUserStatsGroup'), _dec13$5 = Api.body($Dto.get('test-vona:userStatsGroup')), _dec14$4 = Reflect.metadata("design:type", Function), _dec15$4 = Reflect.metadata("design:paramtypes", []), _dec16$4 = Web.post('createUser'), _dec17$3 = function (target, key) {
|
|
1345
|
+
return Arg.body(v.object(DtoUserCreate))(target, key, 0);
|
|
1346
|
+
}, _dec18$3 = Reflect.metadata("design:type", Function), _dec19$3 = Reflect.metadata("design:paramtypes", [typeof DtoUserCreate === "undefined" ? Object : DtoUserCreate]), _dec20$3 = Web.patch('updateUser/:id'), _dec21$3 = function (target, key) {
|
|
1347
|
+
return Arg.param('id')(target, key, 0);
|
|
1348
|
+
}, _dec22$3 = function (target, key) {
|
|
1349
|
+
return Arg.body(v.object(DtoUserUpdate))(target, key, 1);
|
|
1350
|
+
}, _dec23$3 = Reflect.metadata("design:type", Function), _dec24$3 = Reflect.metadata("design:paramtypes", [typeof TableIdentity$1 === "undefined" ? Object : TableIdentity$1, typeof DtoUserUpdate === "undefined" ? Object : DtoUserUpdate]), _dec25$3 = Web.get('getCategoryTree'), _dec26$2 = Api.body(v.array($Dto.get('test-vona:category', {
|
|
1351
|
+
columns: ['id', 'name']
|
|
1352
|
+
}))), _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$a(_class$a = _dec2$a(_class$a = (_class2$9 = class ControllerDtoTest extends BeanBase {
|
|
1353
|
+
getUserLazy() {
|
|
1354
|
+
return {};
|
|
1355
|
+
}
|
|
1356
|
+
getPostDynamic() {}
|
|
1357
|
+
getUserStats() {}
|
|
1358
|
+
getUserStatsGroup() {}
|
|
1359
|
+
createUser(user) {
|
|
1360
|
+
return this.scope.model.user.insert(user);
|
|
1361
|
+
}
|
|
1362
|
+
updateUser(id, user) {
|
|
1363
|
+
return this.scope.model.user.update(user, {
|
|
1364
|
+
where: {
|
|
1365
|
+
id
|
|
1366
|
+
}
|
|
1367
|
+
});
|
|
1368
|
+
}
|
|
1369
|
+
async getCategoryTree() {
|
|
1370
|
+
const items = await this.scope.model.category.select({
|
|
1371
|
+
columns: ['id', 'name']
|
|
1372
|
+
});
|
|
1373
|
+
return items;
|
|
1374
|
+
}
|
|
1375
|
+
async getCategoryTree2() {
|
|
1376
|
+
const items = await this.scope.model.category.select({
|
|
1377
|
+
columns: ['id', 'name']
|
|
1378
|
+
});
|
|
1379
|
+
return items;
|
|
1380
|
+
}
|
|
1381
|
+
}, _applyDecoratedDescriptor(_class2$9.prototype, "getUserLazy", [_dec3$9, _dec4$9, _dec5$9], Object.getOwnPropertyDescriptor(_class2$9.prototype, "getUserLazy"), _class2$9.prototype), _applyDecoratedDescriptor(_class2$9.prototype, "getPostDynamic", [_dec6$9, _dec7$9, _dec8$7, _dec9$6], Object.getOwnPropertyDescriptor(_class2$9.prototype, "getPostDynamic"), _class2$9.prototype), _applyDecoratedDescriptor(_class2$9.prototype, "getUserStats", [_dec0$6, _dec1$6, _dec10$5, _dec11$5], Object.getOwnPropertyDescriptor(_class2$9.prototype, "getUserStats"), _class2$9.prototype), _applyDecoratedDescriptor(_class2$9.prototype, "getUserStatsGroup", [_dec12$5, _dec13$5, _dec14$4, _dec15$4], Object.getOwnPropertyDescriptor(_class2$9.prototype, "getUserStatsGroup"), _class2$9.prototype), _applyDecoratedDescriptor(_class2$9.prototype, "createUser", [_dec16$4, _dec17$3, _dec18$3, _dec19$3], Object.getOwnPropertyDescriptor(_class2$9.prototype, "createUser"), _class2$9.prototype), _applyDecoratedDescriptor(_class2$9.prototype, "updateUser", [_dec20$3, _dec21$3, _dec22$3, _dec23$3, _dec24$3], Object.getOwnPropertyDescriptor(_class2$9.prototype, "updateUser"), _class2$9.prototype), _applyDecoratedDescriptor(_class2$9.prototype, "getCategoryTree", [_dec25$3, _dec26$2, _dec27$2, _dec28$1], Object.getOwnPropertyDescriptor(_class2$9.prototype, "getCategoryTree"), _class2$9.prototype), _applyDecoratedDescriptor(_class2$9.prototype, "getCategoryTree2", [_dec29$1, _dec30$1, _dec31$1, _dec32$1], Object.getOwnPropertyDescriptor(_class2$9.prototype, "getCategoryTree2"), _class2$9.prototype), _class2$9)) || _class$a) || _class$a);
|
|
833
1382
|
|
|
834
1383
|
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, _class$9, _class2$8;
|
|
835
1384
|
let ControllerGuardPassport = (_dec$9 = Controller('guardPassport'), _dec2$9 = BeanInfo({
|
|
@@ -858,7 +1407,7 @@ let ControllerOnion = (_dec$8 = Controller({
|
|
|
858
1407
|
}
|
|
859
1408
|
}), _dec2$8 = BeanInfo({
|
|
860
1409
|
module: "test-vona"
|
|
861
|
-
}), _dec3$7 = Web.get('/'), _dec4$7 = Aspect.aopMethod('a-
|
|
1410
|
+
}), _dec3$7 = Web.get('/'), _dec4$7 = Aspect.aopMethod('a-orm:transaction', {
|
|
862
1411
|
enable: true,
|
|
863
1412
|
meta: {
|
|
864
1413
|
mode: 'dev'
|
|
@@ -875,7 +1424,7 @@ let ControllerOnion = (_dec$8 = Controller({
|
|
|
875
1424
|
gate: {
|
|
876
1425
|
mode: 'dev'
|
|
877
1426
|
}
|
|
878
|
-
}), _dec10$3 = Aspect.aopMethod('a-
|
|
1427
|
+
}), _dec10$3 = Aspect.aopMethod('a-orm:transaction', {
|
|
879
1428
|
isolationLevel: 'SERIALIZABLE',
|
|
880
1429
|
readOnly: true
|
|
881
1430
|
}), _dec11$3 = Database.transaction({
|
|
@@ -1240,11 +1789,11 @@ let ControllerTransaction = (_dec$2 = Controller({
|
|
|
1240
1789
|
return Arg.body()(target, key, 0);
|
|
1241
1790
|
}, _dec12$1 = Reflect.metadata("design:type", Function), _dec13$1 = Reflect.metadata("design:paramtypes", [Object]), _dec$2(_class$2 = _dec2$2(_class$2 = _dec3$1(_class$2 = (_class2$1 = class ControllerTransaction extends BeanBase {
|
|
1242
1791
|
async fail(item) {
|
|
1243
|
-
await this.
|
|
1244
|
-
await this.
|
|
1792
|
+
await this.bean.model.update(`${tableNameFail}`, item);
|
|
1793
|
+
await this.bean.model.update(`${tableNameFail}error`, item);
|
|
1245
1794
|
}
|
|
1246
1795
|
async success(item) {
|
|
1247
|
-
await this.
|
|
1796
|
+
await this.bean.model.update(tableNameSuccess, item);
|
|
1248
1797
|
}
|
|
1249
1798
|
}, _applyDecoratedDescriptor(_class2$1.prototype, "fail", [_dec4$1, _dec5$1, _dec6$1, _dec7$1, _dec8$1, _dec9$1], Object.getOwnPropertyDescriptor(_class2$1.prototype, "fail"), _class2$1.prototype), _applyDecoratedDescriptor(_class2$1.prototype, "success", [_dec0$1, _dec1$1, _dec10$1, _dec11$1, _dec12$1, _dec13$1], Object.getOwnPropertyDescriptor(_class2$1.prototype, "success"), _class2$1.prototype), _class2$1)) || _class$2) || _class$2) || _class$2);
|
|
1250
1799
|
|
|
@@ -1302,6 +1851,7 @@ function config(_app) {
|
|
|
1302
1851
|
var locale_en_us = {
|
|
1303
1852
|
User: 'User',
|
|
1304
1853
|
UserId: 'User Id',
|
|
1854
|
+
Test: 'Test',
|
|
1305
1855
|
TestHelloWorld: 'Hello World',
|
|
1306
1856
|
TestApples: '%d apples',
|
|
1307
1857
|
TestApples_0: 'no apples',
|
|
@@ -1314,6 +1864,7 @@ var locale_en_us = {
|
|
|
1314
1864
|
var locale_zh_cn = {
|
|
1315
1865
|
User: '用户',
|
|
1316
1866
|
UserId: '用户Id',
|
|
1867
|
+
Test: '测试',
|
|
1317
1868
|
TestHelloWorld: '您好,世界',
|
|
1318
1869
|
TestApples: '%d个苹果',
|
|
1319
1870
|
TestApples_0: '没有苹果',
|
|
@@ -1334,4 +1885,4 @@ function $locale(key) {
|
|
|
1334
1885
|
}
|
|
1335
1886
|
/** scope: end */
|
|
1336
1887
|
|
|
1337
|
-
export { $locale, AopMethodTest, AopRegExp, AopSimple, BeanTestCtx, BroadcastTest, CacheMemTest, CacheRedisTest, ControllerBean, ControllerCacheMem, ControllerCacheRedis, ControllerGuardPassport, ControllerOnion, ControllerPassport, ControllerPerformAction, ControllerQueue, ControllerSummer, ControllerTail, ControllerTransaction, ControllerUpload, DtoProfile, DtoUser, EntityTest, EventHelloEcho, EventListenerHelloEcho, MetaVersion, ModelTest, ModelTestDynamicTable, QueueTest, ScheduleTest, ScheduleTest3, ScopeModuleTestVona, ServiceAopMethod, ServiceCaching, ServiceTest, ServiceTestApp, ServiceTestClass, ServiceTransaction, SummerCacheTest, config, locales };
|
|
1888
|
+
export { $locale, AopMethodTest, AopRegExp, AopSimple, BeanTestCtx, BroadcastTest, CacheMemTest, CacheRedisTest, ControllerBean, ControllerCacheMem, ControllerCacheRedis, ControllerDtoTest, ControllerGuardPassport, ControllerOnion, ControllerPassport, ControllerPerformAction, ControllerQueue, ControllerSummer, ControllerTail, ControllerTransaction, ControllerUpload, DtoCategoryTree, DtoProfile, DtoRoleLazy, DtoUser, DtoUserCreate, DtoUserLazy, DtoUserUpdate, EntityCategory, EntityPost, EntityPostContent, EntityRole, EntityRoleUser, EntityTest, EntityUser, EventHelloEcho, EventListenerHelloEcho, MetaVersion, ModelCategory, ModelPost, ModelPostContent, ModelRole, ModelRoleUser, ModelTest, ModelTestDynamicTable, ModelUser, ModelUserStats, ModelUserStatsGroup, QueueTest, ScheduleTest, ScheduleTest3, ScopeModuleTestVona, ServiceAopMethod, ServiceCaching, ServiceTest, ServiceTestApp, ServiceTestClass, ServiceTestData, ServiceTransaction, SummerCacheTest, config, locales };
|