| | |
| | | /// <summary> |
| | | /// 导入灵工信息 |
| | | /// </summary> |
| | | [Resource([EnumResourceController.EnterpriseEmployee])] |
| | | public class ImportEnterpriseEmployeesCommand : IRequest<int> |
| | | [Resource([EnumResourceController.UserServerEnterpriseEmployee])] |
| | | public class ImportEnterpriseEmployeesCommand : IRequest<ImportEnterpriseEmployeesCommandResult> |
| | | { |
| | | /// <summary> |
| | | /// Excel地址 |
| | |
| | | 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; } |
| | | } |
| | | } |