-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'add-get-current-account-info'
- Loading branch information
Showing
7 changed files
with
66 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,50 @@ | ||
import { ApiProperty } from 'uni-nest'; | ||
import { PermissionType } from '@prisma/client'; | ||
|
||
export class CreatePermissionDto { | ||
@ApiProperty({ | ||
description: '父节点' | ||
}) | ||
parentId: number; | ||
@ApiProperty({ | ||
description: '权限名', | ||
required: true | ||
}) | ||
name: string; | ||
|
||
@ApiProperty({ | ||
description: '描述', | ||
description: '排序' | ||
}) | ||
order: number; | ||
|
||
@ApiProperty({ | ||
description: '菜单图标' | ||
}) | ||
icon: string; | ||
|
||
@ApiProperty({ | ||
description: '组件路径' | ||
}) | ||
component: string; | ||
|
||
@ApiProperty({ | ||
description: '菜单图标' | ||
}) | ||
path: string; | ||
|
||
@ApiProperty({ | ||
description: '权限类型(MENU BUTTON)', | ||
enum: PermissionType | ||
}) | ||
type: number; | ||
|
||
@ApiProperty({ | ||
description: '权限状态(1:启用 0:禁用)' | ||
}) | ||
status: number; | ||
|
||
@ApiProperty({ | ||
description: '描述' | ||
}) | ||
des: string; | ||
description: string; | ||
} |