fix【S1-创建轨迹订单时,目的国家、目的城市、起运国家、起运城市这4个字段都是必填的,但是不填写时,都可以创建成功】https://www.tapd.cn/60863849/bugtrace/bugs/view?bug_id=1160863849001029724

This commit is contained in:
李鹏军 2024-03-05 11:43:15 +08:00
parent 86ae365a81
commit 8f2d9cf708

View File

@ -1,4 +1,6 @@
namespace SJZY.Track.Application.Contract.Dtos.ProvideServices; using System.ComponentModel.DataAnnotations;
namespace SJZY.Track.Application.Contract.Dtos.ProvideServices;
public class UpdateOrderInput : OrderNoInfo public class UpdateOrderInput : OrderNoInfo
{ {
@ -15,22 +17,30 @@ public class UpdateOrderInput : OrderNoInfo
/// <summary> /// <summary>
/// 目的国家,必填 /// 目的国家,必填
/// </summary> /// </summary>
public string ArrivalCountry { get; set; } [Required]
[MaxLength(200)]
public string ArrivalCountry { get; set; } = null!;
/// <summary> /// <summary>
/// 起运国家,必填 /// 起运国家,必填
/// </summary> /// </summary>
public string LeaveCountry { get; set; } [Required]
[MaxLength(200)]
public string LeaveCountry { get; set; } = null!;
/// <summary> /// <summary>
/// 目的城市,必填 /// 目的城市,必填
/// </summary> /// </summary>
public string ArrivalCity { get; set; } [Required]
[MaxLength(200)]
public string ArrivalCity { get; set; } = null!;
/// <summary> /// <summary>
/// 起运城市,必填 /// 起运城市,必填
/// </summary> /// </summary>
public string LeaveCity { get; set; } [Required]
[MaxLength(200)]
public string LeaveCity { get; set; } = null!;
/// <summary> /// <summary>
/// 订单模板(传全量) /// 订单模板(传全量)