packages/server/src/modules/menu/menu.interface.ts
Properties |
Optional component |
Type : string
|
icon |
Type : string
|
Decorators :
@IsString()
|
Optional id |
Type : number
|
label |
Type : string
|
Decorators :
@IsString()
|
name |
Type : string
|
Decorators :
@IsString()
|
order |
Type : number
|
Decorators :
@IsNumber()
|
Optional parentId |
Type : number
|
route |
Type : string
|
Decorators :
@IsString()
|
type |
Type : PermissionType
|
Decorators :
@IsNumber()
|
import { IsNumber, IsString, Max, Min } from "class-validator";
import { PermissionType } from "@bill/database";
export class MenuBodyRequest {
id?: number;
@IsString()
label: string;
@IsString()
name: string;
@IsString()
icon: string;
@IsNumber()
type: PermissionType;
@IsString()
route: string;
@IsNumber()
@Max(100)
@Min(0)
order: number;
parentId?: number;
component?: string;
}