From 327d52a5d0e51ac5e6e1aced3599a18dcfaf25b6 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期三, 20 八月 2025 09:51:37 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/ImportEnterpriseEmployeesCommand.cs | 72 ++++++++++++++++++++++++++++++++--- 1 files changed, 65 insertions(+), 7 deletions(-) diff --git a/FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/ImportEnterpriseEmployeesCommand.cs b/FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/ImportEnterpriseEmployeesCommand.cs index a9eaa68..49537cd 100644 --- a/FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/ImportEnterpriseEmployeesCommand.cs +++ b/FlexJobApi.Core/Models/UserServer/EnterpriseEmployees/Commands/ImportEnterpriseEmployeesCommand.cs @@ -14,8 +14,8 @@ /// <summary> /// 瀵煎叆鐏靛伐淇℃伅 /// </summary> - [Resource([EnumResourceController.EnterpriseEmployee])] - public class ImportEnterpriseEmployeesCommand : IRequest<int> + [Resource([EnumResourceController.UserServerEnterpriseEmployee])] + public class ImportEnterpriseEmployeesCommand : IRequest<ImportEnterpriseEmployeesCommandResult> { /// <summary> /// Excel鍦板潃 @@ -23,26 +23,84 @@ public string ExcelUrl { get; set; } } + /// <summary> + /// 瀵煎叆鐏靛伐淇℃伅-妯℃澘 + /// </summary> public class ImportEnterpriseEmployeesCommandModel { /// <summary> /// 濮撳悕 /// </summary> - [Required] public string Name { get; set; } /// <summary> /// 鎵嬫満鍙� /// </summary> - /// <remarks>鑱旂郴鐢佃瘽</remarks> - [MaxLength(11)] - [Required] public string ContactPhoneNumber { get; set; } /// <summary> /// 韬唤璇佸彿 /// </summary> - [Required] public string Identity { get; set; } + + /// <summary> + /// 鐢熸棩 + /// </summary> + [JsonIgnore] + public DateTime? Birthday { get; set; } + + /// <summary> + /// 骞撮緞 + /// </summary> + [JsonIgnore] + public int? Age { get; set; } + + /// <summary> + /// 鎬у埆 + /// </summary> + [JsonIgnore] + public EnumUserGender? Gender { get; set; } + } + + /// <summary> + /// 瀵煎叆鐏靛伐淇℃伅-缁撴灉 + /// </summary> + public class ImportEnterpriseEmployeesCommandResult + { + public ImportEnterpriseEmployeesCommandResult() + { + Errors = []; + } + + /// <summary> + /// 鎬绘暟 + /// </summary> + public int TotalCount { get; set; } + + /// <summary> + /// 鎴愬姛鏁伴噺 + /// </summary> + public int SuccessCount { get; set; } + + /// <summary> + /// 澶辫触鏁伴噺 + /// </summary> + public int FailCount { get; set; } + + /// <summary> + /// 閿欒淇℃伅 + /// </summary> + public List<ImportEnterpriseEmployeesCommandResultError> Errors { get; set; } + } + + /// <summary> + /// 瀵煎叆鐏靛伐淇℃伅-缁撴灉-閿欒淇℃伅 + /// </summary> + public class ImportEnterpriseEmployeesCommandResultError : ImportEnterpriseEmployeesCommandModel + { + /// <summary> + /// 閿欒淇℃伅 + /// </summary> + public string ErrorMessage { get; set; } } } -- Gitblit v1.9.1