using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Waste.Application
{
    /// <summary>
    /// 权限管理
    /// </summary>
    public interface IAuthorizationManager
    {
        /// <summary>
        /// 生成token
        /// </summary>
        /// <returns></returns>
        LoginSuccessInfo Encrypt(UserInfo userInfo);
        /// <summary>
        /// 检查token
        /// </summary>
        /// <returns></returns>
        bool CheckSecurity(string ResourceId);
    }
}
