qinchulong
2025-05-27 c020f31a67fc5aa5644511bddff075f7ecc85234
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Core/Attributes/AnalysisRuleAttribute.cs
对比新文件
@@ -0,0 +1,33 @@
锘縰sing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.Enums;
namespace WIDESEA_Core.Attributes
{
    [AttributeUsage(AttributeTargets.Property)]
    public class AnalysisItemRuleAttribute : Attribute
    {
        public AnalysisFormatType AnalysisFormaType { get; set; }
        public int Length { get; set; }
        public AnalysisItemRuleAttribute(AnalysisFormatType analysisFormaType)
        {
            AnalysisFormaType = analysisFormaType;
        }
    }
    [AttributeUsage(AttributeTargets.Class)]
    public class AnalysisRuleAttribute : Attribute
    {
        public AnalysisRule AnalysisRule { get; set; } = AnalysisRule.Split;
        public AnalysisRuleAttribute()
        {
        }
    }
}