using System;

namespace XYY.Common.Standard.Attributes
{
    public enum PermissionType : int
    {
        站点 = 0,
        供应商 = 1,
        仓库 = 2,
        用户 = 3,
        企业 = 4
    }

    [AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
    public class DataPermissionAttribute : Attribute
    {
        public DataPermissionAttribute(PermissionType permissionType)
        {
            PermissionType = permissionType;
        }
        public PermissionType PermissionType { get; set; }
    }
}
