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.

16 lines
448 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cappuccino.Web.Core
{
//这个Attribute可以应用到方法上而且可以添加多个
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class CheckPermission : Attribute
{
public string Permission { get; set; }
public CheckPermission(string permission)
{