ow
This commit is contained in:
commit
f05d2d215f
678 files changed
+73865
No files matched your search
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.AspNetCore.Authorization
|
||||
{
|
||||
public class PermissionOperateAttribute : Attribute
|
||||
{
|
||||
public PermissionOperateAttribute(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public PermissionOperateAttribute(string name, string operate)
|
||||
{
|
||||
Name = name;
|
||||
Operate = operate;
|
||||
}
|
||||
|
||||
public PermissionOperateAttribute(string name, Operate operate)
|
||||
{
|
||||
Name = name;
|
||||
Operate = operate.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取权限名称
|
||||
/// </summary>
|
||||
public string Name { get; private set; } = null!;
|
||||
|
||||
public string Operate { get; private set; } = null!;
|
||||
}
|
||||
|
||||
public enum Operate
|
||||
{
|
||||
None,
|
||||
Find,
|
||||
Print,
|
||||
Insert,
|
||||
Update,
|
||||
Delete,
|
||||
Submit,
|
||||
Approval
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user