using System;
using System.ComponentModel.DataAnnotations;
namespace ARW.Model.Dto.Business.Custom.Customers
{
///
/// 小程序客户输入对象
///
/// @author lwh
/// @date 2023-06-05
///
public class CustomerDto
{
public int CustomerId { get; set; }
public long CustomerGuid { get; set; }
public int? CustomerProvinceId { get; set; }
public int? CustomerCityId { get; set; }
public int? CustomerAreaId { get; set; }
public long? CustomerDefaultAddressGuid { get; set; }
public long? CustomerMemberLevelGuid { get; set; }
public string CustomerXcxOpenid { get; set; }
public string CustomerPassword { get; set; }
public string CustomerType { get; set; }
public string CustomerEmail { get; set; }
[Required(ErrorMessage = "昵称不能为空")]
public string CustomerNickname { get; set; }
[Required(ErrorMessage = "手机号不能为空")]
public string CustomerMobilePhoneNumber { get; set; }
[Required(ErrorMessage = "头像不能为空")]
public string CustomerAvatar { get; set; }
[Required(ErrorMessage = "性别不能为空")]
public int CustomerGender { get; set; }
public decimal CustomerAvailableBalance { get; set; }
public decimal CustomerAvailablePoints { get; set; }
public decimal CustomerTotalPaymentAmount { get; set; }
public decimal CustomerActualConsumptionAmount { get; set; }
public DateTime? CustomerLastLoginTime { get; set; }
}
///
/// 小程序客户查询对象
///
/// @author lwh
/// @date 2023-06-05
///
public class CustomerQueryDto : PagerInfo
{
public string CustomerXcxOpenid { get; set; }
public string CustomerNickname { get; set; }
public string CustomerMobilePhoneNumber { get; set; }
public DateTime? BeginTime { get; set; }
public DateTime? EndTime { get; set; }
public string ids { get; set; }
}
///
/// 客户微信手机号登录 输入对象
///
/// @author lwh
/// @date 2023-06-06
///
public class CustomerLoginDto
{
///
/// 手机号Code
///
public string Code { get; set; }
///
/// OpenId
///
public string CustomerXcxOpenid { get; set; }
public string CustomerNickname { get; set; }
public string CustomerPassword { get; set; }
}
///
/// 客户手机号登录 输入对象
///
/// @author lwh
/// @date 2023-06-06
///
public class CustomerPhoneLoginDto
{
///
/// OpenId
///
public string CustomerXcxOpenid { get; set; }
///
/// 手机号
///
[Required(ErrorMessage = "手机号不能为空")]
public string PhoneNumber { get; set; }
///
/// 验证码
///
[Required(ErrorMessage = "验证码不能为空")]
public string VerifyCode { get; set; }
}
public class SendPhoneDto
{
///
/// 手机号
///
[Required(ErrorMessage = "手机号不能为空")]
public string PhoneNumber { get; set; }
}
}