vona-module-test-vona 5.0.32 → 5.0.34
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 +204 -0
- package/dist/config/locale/en-us.d.ts +7 -0
- package/dist/config/locale/zh-cn.d.ts +7 -0
- package/dist/controller/dtoTest.d.ts +2 -2
- package/dist/dto/orderCreate.d.ts +10 -0
- package/dist/dto/orderResult.d.ts +8 -0
- package/dist/dto/orderUpdate.d.ts +10 -0
- package/dist/entity/category.d.ts +1 -1
- package/dist/entity/order.d.ts +10 -0
- package/dist/entity/product.d.ts +12 -0
- package/dist/index.js +381 -184
- package/dist/model/categoryChain.d.ts +7 -0
- package/dist/model/order.d.ts +7 -0
- package/dist/model/orderStats.d.ts +7 -0
- package/dist/model/product.d.ts +7 -0
- package/package.json +1 -1
|
@@ -45,15 +45,19 @@ declare module 'vona-module-test-vona' {
|
|
|
45
45
|
/** aopMethod: end */
|
|
46
46
|
/** entity: begin */
|
|
47
47
|
export * from '../entity/category.ts';
|
|
48
|
+
export * from '../entity/order.ts';
|
|
48
49
|
export * from '../entity/post.ts';
|
|
49
50
|
export * from '../entity/postContent.ts';
|
|
51
|
+
export * from '../entity/product.ts';
|
|
50
52
|
export * from '../entity/role.ts';
|
|
51
53
|
export * from '../entity/roleUser.ts';
|
|
52
54
|
export * from '../entity/test.ts';
|
|
53
55
|
export * from '../entity/user.ts';
|
|
54
56
|
import type { IEntityOptionsCategory } from '../entity/category.ts';
|
|
57
|
+
import type { IEntityOptionsOrder } from '../entity/order.ts';
|
|
55
58
|
import type { IEntityOptionsPost } from '../entity/post.ts';
|
|
56
59
|
import type { IEntityOptionsPostContent } from '../entity/postContent.ts';
|
|
60
|
+
import type { IEntityOptionsProduct } from '../entity/product.ts';
|
|
57
61
|
import type { IEntityOptionsRole } from '../entity/role.ts';
|
|
58
62
|
import type { IEntityOptionsRoleUser } from '../entity/roleUser.ts';
|
|
59
63
|
import type { IEntityOptionsTest } from '../entity/test.ts';
|
|
@@ -62,8 +66,10 @@ import 'vona';
|
|
|
62
66
|
declare module 'vona-module-a-orm' {
|
|
63
67
|
interface IEntityRecord {
|
|
64
68
|
'test-vona:category': IEntityOptionsCategory;
|
|
69
|
+
'test-vona:order': IEntityOptionsOrder;
|
|
65
70
|
'test-vona:post': IEntityOptionsPost;
|
|
66
71
|
'test-vona:postContent': IEntityOptionsPostContent;
|
|
72
|
+
'test-vona:product': IEntityOptionsProduct;
|
|
67
73
|
'test-vona:role': IEntityOptionsRole;
|
|
68
74
|
'test-vona:roleUser': IEntityOptionsRoleUser;
|
|
69
75
|
'test-vona:test': IEntityOptionsTest;
|
|
@@ -75,16 +81,20 @@ declare module 'vona-module-test-vona' {
|
|
|
75
81
|
/** entity: end */
|
|
76
82
|
/** entity: begin */
|
|
77
83
|
import type { EntityCategory } from '../entity/category.ts';
|
|
84
|
+
import type { EntityOrder } from '../entity/order.ts';
|
|
78
85
|
import type { EntityPost } from '../entity/post.ts';
|
|
79
86
|
import type { EntityPostContent } from '../entity/postContent.ts';
|
|
87
|
+
import type { EntityProduct } from '../entity/product.ts';
|
|
80
88
|
import type { EntityRole } from '../entity/role.ts';
|
|
81
89
|
import type { EntityRoleUser } from '../entity/roleUser.ts';
|
|
82
90
|
import type { EntityTest } from '../entity/test.ts';
|
|
83
91
|
import type { EntityUser } from '../entity/user.ts';
|
|
84
92
|
export interface IModuleEntity {
|
|
85
93
|
'category': EntityCategoryMeta;
|
|
94
|
+
'order': EntityOrderMeta;
|
|
86
95
|
'post': EntityPostMeta;
|
|
87
96
|
'postContent': EntityPostContentMeta;
|
|
97
|
+
'product': EntityProductMeta;
|
|
88
98
|
'role': EntityRoleMeta;
|
|
89
99
|
'roleUser': EntityRoleUserMeta;
|
|
90
100
|
'test': EntityTestMeta;
|
|
@@ -93,15 +103,19 @@ export interface IModuleEntity {
|
|
|
93
103
|
/** entity: end */
|
|
94
104
|
/** entity: begin */
|
|
95
105
|
export type EntityCategoryTableName = 'testVonaCategory';
|
|
106
|
+
export type EntityOrderTableName = 'testVonaOrder';
|
|
96
107
|
export type EntityPostTableName = 'testVonaPost';
|
|
97
108
|
export type EntityPostContentTableName = 'testVonaPostContent';
|
|
109
|
+
export type EntityProductTableName = 'testVonaProduct';
|
|
98
110
|
export type EntityRoleTableName = 'testVonaRole';
|
|
99
111
|
export type EntityRoleUserTableName = 'testVonaRoleUser';
|
|
100
112
|
export type EntityTestTableName = 'testVonaTest';
|
|
101
113
|
export type EntityUserTableName = 'testVonaUser';
|
|
102
114
|
export type EntityCategoryMeta = TypeEntityMeta<EntityCategory, EntityCategoryTableName>;
|
|
115
|
+
export type EntityOrderMeta = TypeEntityMeta<EntityOrder, EntityOrderTableName>;
|
|
103
116
|
export type EntityPostMeta = TypeEntityMeta<EntityPost, EntityPostTableName>;
|
|
104
117
|
export type EntityPostContentMeta = TypeEntityMeta<EntityPostContent, EntityPostContentTableName>;
|
|
118
|
+
export type EntityProductMeta = TypeEntityMeta<EntityProduct, EntityProductTableName>;
|
|
105
119
|
export type EntityRoleMeta = TypeEntityMeta<EntityRole, EntityRoleTableName>;
|
|
106
120
|
export type EntityRoleUserMeta = TypeEntityMeta<EntityRoleUser, EntityRoleUserTableName>;
|
|
107
121
|
export type EntityTestMeta = TypeEntityMeta<EntityTest, EntityTestTableName>;
|
|
@@ -109,8 +123,10 @@ export type EntityUserMeta = TypeEntityMeta<EntityUser, EntityUserTableName>;
|
|
|
109
123
|
declare module 'vona-module-a-orm' {
|
|
110
124
|
interface ITableRecord {
|
|
111
125
|
'testVonaCategory': never;
|
|
126
|
+
'testVonaOrder': never;
|
|
112
127
|
'testVonaPost': never;
|
|
113
128
|
'testVonaPostContent': never;
|
|
129
|
+
'testVonaProduct': never;
|
|
114
130
|
'testVonaRole': never;
|
|
115
131
|
'testVonaRoleUser': never;
|
|
116
132
|
'testVonaTest': never;
|
|
@@ -121,12 +137,18 @@ declare module 'vona-module-test-vona' {
|
|
|
121
137
|
interface IEntityOptionsCategory {
|
|
122
138
|
fields?: TypeEntityOptionsFields<EntityCategory, IEntityOptionsCategory[TypeSymbolKeyFieldsMore]>;
|
|
123
139
|
}
|
|
140
|
+
interface IEntityOptionsOrder {
|
|
141
|
+
fields?: TypeEntityOptionsFields<EntityOrder, IEntityOptionsOrder[TypeSymbolKeyFieldsMore]>;
|
|
142
|
+
}
|
|
124
143
|
interface IEntityOptionsPost {
|
|
125
144
|
fields?: TypeEntityOptionsFields<EntityPost, IEntityOptionsPost[TypeSymbolKeyFieldsMore]>;
|
|
126
145
|
}
|
|
127
146
|
interface IEntityOptionsPostContent {
|
|
128
147
|
fields?: TypeEntityOptionsFields<EntityPostContent, IEntityOptionsPostContent[TypeSymbolKeyFieldsMore]>;
|
|
129
148
|
}
|
|
149
|
+
interface IEntityOptionsProduct {
|
|
150
|
+
fields?: TypeEntityOptionsFields<EntityProduct, IEntityOptionsProduct[TypeSymbolKeyFieldsMore]>;
|
|
151
|
+
}
|
|
130
152
|
interface IEntityOptionsRole {
|
|
131
153
|
fields?: TypeEntityOptionsFields<EntityRole, IEntityOptionsRole[TypeSymbolKeyFieldsMore]>;
|
|
132
154
|
}
|
|
@@ -143,8 +165,12 @@ declare module 'vona-module-test-vona' {
|
|
|
143
165
|
/** entity: end */
|
|
144
166
|
/** model: begin */
|
|
145
167
|
export * from '../model/category.ts';
|
|
168
|
+
export * from '../model/categoryChain.ts';
|
|
169
|
+
export * from '../model/order.ts';
|
|
170
|
+
export * from '../model/orderStats.ts';
|
|
146
171
|
export * from '../model/post.ts';
|
|
147
172
|
export * from '../model/postContent.ts';
|
|
173
|
+
export * from '../model/product.ts';
|
|
148
174
|
export * from '../model/role.ts';
|
|
149
175
|
export * from '../model/roleUser.ts';
|
|
150
176
|
export * from '../model/test.ts';
|
|
@@ -153,8 +179,12 @@ export * from '../model/user.ts';
|
|
|
153
179
|
export * from '../model/userStats.ts';
|
|
154
180
|
export * from '../model/userStatsGroup.ts';
|
|
155
181
|
import type { IModelOptionsCategory } from '../model/category.ts';
|
|
182
|
+
import type { IModelOptionsCategoryChain } from '../model/categoryChain.ts';
|
|
183
|
+
import type { IModelOptionsOrder } from '../model/order.ts';
|
|
184
|
+
import type { IModelOptionsOrderStats } from '../model/orderStats.ts';
|
|
156
185
|
import type { IModelOptionsPost } from '../model/post.ts';
|
|
157
186
|
import type { IModelOptionsPostContent } from '../model/postContent.ts';
|
|
187
|
+
import type { IModelOptionsProduct } from '../model/product.ts';
|
|
158
188
|
import type { IModelOptionsRole } from '../model/role.ts';
|
|
159
189
|
import type { IModelOptionsRoleUser } from '../model/roleUser.ts';
|
|
160
190
|
import type { IModelOptionsTest } from '../model/test.ts';
|
|
@@ -166,8 +196,12 @@ import 'vona';
|
|
|
166
196
|
declare module 'vona-module-a-orm' {
|
|
167
197
|
interface IModelRecord {
|
|
168
198
|
'test-vona:category': IModelOptionsCategory;
|
|
199
|
+
'test-vona:categoryChain': IModelOptionsCategoryChain;
|
|
200
|
+
'test-vona:order': IModelOptionsOrder;
|
|
201
|
+
'test-vona:orderStats': IModelOptionsOrderStats;
|
|
169
202
|
'test-vona:post': IModelOptionsPost;
|
|
170
203
|
'test-vona:postContent': IModelOptionsPostContent;
|
|
204
|
+
'test-vona:product': IModelOptionsProduct;
|
|
171
205
|
'test-vona:role': IModelOptionsRole;
|
|
172
206
|
'test-vona:roleUser': IModelOptionsRoleUser;
|
|
173
207
|
'test-vona:test': IModelOptionsTest;
|
|
@@ -184,6 +218,24 @@ declare module 'vona-module-test-vona' {
|
|
|
184
218
|
get $beanFullName(): 'test-vona.model.category';
|
|
185
219
|
get $onionName(): 'test-vona:category';
|
|
186
220
|
}
|
|
221
|
+
interface ModelCategoryChain {
|
|
222
|
+
}
|
|
223
|
+
interface ModelCategoryChain {
|
|
224
|
+
get $beanFullName(): 'test-vona.model.categoryChain';
|
|
225
|
+
get $onionName(): 'test-vona:categoryChain';
|
|
226
|
+
}
|
|
227
|
+
interface ModelOrder {
|
|
228
|
+
}
|
|
229
|
+
interface ModelOrder {
|
|
230
|
+
get $beanFullName(): 'test-vona.model.order';
|
|
231
|
+
get $onionName(): 'test-vona:order';
|
|
232
|
+
}
|
|
233
|
+
interface ModelOrderStats {
|
|
234
|
+
}
|
|
235
|
+
interface ModelOrderStats {
|
|
236
|
+
get $beanFullName(): 'test-vona.model.orderStats';
|
|
237
|
+
get $onionName(): 'test-vona:orderStats';
|
|
238
|
+
}
|
|
187
239
|
interface ModelPost {
|
|
188
240
|
}
|
|
189
241
|
interface ModelPost {
|
|
@@ -196,6 +248,12 @@ declare module 'vona-module-test-vona' {
|
|
|
196
248
|
get $beanFullName(): 'test-vona.model.postContent';
|
|
197
249
|
get $onionName(): 'test-vona:postContent';
|
|
198
250
|
}
|
|
251
|
+
interface ModelProduct {
|
|
252
|
+
}
|
|
253
|
+
interface ModelProduct {
|
|
254
|
+
get $beanFullName(): 'test-vona.model.product';
|
|
255
|
+
get $onionName(): 'test-vona:product';
|
|
256
|
+
}
|
|
199
257
|
interface ModelRole {
|
|
200
258
|
}
|
|
201
259
|
interface ModelRole {
|
|
@@ -242,8 +300,12 @@ declare module 'vona-module-test-vona' {
|
|
|
242
300
|
/** model: end */
|
|
243
301
|
/** model: begin */
|
|
244
302
|
import type { ModelCategory } from '../model/category.ts';
|
|
303
|
+
import type { ModelCategoryChain } from '../model/categoryChain.ts';
|
|
304
|
+
import type { ModelOrder } from '../model/order.ts';
|
|
305
|
+
import type { ModelOrderStats } from '../model/orderStats.ts';
|
|
245
306
|
import type { ModelPost } from '../model/post.ts';
|
|
246
307
|
import type { ModelPostContent } from '../model/postContent.ts';
|
|
308
|
+
import type { ModelProduct } from '../model/product.ts';
|
|
247
309
|
import type { ModelRole } from '../model/role.ts';
|
|
248
310
|
import type { ModelRoleUser } from '../model/roleUser.ts';
|
|
249
311
|
import type { ModelTest } from '../model/test.ts';
|
|
@@ -253,8 +315,12 @@ import type { ModelUserStats } from '../model/userStats.ts';
|
|
|
253
315
|
import type { ModelUserStatsGroup } from '../model/userStatsGroup.ts';
|
|
254
316
|
export interface IModuleModel {
|
|
255
317
|
'category': ModelCategory;
|
|
318
|
+
'categoryChain': ModelCategoryChain;
|
|
319
|
+
'order': ModelOrder;
|
|
320
|
+
'orderStats': ModelOrderStats;
|
|
256
321
|
'post': ModelPost;
|
|
257
322
|
'postContent': ModelPostContent;
|
|
323
|
+
'product': ModelProduct;
|
|
258
324
|
'role': ModelRole;
|
|
259
325
|
'roleUser': ModelRoleUser;
|
|
260
326
|
'test': ModelTest;
|
|
@@ -273,6 +339,29 @@ declare module 'vona-module-test-vona' {
|
|
|
273
339
|
children: IModelRelationHasMany<ModelCategory, true, 'id' | 'name', undefined, undefined, undefined>;
|
|
274
340
|
};
|
|
275
341
|
}
|
|
342
|
+
interface IModelOptionsCategoryChain {
|
|
343
|
+
relations: {
|
|
344
|
+
parent: IModelRelationBelongsTo<ModelCategoryChain, ModelCategoryChain, true, 'id' | 'name' | 'categoryIdParent'>;
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
interface IModelOptionsOrder {
|
|
348
|
+
relations: {
|
|
349
|
+
user: IModelRelationBelongsTo<ModelOrder, ModelUser, true, 'id' | 'name'>;
|
|
350
|
+
products: IModelRelationHasMany<ModelProduct, true, 'id' | 'name' | 'price' | 'quantity' | 'amount', undefined, undefined, undefined>;
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
interface IModelOptionsOrderStats {
|
|
354
|
+
relations: {
|
|
355
|
+
productStats: IModelRelationHasMany<ModelProduct, true, '*', undefined, {
|
|
356
|
+
count?: '*' | Array<'*'>;
|
|
357
|
+
sum?: 'amount' | Array<'amount'>;
|
|
358
|
+
}, undefined>;
|
|
359
|
+
productsGroups: IModelRelationHasMany<ModelProduct, false, undefined, undefined, {
|
|
360
|
+
count?: '*' | Array<'*'>;
|
|
361
|
+
sum?: 'amount' | Array<'amount'>;
|
|
362
|
+
}, 'id' | Array<'id'>>;
|
|
363
|
+
};
|
|
364
|
+
}
|
|
276
365
|
interface IModelOptionsPost {
|
|
277
366
|
relations: {
|
|
278
367
|
postContent: IModelRelationHasOne<'test-vona:postContent', false, 'id' | 'content'>;
|
|
@@ -336,6 +425,63 @@ declare module 'vona-module-test-vona' {
|
|
|
336
425
|
aggregate<T extends IModelSelectAggrParams<EntityCategory, ModelCategory, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
337
426
|
group<T extends IModelSelectGroupParams<EntityCategory, ModelCategory, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityCategory, T>[]>;
|
|
338
427
|
}
|
|
428
|
+
interface ModelCategoryChain {
|
|
429
|
+
[SymbolKeyEntity]: EntityCategory;
|
|
430
|
+
[SymbolKeyEntityMeta]: EntityCategoryMeta;
|
|
431
|
+
[SymbolKeyModelOptions]: IModelOptionsCategoryChain;
|
|
432
|
+
get<T extends IModelGetOptions<EntityCategory, ModelCategoryChain>>(where: TypeModelWhere<EntityCategory>, options?: T): Promise<TypeModelRelationResult<EntityCategory, ModelCategoryChain, T> | undefined>;
|
|
433
|
+
mget<T extends IModelGetOptions<EntityCategory, ModelCategoryChain>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityCategory, ModelCategoryChain, T>[]>;
|
|
434
|
+
select<T extends IModelSelectParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityCategory, ModelCategoryChain, T>[]>;
|
|
435
|
+
insert<T extends IModelInsertOptions<EntityCategory, ModelCategoryChain>>(data?: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>>>;
|
|
436
|
+
insertBulk<T extends IModelInsertOptions<EntityCategory, ModelCategoryChain>>(items: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>>[]>;
|
|
437
|
+
update<T extends IModelUpdateOptions<EntityCategory, ModelCategoryChain>>(data: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>, options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>>;
|
|
438
|
+
updateBulk<T extends IModelUpdateOptions<EntityCategory, ModelCategoryChain>>(items: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>[]>;
|
|
439
|
+
delete<T extends IModelDeleteOptions<EntityCategory, ModelCategoryChain>>(where?: TypeModelWhere<EntityCategory>, options?: T): Promise<void>;
|
|
440
|
+
deleteBulk<T extends IModelDeleteOptions<EntityCategory, ModelCategoryChain>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
441
|
+
mutate<T extends IModelMutateOptions<EntityCategory, ModelCategoryChain>>(data?: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>, options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>>;
|
|
442
|
+
mutateBulk<T extends IModelMutateOptions<EntityCategory, ModelCategoryChain>>(items: TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityCategory, ModelCategoryChain, T>[]>;
|
|
443
|
+
count<T extends IModelSelectCountParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
444
|
+
aggregate<T extends IModelSelectAggrParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
445
|
+
group<T extends IModelSelectGroupParams<EntityCategory, ModelCategoryChain, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityCategory, T>[]>;
|
|
446
|
+
}
|
|
447
|
+
interface ModelOrder {
|
|
448
|
+
[SymbolKeyEntity]: EntityOrder;
|
|
449
|
+
[SymbolKeyEntityMeta]: EntityOrderMeta;
|
|
450
|
+
[SymbolKeyModelOptions]: IModelOptionsOrder;
|
|
451
|
+
get<T extends IModelGetOptions<EntityOrder, ModelOrder>>(where: TypeModelWhere<EntityOrder>, options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrder, T> | undefined>;
|
|
452
|
+
mget<T extends IModelGetOptions<EntityOrder, ModelOrder>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrder, T>[]>;
|
|
453
|
+
select<T extends IModelSelectParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityOrder, ModelOrder, T>[]>;
|
|
454
|
+
insert<T extends IModelInsertOptions<EntityOrder, ModelOrder>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>>>;
|
|
455
|
+
insertBulk<T extends IModelInsertOptions<EntityOrder, ModelOrder>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>>[]>;
|
|
456
|
+
update<T extends IModelUpdateOptions<EntityOrder, ModelOrder>>(data: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>>;
|
|
457
|
+
updateBulk<T extends IModelUpdateOptions<EntityOrder, ModelOrder>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[]>;
|
|
458
|
+
delete<T extends IModelDeleteOptions<EntityOrder, ModelOrder>>(where?: TypeModelWhere<EntityOrder>, options?: T): Promise<void>;
|
|
459
|
+
deleteBulk<T extends IModelDeleteOptions<EntityOrder, ModelOrder>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
460
|
+
mutate<T extends IModelMutateOptions<EntityOrder, ModelOrder>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>>;
|
|
461
|
+
mutateBulk<T extends IModelMutateOptions<EntityOrder, ModelOrder>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrder, T>[]>;
|
|
462
|
+
count<T extends IModelSelectCountParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
463
|
+
aggregate<T extends IModelSelectAggrParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
464
|
+
group<T extends IModelSelectGroupParams<EntityOrder, ModelOrder, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityOrder, T>[]>;
|
|
465
|
+
}
|
|
466
|
+
interface ModelOrderStats {
|
|
467
|
+
[SymbolKeyEntity]: EntityOrder;
|
|
468
|
+
[SymbolKeyEntityMeta]: EntityOrderMeta;
|
|
469
|
+
[SymbolKeyModelOptions]: IModelOptionsOrderStats;
|
|
470
|
+
get<T extends IModelGetOptions<EntityOrder, ModelOrderStats>>(where: TypeModelWhere<EntityOrder>, options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrderStats, T> | undefined>;
|
|
471
|
+
mget<T extends IModelGetOptions<EntityOrder, ModelOrderStats>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityOrder, ModelOrderStats, T>[]>;
|
|
472
|
+
select<T extends IModelSelectParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityOrder, ModelOrderStats, T>[]>;
|
|
473
|
+
insert<T extends IModelInsertOptions<EntityOrder, ModelOrderStats>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>>>;
|
|
474
|
+
insertBulk<T extends IModelInsertOptions<EntityOrder, ModelOrderStats>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>>[]>;
|
|
475
|
+
update<T extends IModelUpdateOptions<EntityOrder, ModelOrderStats>>(data: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>>;
|
|
476
|
+
updateBulk<T extends IModelUpdateOptions<EntityOrder, ModelOrderStats>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[]>;
|
|
477
|
+
delete<T extends IModelDeleteOptions<EntityOrder, ModelOrderStats>>(where?: TypeModelWhere<EntityOrder>, options?: T): Promise<void>;
|
|
478
|
+
deleteBulk<T extends IModelDeleteOptions<EntityOrder, ModelOrderStats>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
479
|
+
mutate<T extends IModelMutateOptions<EntityOrder, ModelOrderStats>>(data?: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>, options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>>;
|
|
480
|
+
mutateBulk<T extends IModelMutateOptions<EntityOrder, ModelOrderStats>>(items: TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityOrder, ModelOrderStats, T>[]>;
|
|
481
|
+
count<T extends IModelSelectCountParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
482
|
+
aggregate<T extends IModelSelectAggrParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
483
|
+
group<T extends IModelSelectGroupParams<EntityOrder, ModelOrderStats, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityOrder, T>[]>;
|
|
484
|
+
}
|
|
339
485
|
interface ModelPost {
|
|
340
486
|
[SymbolKeyEntity]: EntityPost;
|
|
341
487
|
[SymbolKeyEntityMeta]: EntityPostMeta;
|
|
@@ -374,6 +520,25 @@ declare module 'vona-module-test-vona' {
|
|
|
374
520
|
aggregate<T extends IModelSelectAggrParams<EntityPostContent, ModelPostContent, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
375
521
|
group<T extends IModelSelectGroupParams<EntityPostContent, ModelPostContent, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityPostContent, T>[]>;
|
|
376
522
|
}
|
|
523
|
+
interface ModelProduct {
|
|
524
|
+
[SymbolKeyEntity]: EntityProduct;
|
|
525
|
+
[SymbolKeyEntityMeta]: EntityProductMeta;
|
|
526
|
+
[SymbolKeyModelOptions]: IModelOptionsProduct;
|
|
527
|
+
get<T extends IModelGetOptions<EntityProduct, ModelProduct>>(where: TypeModelWhere<EntityProduct>, options?: T): Promise<TypeModelRelationResult<EntityProduct, ModelProduct, T> | undefined>;
|
|
528
|
+
mget<T extends IModelGetOptions<EntityProduct, ModelProduct>>(ids: TableIdentity[], options?: T): Promise<TypeModelRelationResult<EntityProduct, ModelProduct, T>[]>;
|
|
529
|
+
select<T extends IModelSelectParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelRelationResult<EntityProduct, ModelProduct, T>[]>;
|
|
530
|
+
insert<T extends IModelInsertOptions<EntityProduct, ModelProduct>>(data?: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>, options?: T): Promise<Required<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>>>;
|
|
531
|
+
insertBulk<T extends IModelInsertOptions<EntityProduct, ModelProduct>>(items: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[], options?: T): Promise<Required<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>>[]>;
|
|
532
|
+
update<T extends IModelUpdateOptions<EntityProduct, ModelProduct>>(data: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>, options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>>;
|
|
533
|
+
updateBulk<T extends IModelUpdateOptions<EntityProduct, ModelProduct>>(items: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[]>;
|
|
534
|
+
delete<T extends IModelDeleteOptions<EntityProduct, ModelProduct>>(where?: TypeModelWhere<EntityProduct>, options?: T): Promise<void>;
|
|
535
|
+
deleteBulk<T extends IModelDeleteOptions<EntityProduct, ModelProduct>>(ids: TableIdentity[], options?: T): Promise<void>;
|
|
536
|
+
mutate<T extends IModelMutateOptions<EntityProduct, ModelProduct>>(data?: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>, options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>>;
|
|
537
|
+
mutateBulk<T extends IModelMutateOptions<EntityProduct, ModelProduct>>(items: TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[], options?: T): Promise<TypeModelMutateRelationData<EntityProduct, ModelProduct, T>[]>;
|
|
538
|
+
count<T extends IModelSelectCountParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<BigNumber | undefined>;
|
|
539
|
+
aggregate<T extends IModelSelectAggrParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelAggrRelationResult<T>>;
|
|
540
|
+
group<T extends IModelSelectGroupParams<EntityProduct, ModelProduct, ModelJoins>, ModelJoins extends TypeModelsClassLikeGeneral | undefined = undefined>(params?: T, options?: IModelMethodOptions, modelJoins?: ModelJoins): Promise<TypeModelGroupRelationResult<EntityProduct, T>[]>;
|
|
541
|
+
}
|
|
377
542
|
interface ModelRole {
|
|
378
543
|
[SymbolKeyEntity]: EntityRole;
|
|
379
544
|
[SymbolKeyEntityMeta]: EntityRoleMeta;
|
|
@@ -511,8 +676,12 @@ declare module 'vona-module-test-vona' {
|
|
|
511
676
|
declare module 'vona-module-a-orm' {
|
|
512
677
|
interface IModelClassRecord {
|
|
513
678
|
'test-vona:category': ModelCategory;
|
|
679
|
+
'test-vona:categoryChain': ModelCategoryChain;
|
|
680
|
+
'test-vona:order': ModelOrder;
|
|
681
|
+
'test-vona:orderStats': ModelOrderStats;
|
|
514
682
|
'test-vona:post': ModelPost;
|
|
515
683
|
'test-vona:postContent': ModelPostContent;
|
|
684
|
+
'test-vona:product': ModelProduct;
|
|
516
685
|
'test-vona:role': ModelRole;
|
|
517
686
|
'test-vona:roleUser': ModelRoleUser;
|
|
518
687
|
'test-vona:test': ModelTest;
|
|
@@ -844,6 +1013,9 @@ export interface IModuleSummerCache {
|
|
|
844
1013
|
/** summerCache: end */
|
|
845
1014
|
/** dto: begin */
|
|
846
1015
|
export * from '../dto/categoryTree.ts';
|
|
1016
|
+
export * from '../dto/orderCreate.ts';
|
|
1017
|
+
export * from '../dto/orderResult.ts';
|
|
1018
|
+
export * from '../dto/orderUpdate.ts';
|
|
847
1019
|
export * from '../dto/postCreate.ts';
|
|
848
1020
|
export * from '../dto/profile.ts';
|
|
849
1021
|
export * from '../dto/roleLazy.ts';
|
|
@@ -852,6 +1024,9 @@ export * from '../dto/userCreate.ts';
|
|
|
852
1024
|
export * from '../dto/userLazy.ts';
|
|
853
1025
|
export * from '../dto/userUpdate.ts';
|
|
854
1026
|
import type { IDtoOptionsCategoryTree } from '../dto/categoryTree.ts';
|
|
1027
|
+
import type { IDtoOptionsOrderCreate } from '../dto/orderCreate.ts';
|
|
1028
|
+
import type { IDtoOptionsOrderResult } from '../dto/orderResult.ts';
|
|
1029
|
+
import type { IDtoOptionsOrderUpdate } from '../dto/orderUpdate.ts';
|
|
855
1030
|
import type { IDtoOptionsPostCreate } from '../dto/postCreate.ts';
|
|
856
1031
|
import type { IDtoOptionsProfile } from '../dto/profile.ts';
|
|
857
1032
|
import type { IDtoOptionsRoleLazy } from '../dto/roleLazy.ts';
|
|
@@ -863,6 +1038,9 @@ import 'vona';
|
|
|
863
1038
|
declare module 'vona-module-a-web' {
|
|
864
1039
|
interface IDtoRecord {
|
|
865
1040
|
'test-vona:categoryTree': IDtoOptionsCategoryTree;
|
|
1041
|
+
'test-vona:orderCreate': IDtoOptionsOrderCreate;
|
|
1042
|
+
'test-vona:orderResult': IDtoOptionsOrderResult;
|
|
1043
|
+
'test-vona:orderUpdate': IDtoOptionsOrderUpdate;
|
|
866
1044
|
'test-vona:postCreate': IDtoOptionsPostCreate;
|
|
867
1045
|
'test-vona:profile': IDtoOptionsProfile;
|
|
868
1046
|
'test-vona:roleLazy': IDtoOptionsRoleLazy;
|
|
@@ -877,6 +1055,9 @@ declare module 'vona-module-test-vona' {
|
|
|
877
1055
|
/** dto: end */
|
|
878
1056
|
/** dto: begin */
|
|
879
1057
|
import type { DtoCategoryTree } from '../dto/categoryTree.ts';
|
|
1058
|
+
import type { DtoOrderCreate } from '../dto/orderCreate.ts';
|
|
1059
|
+
import type { DtoOrderResult } from '../dto/orderResult.ts';
|
|
1060
|
+
import type { DtoOrderUpdate } from '../dto/orderUpdate.ts';
|
|
880
1061
|
import type { DtoPostCreate } from '../dto/postCreate.ts';
|
|
881
1062
|
import type { DtoProfile } from '../dto/profile.ts';
|
|
882
1063
|
import type { DtoRoleLazy } from '../dto/roleLazy.ts';
|
|
@@ -888,6 +1069,15 @@ declare module 'vona-module-test-vona' {
|
|
|
888
1069
|
interface IDtoOptionsCategoryTree {
|
|
889
1070
|
fields?: TypeEntityOptionsFields<DtoCategoryTree, IDtoOptionsCategoryTree[TypeSymbolKeyFieldsMore]>;
|
|
890
1071
|
}
|
|
1072
|
+
interface IDtoOptionsOrderCreate {
|
|
1073
|
+
fields?: TypeEntityOptionsFields<DtoOrderCreate, IDtoOptionsOrderCreate[TypeSymbolKeyFieldsMore]>;
|
|
1074
|
+
}
|
|
1075
|
+
interface IDtoOptionsOrderResult {
|
|
1076
|
+
fields?: TypeEntityOptionsFields<DtoOrderResult, IDtoOptionsOrderResult[TypeSymbolKeyFieldsMore]>;
|
|
1077
|
+
}
|
|
1078
|
+
interface IDtoOptionsOrderUpdate {
|
|
1079
|
+
fields?: TypeEntityOptionsFields<DtoOrderUpdate, IDtoOptionsOrderUpdate[TypeSymbolKeyFieldsMore]>;
|
|
1080
|
+
}
|
|
891
1081
|
interface IDtoOptionsPostCreate {
|
|
892
1082
|
fields?: TypeEntityOptionsFields<DtoPostCreate, IDtoOptionsPostCreate[TypeSymbolKeyFieldsMore]>;
|
|
893
1083
|
}
|
|
@@ -1144,6 +1334,7 @@ export * from '../config/config.ts';
|
|
|
1144
1334
|
import type { config } from '../config/config.ts';
|
|
1145
1335
|
export declare const locales: {
|
|
1146
1336
|
'en-us': {
|
|
1337
|
+
Name: string;
|
|
1147
1338
|
User: string;
|
|
1148
1339
|
UserId: string;
|
|
1149
1340
|
Test: string;
|
|
@@ -1154,8 +1345,15 @@ export declare const locales: {
|
|
|
1154
1345
|
TestNameApples_: string;
|
|
1155
1346
|
TestNameApples_0_1: string;
|
|
1156
1347
|
TestNameApples_1_1: string;
|
|
1348
|
+
Order: string;
|
|
1349
|
+
OrderNo: string;
|
|
1350
|
+
Remark: string;
|
|
1351
|
+
Price: string;
|
|
1352
|
+
Quantity: string;
|
|
1353
|
+
Amount: string;
|
|
1157
1354
|
};
|
|
1158
1355
|
'zh-cn': {
|
|
1356
|
+
Name: string;
|
|
1159
1357
|
User: string;
|
|
1160
1358
|
UserId: string;
|
|
1161
1359
|
Test: string;
|
|
@@ -1164,6 +1362,12 @@ export declare const locales: {
|
|
|
1164
1362
|
TestApples_0: string;
|
|
1165
1363
|
TestNameApples_: string;
|
|
1166
1364
|
TestNameApples_0_1: string;
|
|
1365
|
+
Order: string;
|
|
1366
|
+
OrderNo: string;
|
|
1367
|
+
Remark: string;
|
|
1368
|
+
Price: string;
|
|
1369
|
+
Quantity: string;
|
|
1370
|
+
Amount: string;
|
|
1167
1371
|
};
|
|
1168
1372
|
};
|
|
1169
1373
|
/** locale: end */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
Name: string;
|
|
2
3
|
User: string;
|
|
3
4
|
UserId: string;
|
|
4
5
|
Test: string;
|
|
@@ -9,5 +10,11 @@ declare const _default: {
|
|
|
9
10
|
TestNameApples_: string;
|
|
10
11
|
TestNameApples_0_1: string;
|
|
11
12
|
TestNameApples_1_1: string;
|
|
13
|
+
Order: string;
|
|
14
|
+
OrderNo: string;
|
|
15
|
+
Remark: string;
|
|
16
|
+
Price: string;
|
|
17
|
+
Quantity: string;
|
|
18
|
+
Amount: string;
|
|
12
19
|
};
|
|
13
20
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
Name: string;
|
|
2
3
|
User: string;
|
|
3
4
|
UserId: string;
|
|
4
5
|
Test: string;
|
|
@@ -7,5 +8,11 @@ declare const _default: {
|
|
|
7
8
|
TestApples_0: string;
|
|
8
9
|
TestNameApples_: string;
|
|
9
10
|
TestNameApples_0_1: string;
|
|
11
|
+
Order: string;
|
|
12
|
+
OrderNo: string;
|
|
13
|
+
Remark: string;
|
|
14
|
+
Price: string;
|
|
15
|
+
Quantity: string;
|
|
16
|
+
Amount: string;
|
|
10
17
|
};
|
|
11
18
|
export default _default;
|
|
@@ -19,8 +19,8 @@ export declare class ControllerDtoTest extends BeanBase {
|
|
|
19
19
|
}>>;
|
|
20
20
|
getCategoryTree(): Promise<import("vona-module-a-orm").TypeModelRelationResult_Normal<import("vona-module-test-vona").EntityCategory, import("vona-module-test-vona").ModelCategory, {
|
|
21
21
|
columns: ("name" | "id")[];
|
|
22
|
-
}, undefined>[]>;
|
|
22
|
+
}, undefined, 50>[]>;
|
|
23
23
|
getCategoryTree2(): Promise<import("vona-module-a-orm").TypeModelRelationResult_Normal<import("vona-module-test-vona").EntityCategory, import("vona-module-test-vona").ModelCategory, {
|
|
24
24
|
columns: ("name" | "id")[];
|
|
25
|
-
}, undefined>[]>;
|
|
25
|
+
}, undefined, 50>[]>;
|
|
26
26
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
import { ModelOrder } from '../model/order.ts';
|
|
3
|
+
export interface IDtoOptionsOrderCreate extends IDecoratorDtoOptions {
|
|
4
|
+
}
|
|
5
|
+
declare const DtoOrderCreate_base: import("vona-core").Constructable<import("vona-module-a-orm").TypeDtoMutateResult<ModelOrder, {
|
|
6
|
+
columns: ("orderNo" | "remark")[];
|
|
7
|
+
}, "create", "iid" | "id" | "createdAt" | "updatedAt" | "deleted", true>>;
|
|
8
|
+
export declare class DtoOrderCreate extends DtoOrderCreate_base {
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
import { ModelOrder } from '../model/order.ts';
|
|
3
|
+
export interface IDtoOptionsOrderResult extends IDecoratorDtoOptions {
|
|
4
|
+
}
|
|
5
|
+
declare const DtoOrderResult_base: import("vona-core").Constructable<import("vona-module-a-orm").TypeDtoGetResult<ModelOrder, undefined>>;
|
|
6
|
+
export declare class DtoOrderResult extends DtoOrderResult_base {
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IDecoratorDtoOptions } from 'vona-module-a-web';
|
|
2
|
+
import { ModelOrder } from '../model/order.ts';
|
|
3
|
+
export interface IDtoOptionsOrderUpdate extends IDecoratorDtoOptions {
|
|
4
|
+
}
|
|
5
|
+
declare const DtoOrderUpdate_base: import("vona-core").Constructable<import("vona-module-a-orm").TypeDtoMutateResult<ModelOrder, {
|
|
6
|
+
columns: ("orderNo" | "remark")[];
|
|
7
|
+
}, "update", "iid" | "id" | "createdAt" | "updatedAt" | "deleted", true>>;
|
|
8
|
+
export declare class DtoOrderUpdate extends DtoOrderUpdate_base {
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
|
|
2
|
+
import { EntityBase } from 'vona-module-a-orm';
|
|
3
|
+
import '../.metadata/index.ts';
|
|
4
|
+
export interface IEntityOptionsOrder extends IDecoratorEntityOptions {
|
|
5
|
+
}
|
|
6
|
+
export declare class EntityOrder extends EntityBase {
|
|
7
|
+
orderNo: string;
|
|
8
|
+
remark?: string;
|
|
9
|
+
userId: TableIdentity;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IDecoratorEntityOptions, TableIdentity } from 'vona-module-a-orm';
|
|
2
|
+
import { EntityBase } from 'vona-module-a-orm';
|
|
3
|
+
import '../.metadata/index.ts';
|
|
4
|
+
export interface IEntityOptionsProduct extends IDecoratorEntityOptions {
|
|
5
|
+
}
|
|
6
|
+
export declare class EntityProduct extends EntityBase {
|
|
7
|
+
name: string;
|
|
8
|
+
price: number;
|
|
9
|
+
quantity: number;
|
|
10
|
+
amount: number;
|
|
11
|
+
orderId: TableIdentity;
|
|
12
|
+
}
|