ผูก 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

@ -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 {