using System.ComponentModel.DataAnnotations; namespace Oms.Application.Dtos.Customers; /// /// 客户联系方式完整度。 /// public class CustomerProfileCompletenessOutput { public bool PhoneFilled { get; set; } public bool EmailFilled { get; set; } /// 缺手机或邮箱时为 true。 public bool NeedContact { get; set; } public string CustomerCode { get; set; } = string.Empty; public string? Phone { get; set; } public string? Email { get; set; } } /// /// 补全手机号与邮箱(下单前)。 /// public class CompleteCustomerContactInput { [Required] [StringLength(16)] public string Phone { get; set; } = string.Empty; [Required] [EmailAddress] [StringLength(64)] public string Email { get; set; } = string.Empty; }