using MediatR; using Microsoft.AspNetCore.Http; using MiniExcelLibs.Attributes; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FlexJobApi.Core { /// /// 导入灵工信息 /// [Resource([EnumResourceController.EnterpriseEmployee])] public class ImportEnterpriseEmployeesCommand : IRequest { /// /// Excel地址 /// public string ExcelUrl { get; set; } } /// /// 导入灵工信息-模板 /// public class ImportEnterpriseEmployeesCommandModel { /// /// 姓名 /// public string Name { get; set; } /// /// 手机号 /// public string ContactPhoneNumber { get; set; } /// /// 身份证号 /// public string Identity { get; set; } /// /// 生日 /// [JsonIgnore] public DateTime? Birthday { get; set; } /// /// 年龄 /// [JsonIgnore] public int? Age { get; set; } /// /// 性别 /// [JsonIgnore] public EnumUserGender? Gender { get; set; } } /// /// 导入灵工信息-结果 /// public class ImportEnterpriseEmployeesCommandResult { public ImportEnterpriseEmployeesCommandResult() { Errors = []; } /// /// 总数 /// public int TotalCount { get; set; } /// /// 成功数量 /// public int SuccessCount { get; set; } /// /// 失败数量 /// public int FailCount { get; set; } /// /// 错误信息 /// public List Errors { get; set; } } /// /// 导入灵工信息-结果-错误信息 /// public class ImportEnterpriseEmployeesCommandResultError : ImportEnterpriseEmployeesCommandModel { /// /// 错误信息 /// public string ErrorMessage { get; set; } } }