@hugo.ye/common 1.0.127 → 1.0.128
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.
|
@@ -4,6 +4,11 @@ import { type Relation } from 'typeorm';
|
|
|
4
4
|
export declare class PermissionEntity extends AbstractEntity<PermissionEntity> {
|
|
5
5
|
name: string;
|
|
6
6
|
action: string;
|
|
7
|
+
sortNumber: number;
|
|
8
|
+
sortId: string;
|
|
9
|
+
depth: number;
|
|
10
|
+
parentId: number;
|
|
11
|
+
type: number;
|
|
7
12
|
role: Relation<RoleEntity>;
|
|
8
13
|
}
|
|
9
14
|
//# sourceMappingURL=permission.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.entity.d.ts","sourceRoot":"","sources":["../../src/models/permission.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAc,MAAM,aAAa,CAAC;AACrD,OAAO,EAML,KAAK,QAAQ,EACd,MAAM,SAAS,CAAC;AAEjB,qBAGa,gBAAiB,SAAQ,cAAc,CAAC,gBAAgB,CAAC;IAGpE,IAAI,EAAE,MAAM,CAAC;IAIb,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"permission.entity.d.ts","sourceRoot":"","sources":["../../src/models/permission.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAc,MAAM,aAAa,CAAC;AACrD,OAAO,EAML,KAAK,QAAQ,EACd,MAAM,SAAS,CAAC;AAEjB,qBAGa,gBAAiB,SAAQ,cAAc,CAAC,gBAAgB,CAAC;IAGpE,IAAI,EAAE,MAAM,CAAC;IAIb,MAAM,EAAE,MAAM,CAAC;IAIf,UAAU,EAAE,MAAM,CAAC;IAInB,MAAM,EAAE,MAAM,CAAC;IAIf,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,EAAE,MAAM,CAAC;IAIjB,IAAI,EAAE,MAAM,CAAC;IAQb,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;CAC5B"}
|
|
@@ -14,6 +14,11 @@ import { Column, Entity, JoinColumn, ManyToMany, ManyToOne, } from 'typeorm';
|
|
|
14
14
|
let PermissionEntity = class PermissionEntity extends AbstractEntity {
|
|
15
15
|
name;
|
|
16
16
|
action;
|
|
17
|
+
sortNumber;
|
|
18
|
+
sortId;
|
|
19
|
+
depth;
|
|
20
|
+
parentId;
|
|
21
|
+
type;
|
|
17
22
|
role;
|
|
18
23
|
};
|
|
19
24
|
__decorate([
|
|
@@ -26,6 +31,31 @@ __decorate([
|
|
|
26
31
|
Field(() => String),
|
|
27
32
|
__metadata("design:type", String)
|
|
28
33
|
], PermissionEntity.prototype, "action", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Column({ default: 0 }),
|
|
36
|
+
Field({ defaultValue: 0 }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], PermissionEntity.prototype, "sortNumber", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Column({ nullable: true }),
|
|
41
|
+
Field({ nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], PermissionEntity.prototype, "sortId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Column({ default: 0 }),
|
|
46
|
+
Field({ defaultValue: 0 }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], PermissionEntity.prototype, "depth", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
Column({ default: 0 }),
|
|
51
|
+
Field({ defaultValue: 0 }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], PermissionEntity.prototype, "parentId", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
Column({ default: 0 }),
|
|
56
|
+
Field({ defaultValue: 0 }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], PermissionEntity.prototype, "type", void 0);
|
|
29
59
|
__decorate([
|
|
30
60
|
ManyToOne(() => RoleEntity, (role) => role.permissions, {
|
|
31
61
|
nullable: true,
|
|
@@ -38,7 +68,7 @@ __decorate([
|
|
|
38
68
|
PermissionEntity = __decorate([
|
|
39
69
|
Entity(),
|
|
40
70
|
ObjectType(),
|
|
41
|
-
Directive('@key(fields:"id,name,action")')
|
|
71
|
+
Directive('@key(fields:"id,name,action,sortNumber,sortId,depth,parentId,type")')
|
|
42
72
|
], PermissionEntity);
|
|
43
73
|
export { PermissionEntity };
|
|
44
74
|
//# sourceMappingURL=permission.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../src/models/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EACL,MAAM,EACN,MAAM,EACN,UAAU,EACV,UAAU,EACV,SAAS,GAEV,MAAM,SAAS,CAAC;AAKV,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,cAAgC;IAGpE,IAAI,CAAS;IAIb,MAAM,CAAS;
|
|
1
|
+
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../src/models/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EACL,MAAM,EACN,MAAM,EACN,UAAU,EACV,UAAU,EACV,SAAS,GAEV,MAAM,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