70 lines
1.9 KiB
C#
70 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using ARW.Model.Models.Business.Custom.CustomerAddresses;
|
|
|
|
namespace ARW.Model.Dto.Api.Custom.CustomerAddresses
|
|
{
|
|
|
|
/// <summary>
|
|
/// 客户收货地址查询对象Api
|
|
///
|
|
/// @author admin
|
|
/// @date 2023-06-09
|
|
/// </summary>
|
|
public class CustomerAddressQueryDtoApi : PagerInfo
|
|
{
|
|
public long CustomerAddressCustomerGuid { get; set; }
|
|
public string CustomerAddressName { get; set; }
|
|
public string CustomerAddressPhone { get; set; }
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 客户收货地址详情输入对象Api
|
|
///
|
|
/// @author admin
|
|
/// @date 2023-06-09
|
|
/// </summary>
|
|
public class CustomerAddressDtoApi
|
|
{
|
|
[Required(ErrorMessage = "CustomerAddressId不能为空")]
|
|
public long CustomerAddressId { get; set; }
|
|
}
|
|
|
|
|
|
|
|
public class CustomerAddressAddDtoApi
|
|
{
|
|
|
|
public int CustomerAddressId { get; set; }
|
|
|
|
public long CustomerAddressGuid { get; set; }
|
|
|
|
public long CustomerAddressCustomerGuid { get; set; }
|
|
|
|
[Required(ErrorMessage = "省编码不能为空")]
|
|
public string ProvinceCode { get; set; }
|
|
|
|
[Required(ErrorMessage = "市编码不能为空")]
|
|
public string CityCode { get; set; }
|
|
|
|
[Required(ErrorMessage = "区编码不能为空")]
|
|
public string DistrictCode { get; set; }
|
|
|
|
[Required(ErrorMessage = "收货人名称不能为空")]
|
|
public string CustomerAddressName { get; set; }
|
|
|
|
[Required(ErrorMessage = "收货电话不能为空")]
|
|
public string CustomerAddressPhone { get; set; }
|
|
|
|
[Required(ErrorMessage = "详细地址不能为空")]
|
|
public string CustomerAddressDetailed { get; set; }
|
|
|
|
[Required(ErrorMessage = "是否默认地址不能为空")]
|
|
public int IsDefault { get; set; }
|
|
|
|
}
|
|
|
|
}
|