emoticon_api/ARW.Model/Dto/Business/ShopManager/ShopAddresss/ShopAddressDto.cs
2023-06-24 23:21:02 +08:00

74 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using ARW.Model.Models.Business.ShopManager.ShopAddresss;
using Infrastructure;
namespace ARW.Model.Dto.Business.ShopManager.ShopAddresss
{
/// <summary>
/// 店铺地址输入对象
///
/// @author lwh
/// @date 2023-06-15
/// </summary>
public class ShopAddressDto
{
public int ShopAddressId { get; set; }
public long ShopAddressGuid { get; set; }
public long ShopGuid { get; set; }
[Required(ErrorMessage = "地址类型不能为空")]
public int ShopAddressType { get; set; }
[Required(ErrorMessage = "省id不能为空")]
public int ProvinceId { get; set; }
[Required(ErrorMessage = "市id不能为空")]
public int CityId { get; set; }
[Required(ErrorMessage = "区id不能为空")]
public int DistrictId { get; set; }
[Required(ErrorMessage = "联系人姓名不能为空")]
public string ShopAddressContactName { get; set; }
[Required(ErrorMessage = "联系电话不能为空")]
public string ShopAddressContactNumber { get; set; }
[Required(ErrorMessage = "详细地址不能为空")]
public string ShopAddressDetailedAddress { get; set; }
[Required(ErrorMessage = "排序不能为空")]
public int ShopAddressSort { get; set; }
}
/// <summary>
/// 店铺地址查询对象
///
/// @author lwh
/// @date 2023-06-15
/// </summary>
public class ShopAddressQueryDto : PagerInfo
{
public long ShopGuid { get; set; }
public int? ShopAddressType { get; set; }
public string ids { get; set; }
}
}