From 8fc6708fe8222b39c56369373721c54b7e1f51f0 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期五, 12 九月 2025 14:01:31 +0800 Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/ApiFlexJob --- FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/EditEnterpriseEmployeeCommand.cs | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/EditEnterpriseEmployeeCommand.cs b/FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/EditEnterpriseEmployeeCommand.cs index 44300e4..af85db3 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; @@ -10,28 +11,28 @@ /// <summary> /// 缂栬緫鐏靛伐淇℃伅 /// </summary> - [Resource([EnumResourceController.EnterpriseEmployee])] - public class EditEnterpriseEmployeeCommand : IRequest<Guid> + [Resource([EnumResourceController.UserServerEnterpriseEmployee])] + 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.ValidIdentity)] public string Identity { get; set; } /// <summary> /// 鎵嬫満鍙� /// </summary> /// <remarks>鑱旂郴鐢佃瘽</remarks> + [Required] + [DataValidation(EnumValidationTypes.ValidPhoneNumber)] public string ContactPhoneNumber { get; set; } /// <summary> -- Gitblit v1.9.1