From 86ae365a817a9f0b812b80807f7a39c2902e48a6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=86=9B?= <2357729423@qq.com>
Date: Tue, 5 Mar 2024 11:39:44 +0800
Subject: [PATCH] =?UTF-8?q?fix=E3=80=90S1-=E6=96=B0=E5=A2=9E=E8=AE=A2?=
=?UTF-8?q?=E5=8D=95=E8=BD=A8=E8=BF=B9=E6=8E=A5=E5=8F=A3=EF=BC=8C=E6=8C=89?=
=?UTF-8?q?=E7=85=A7=E6=96=87=E6=A1=A3=EF=BC=8C=E8=BD=A8=E8=BF=B9=E5=8F=91?=
=?UTF-8?q?=E7=94=9F=E6=97=B6=E9=97=B4=E5=92=8C=E6=97=B6=E5=8C=BA=E9=83=BD?=
=?UTF-8?q?=E6=98=AF=E5=BF=85=E5=A1=AB=EF=BC=8C=E4=BD=86=E6=98=AF=E5=AE=9E?=
=?UTF-8?q?=E9=99=85=E4=B8=8D=E5=A1=AB=E5=86=99=E4=B9=9F=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E6=88=90=E5=8A=9F=E4=BA=86=E3=80=91https://www.tapd.cn/6086384?=
=?UTF-8?q?9/bugtrace/bugs/view=3Fbug=5Fid=3D1160863849001029729?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Dtos/ProvideServices/UpsertTrackInput.cs | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/SJZY.Track.Application.Contract/Dtos/ProvideServices/UpsertTrackInput.cs b/src/SJZY.Track.Application.Contract/Dtos/ProvideServices/UpsertTrackInput.cs
index ef0e67a4..c2c7b4c6 100644
--- a/src/SJZY.Track.Application.Contract/Dtos/ProvideServices/UpsertTrackInput.cs
+++ b/src/SJZY.Track.Application.Contract/Dtos/ProvideServices/UpsertTrackInput.cs
@@ -1,24 +1,32 @@
-namespace SJZY.Track.Application.Contract.Dtos.ProvideServices;
+using System.ComponentModel.DataAnnotations;
+
+namespace SJZY.Track.Application.Contract.Dtos.ProvideServices;
public class UpsertTrackInput : OrderNoInfo
{
///
/// 轨迹内容代码
///
+ [Required]
+ [MaxLength(50)]
public string TrackCode { get; set; } = null!;
///
/// 轨迹发生地
///
+ [Required]
+ [MaxLength(200)]
public string TrackPlace { get; set; } = null!;
///
/// 轨迹发生时间
///
+ [Required]
public DateTime TrackTime { get; set; }
///
/// 轨迹发生时区
///
+ [Required]
public float TraceTimeZone { get; set; }
}
\ No newline at end of file