admin/src/Oms.Application/Dtos/Customers/CustomerContactDtos.cs
zzh 69d234c705 feat: simplify WeChat register and require contact before order
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 13:07:29 +08:00

38 lines
861 B
C#

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