-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
permission to tree permission add permissiontype
- Loading branch information
1 parent
faf7466
commit e8862af
Showing
15 changed files
with
144 additions
and
129 deletions.
There are no files selected for viewing
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
43 changes: 31 additions & 12 deletions
43
src/LinCms.Application.Contracts/Cms/Permissions/PermissionDto.cs
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,30 +1,49 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using IGeekFan.FreeKit.Extras.AuditEntity; | ||
using LinCms.Entities; | ||
|
||
namespace LinCms.Cms.Permissions; | ||
|
||
public class PermissionDto : EntityDto<long> | ||
{ | ||
public PermissionDto(string name, string module, string router) | ||
{ | ||
Name = name; | ||
Module = module; | ||
Router = router; | ||
} | ||
|
||
public string Name { get; set; } | ||
public string Module { get; set; } | ||
|
||
public PermissionType PermissionType { get; set; } | ||
|
||
/// <summary> | ||
/// 父级Id | ||
/// </summary> | ||
public long ParentId { get; set; } | ||
|
||
public string Router { get; set; } | ||
|
||
} | ||
|
||
public class TreePermissionDto | ||
public class PermissionTreeNode : PermissionNode | ||
{ | ||
public string Rowkey { get; set; } | ||
public string Name { get; set; } | ||
public string Router { get; set; } | ||
|
||
public DateTime? CreateTime { get; set; } | ||
public List<TreePermissionDto> Children { get; set; } | ||
public List<PermissionTreeNode> Children { get; set; } | ||
|
||
public PermissionTreeNode() | ||
{ | ||
Children = new List<PermissionTreeNode>(); | ||
} | ||
|
||
} | ||
|
||
public class PermissionNode | ||
{ | ||
public long Id { get; set; } | ||
public PermissionType PermissionType { get; set; } | ||
public long ParentId { get; set; } | ||
public string Name { get; set; } | ||
public List<PermissionNode> Children { get; set; } | ||
|
||
public PermissionNode() | ||
{ | ||
Children = new List<PermissionNode>(); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
src/LinCms.Application.Contracts/LinCms.Application.Contracts.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.