mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
// ***********************************************************************
|
|
// Assembly : OpenAuth.App
|
|
// Author : 李玉宝
|
|
// Created : 07-05-2018
|
|
//
|
|
// Last Modified By : 李玉宝
|
|
// Last Modified On : 07-05-2018
|
|
// ***********************************************************************
|
|
// <copyright file="IAuthStrategy.cs" company="OpenAuth.App">
|
|
// Copyright (c) http://www.openauth.net.cn. All rights reserved.
|
|
// </copyright>
|
|
// <summary>
|
|
// 授权策略接口
|
|
// </summary>
|
|
// ***********************************************************************
|
|
|
|
|
|
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; }
|
|
|
|
List<Org> Orgs { get; }
|
|
|
|
User User
|
|
{
|
|
get;set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据模块id获取可访问的模块字段
|
|
/// </summary>
|
|
/// <param name="moduleCode"></param>
|
|
/// <returns></returns>
|
|
List<KeyDescription> GetProperties(string moduleCode);
|
|
|
|
}
|
|
} |