From 91e5aa12737d67a64773f8a7ea7fbc0926df76d8 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期四, 14 八月 2025 17:20:25 +0800
Subject: [PATCH] fix:B端小程序——首页——列表显示了企业联系人的信息

---
 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