You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.2 KiB
64 lines
1.2 KiB
5 days ago
|
namespace Admin.NET.Core;
|
||
|
|
||
|
/// <summary>
|
||
|
/// APIJSON配置选项
|
||
|
/// </summary>
|
||
|
public sealed class APIJSONOptions : IConfigurableOptions
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 角色集合
|
||
|
/// </summary>
|
||
|
public List<APIJSON_Role> Roles { get; set; }
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// APIJSON角色权限
|
||
|
/// </summary>
|
||
|
public class APIJSON_Role
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 角色名称
|
||
|
/// </summary>
|
||
|
public string RoleName { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 查询
|
||
|
/// </summary>
|
||
|
public APIJSON_RoleItem Select { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 增加
|
||
|
/// </summary>
|
||
|
public APIJSON_RoleItem Insert { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 更新
|
||
|
/// </summary>
|
||
|
public APIJSON_RoleItem Update { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 删除
|
||
|
/// </summary>
|
||
|
public APIJSON_RoleItem Delete { get; set; }
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// APIJSON角色权限内容
|
||
|
/// </summary>
|
||
|
public class APIJSON_RoleItem
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 表集合
|
||
|
/// </summary>
|
||
|
public string[] Table { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 列集合
|
||
|
/// </summary>
|
||
|
public string[] Column { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 过滤器
|
||
|
/// </summary>
|
||
|
public string[] Filter { get; set; }
|
||
|
}
|