key1_beacon_api/ARW.Model/Dto/Business/LogisticsManage/Deliverys/DeliveryDto.cs

78 lines
1.8 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using ARW.Model.Models.Business.LogisticsManage.DeliveryRules;
using ARW.Model.Models.Business.LogisticsManage.Deliverys;
namespace ARW.Model.Dto.Business.LogisticsManage.Deliverys
{
/// <summary>
/// 配送模板输入对象
///
/// @author 黎文豪
/// @date 2023-06-16
/// </summary>
public class DeliveryDto
{
public int DeliveryId { get; set; }
public long DeliveryGuid { get; set; }
[Required(ErrorMessage = "店铺guid不能为空")]
public long ShopGuid { get; set; }
[Required(ErrorMessage = "模板名称不能为空")]
public string DeliveryName { get; set; }
[Required(ErrorMessage = "计费方式不能为空")]
public int DeliveryBillingMethod { get; set; }
[Required(ErrorMessage = "配送区域及运费不能为空")]
public List<DeliveryRule> DeliveryRuleDataList { get; set; }
[Required(ErrorMessage = "排序不能为空")]
public int DeliverySort { get; set; }
}
/// <summary>
/// 配送模板查询对象
///
/// @author 黎文豪
/// @date 2023-06-16
/// </summary>
public class DeliveryQueryDto : PagerInfo
{
public long? ShopGuid { get; set; }
public string ShopName { get; set; }
public string DeliveryName { get; set; }
public int? DeliveryBillingMethod { get; set; }
public string ids { get; set; }
}
/// <summary>
/// 配送模板的配送区域和运费查询对象
///
/// @author 黎文豪
/// @date 2023-06-16
/// </summary>
public class DeliveryRuleEditDto
{
public long DeliveryGuid { get; set; }
}
}