key1_beacon_api/ARW.Model/Dto/Business/Custom/Customers/CustomerDto.cs
2023-11-22 12:17:14 +08:00

155 lines
3.5 KiB
C#

using System;
using System.ComponentModel.DataAnnotations;
namespace ARW.Model.Dto.Business.Custom.Customers
{
/// <summary>
/// 小程序客户输入对象
///
/// @author lwh
/// @date 2023-06-05
/// </summary>
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; }
}
/// <summary>
/// 小程序客户查询对象
///
/// @author lwh
/// @date 2023-06-05
/// </summary>
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; }
}
/// <summary>
/// 客户微信手机号登录 输入对象
///
/// @author lwh
/// @date 2023-06-06
/// </summary>
public class CustomerLoginDto
{
/// <summary>
/// 手机号Code
/// </summary>
public string Code { get; set; }
/// <summary>
/// OpenId
/// </summary>
public string CustomerXcxOpenid { get; set; }
public string CustomerNickname { get; set; }
public string CustomerPassword { get; set; }
}
/// <summary>
/// 客户手机号登录 输入对象
///
/// @author lwh
/// @date 2023-06-06
/// </summary>
public class CustomerPhoneLoginDto
{
/// <summary>
/// OpenId
/// </summary>
public string CustomerXcxOpenid { get; set; }
/// <summary>
/// 手机号
/// </summary>
[Required(ErrorMessage = "手机号不能为空")]
public string PhoneNumber { get; set; }
/// <summary>
/// 验证码
/// </summary>
[Required(ErrorMessage = "验证码不能为空")]
public string VerifyCode { get; set; }
}
public class SendPhoneDto
{
/// <summary>
/// 手机号
/// </summary>
[Required(ErrorMessage = "手机号不能为空")]
public string PhoneNumber { get; set; }
}
}