ผูก menu กับ redis

This commit is contained in:
Kittapath 2024-07-25 09:54:44 +07:00
parent 1e3699b049
commit 73ae3210dc
8 changed files with 164 additions and 119 deletions

View file

@ -75,9 +75,9 @@ export class AuthRoleAttr extends EntityBase {
})
parentNode?: string;
// @ManyToOne(() => AuthSys, (authSys) => authSys)
// @JoinColumn({ name: "authSysId" })
// authRoleAttrForSys: AuthSys;
@ManyToOne(() => AuthSys, (authSys) => authSys.authRoleAttrs)
@JoinColumn({ name: "authSysId" })
authRoleAttrForSys: AuthSys;
@ManyToOne(() => AuthRole, (authRole) => authRole.authRoles)
@JoinColumn({ name: "authRoleId" })