vona-module-test-vona 5.0.36 → 5.0.38
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/index.js +8 -1
- package/dist/service/post.d.ts +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -820,7 +820,11 @@ let ServicePost = (_dec$E = Service(), _dec2$E = BeanInfo({
|
|
|
820
820
|
module: "test-vona"
|
|
821
821
|
}), _dec$E(_class$E = _dec2$E(_class$E = class ServicePost extends BeanBase {
|
|
822
822
|
async select() {
|
|
823
|
-
return await this.scope.model.post.select(
|
|
823
|
+
return await this.scope.model.post.select({
|
|
824
|
+
where: {
|
|
825
|
+
stars: '_skip_'
|
|
826
|
+
}
|
|
827
|
+
});
|
|
824
828
|
}
|
|
825
829
|
async select2() {
|
|
826
830
|
return await this.scope.model.post.select({
|
|
@@ -844,6 +848,9 @@ let ServicePost = (_dec$E = Service(), _dec2$E = BeanInfo({
|
|
|
844
848
|
id
|
|
845
849
|
});
|
|
846
850
|
}
|
|
851
|
+
async mget(ids) {
|
|
852
|
+
return await this.scope.model.post.mget(ids);
|
|
853
|
+
}
|
|
847
854
|
async count() {
|
|
848
855
|
return await this.scope.model.post.count();
|
|
849
856
|
}
|
package/dist/service/post.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { TableIdentity } from 'table-identity';
|
|
2
2
|
import { BeanBase } from 'vona';
|
|
3
3
|
export declare class ServicePost extends BeanBase {
|
|
4
|
-
select(): Promise<import("vona-module-a-orm").TypeModelRelationResult_Normal<import("vona-module-test-vona").EntityPost, import("vona-module-test-vona").ModelPost,
|
|
4
|
+
select(): Promise<import("vona-module-a-orm").TypeModelRelationResult_Normal<import("vona-module-test-vona").EntityPost, import("vona-module-test-vona").ModelPost, {
|
|
5
|
+
where: {
|
|
6
|
+
stars: "_skip_";
|
|
7
|
+
};
|
|
8
|
+
}, undefined, 50>[]>;
|
|
5
9
|
select2(): Promise<import("vona-module-a-orm").TypeModelRelationResult_Normal<import("vona-module-test-vona").EntityPost, import("vona-module-test-vona").ModelPost, {
|
|
6
10
|
columns: ("id" | "title" | "userId")[];
|
|
7
11
|
where: {
|
|
@@ -16,5 +20,6 @@ export declare class ServicePost extends BeanBase {
|
|
|
16
20
|
orders: ["createdAt", "desc"][];
|
|
17
21
|
}, undefined, 50>[]>;
|
|
18
22
|
get(id: TableIdentity): Promise<import("vona-module-a-orm").TypeModelRelationResult_Normal<import("vona-module-test-vona").EntityPost, import("vona-module-test-vona").ModelPost, import("vona-module-a-orm").IModelGetOptions<import("vona-module-test-vona").EntityPost, import("vona-module-test-vona").ModelPost>, undefined, 50> | undefined>;
|
|
23
|
+
mget(ids: TableIdentity[]): Promise<import("vona-module-a-orm").TypeModelRelationResult_Normal<import("vona-module-test-vona").EntityPost, import("vona-module-test-vona").ModelPost, import("vona-module-a-orm").IModelGetOptions<import("vona-module-test-vona").EntityPost, import("vona-module-test-vona").ModelPost>, undefined, 50>[]>;
|
|
19
24
|
count(): Promise<BigNumber | undefined>;
|
|
20
25
|
}
|