mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-01-25 16:48:13 +00:00
20 lines
442 B
TypeScript
20 lines
442 B
TypeScript
import { BaseEntity } from '@cool-midway/core';
|
|
import { Column, Entity } from 'typeorm';
|
|
|
|
/**
|
|
* 部门
|
|
*/
|
|
@Entity('base_sys_department')
|
|
export class BaseSysDepartmentEntity extends BaseEntity {
|
|
@Column({ comment: '部门名称' })
|
|
name: string;
|
|
|
|
@Column({ comment: '上级部门ID', nullable: true })
|
|
parentId: number;
|
|
|
|
@Column({ comment: '排序', default: 0 })
|
|
orderNum: number;
|
|
// 父菜单名称
|
|
parentName: string;
|
|
}
|