From b495fa9f03462cf6007e1e035a7ed8abe5382c1c Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期四, 14 八月 2025 13:59:36 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/EditEnterpriseEmployeeCommand.cs | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/EditEnterpriseEmployeeCommand.cs b/FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/EditEnterpriseEmployeeCommand.cs index d3a4f04..5c5ad77 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; @@ -16,17 +17,22 @@ /// <summary> /// 濮撳悕 /// </summary> + [Required] public string Name { get; set; } /// <summary> /// 韬唤璇佸彿 /// </summary> + [Required] + [DataValidation(EnumValidationTypes.Identity)] public string Identity { get; set; } /// <summary> /// 鎵嬫満鍙� /// </summary> /// <remarks>鑱旂郴鐢佃瘽</remarks> + [Required] + [DataValidation(EnumValidationTypes.PhoneNumber)] public string ContactPhoneNumber { get; set; } /// <summary> -- Gitblit v1.9.1