2020-10-22 14:59:36 +08:00
|
|
|
|
// ***********************************************************************
|
|
|
|
|
// Assembly : OpenAuth.App
|
|
|
|
|
// Author : 李玉宝
|
|
|
|
|
// Created : 07-05-2018
|
|
|
|
|
//
|
|
|
|
|
// Last Modified By : 李玉宝
|
|
|
|
|
// Last Modified On : 07-05-2018
|
|
|
|
|
// ***********************************************************************
|
|
|
|
|
// <copyright file="IAuthStrategy.cs" company="OpenAuth.App">
|
2021-07-22 19:33:55 +08:00
|
|
|
|
// Copyright (c) http://www.openauth.net.cn. All rights reserved.
|
2020-10-22 14:59:36 +08:00
|
|
|
|
// </copyright>
|
|
|
|
|
// <summary>
|
|
|
|
|
// 授权策略接口
|
|
|
|
|
// </summary>
|
|
|
|
|
// ***********************************************************************
|
|
|
|
|
|
|
|
|
|
|
2021-08-25 01:42:37 +08:00
|
|
|
|
using System;
|
2020-10-22 14:59:36 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Infrastructure;
|
|
|
|
|
using OpenAuth.App.Response;
|
|
|
|
|
using OpenAuth.Repository.Domain;
|
|
|
|
|
|
|
|
|
|
namespace OpenAuth.App
|
|
|
|
|
{
|
|
|
|
|
public interface IAuthStrategy
|
|
|
|
|
{
|
|
|
|
|
List<ModuleView> Modules { get; }
|
|
|
|
|
|
|
|
|
|
List<ModuleElement> ModuleElements { get; }
|
|
|
|
|
|
|
|
|
|
List<Role> Roles { get; }
|
|
|
|
|
|
|
|
|
|
List<Resource> Resources { get; }
|
|
|
|
|
|
2023-12-23 15:42:50 +08:00
|
|
|
|
List<OrgView> Orgs { get; }
|
2020-10-22 14:59:36 +08:00
|
|
|
|
|
|
|
|
|
User User
|
|
|
|
|
{
|
|
|
|
|
get;set;
|
|
|
|
|
}
|
2021-10-18 00:42:29 +08:00
|
|
|
|
|
2021-08-25 01:42:37 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取角色可以访问的字段信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="moduleCode"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
List<BuilderTableColumn> GetTableColumns(string moduleCode);
|
2022-02-21 00:39:55 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取角色可访问的字段信息,因为MVC版本没有代码生成器,所以只能通过直接读取数据库表结构的方式
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="moduleCode"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[Obsolete("获取角色可访问的字段信息,因为MVC版本没有代码生成器,所以只能通过直接读取数据库表结构的方式")]
|
|
|
|
|
List<BuilderTableColumn> GetTableColumnsFromDb(string moduleCode);
|
2021-08-25 01:42:37 +08:00
|
|
|
|
|
2020-10-22 14:59:36 +08:00
|
|
|
|
}
|
|
|
|
|
}
|