38 lines
861 B
C#
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;
|
|
}
|