From 567401d7d0338c582e22ed24399dabc6803e3ec8 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期四, 14 八月 2025 14:45:15 +0800
Subject: [PATCH] feat:开发

---
 FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/EditEnterpriseEmployeeCommand.cs |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/EditEnterpriseEmployeeCommand.cs b/FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/EditEnterpriseEmployeeCommand.cs
index 44300e4..6fd5c8e 100644
--- a/FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/EditEnterpriseEmployeeCommand.cs
+++ b/FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/EditEnterpriseEmployeeCommand.cs
@@ -1,6 +1,7 @@
 锘縰sing MediatR;
 using System;
 using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
@@ -11,27 +12,27 @@
     /// 缂栬緫鐏靛伐淇℃伅
     /// </summary>
     [Resource([EnumResourceController.EnterpriseEmployee])]
-    public class EditEnterpriseEmployeeCommand : IRequest<Guid>
+    public class EditEnterpriseEmployeeCommand : SaveDataCommand
     {
-        /// <summary>
-        /// 鐏靛伐Id
-        /// </summary>
-        public Guid Id { get; set; }
-
         /// <summary>
         /// 濮撳悕
         /// </summary>
+        [Required]
         public string Name { get; set; }
 
         /// <summary>
         /// 韬唤璇佸彿
         /// </summary>
+        [Required]
+        [DataValidation(EnumValidationTypes.ValiIdentity)]
         public string Identity { get; set; }
 
         /// <summary>
         /// 鎵嬫満鍙�
         /// </summary>
         /// <remarks>鑱旂郴鐢佃瘽</remarks>
+        [Required]
+        [DataValidation(EnumValidationTypes.ValidPhoneNumber)]
         public string ContactPhoneNumber { get; set; }
 
         /// <summary>

--
Gitblit v1.9.1