namespace NetAdmin.Domain.Attributes.DataValidation; /// /// 邀请码验证器 /// [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter)] public sealed class InviteCodeAttribute : RegexAttribute { /// /// Initializes a new instance of the class. /// public InviteCodeAttribute() // : base(Chars.RGX_INVITE_CODE) { ErrorMessageResourceName = nameof(Ln.邀请码不正确); ErrorMessageResourceType = typeof(Ln); } }