ผูก menu กับ redis
This commit is contained in:
parent
1e3699b049
commit
73ae3210dc
8 changed files with 164 additions and 119 deletions
|
|
@ -1,4 +1,12 @@
|
|||
import { Entity, Column, CreateDateColumn, UpdateDateColumn, PrimaryColumn } from "typeorm";
|
||||
import {
|
||||
Entity,
|
||||
Column,
|
||||
CreateDateColumn,
|
||||
UpdateDateColumn,
|
||||
PrimaryColumn,
|
||||
OneToMany,
|
||||
} from "typeorm";
|
||||
import { AuthRoleAttr } from "./AuthRoleAttr";
|
||||
|
||||
@Entity("authSys")
|
||||
export class AuthSys {
|
||||
|
|
@ -80,8 +88,8 @@ export class AuthSys {
|
|||
})
|
||||
sysDescription: string;
|
||||
|
||||
// @OneToMany(() => AuthRoleAttr, (authRoleAttr) => authRoleAttr.authRoleAttrForSys)
|
||||
// authSys: AuthRoleAttr[];
|
||||
@OneToMany(() => AuthRoleAttr, (authRoleAttr) => authRoleAttr.authRoleAttrForSys)
|
||||
authRoleAttrs: AuthRoleAttr[];
|
||||
}
|
||||
|
||||
export class CreateAuthSys {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue