sunpengfei
2025-08-15 e80bb467eef7ed92c5fc83360785d6584762052c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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
{
    /// <summary>
    /// 导入灵工信息
    /// </summary>
    [Resource([EnumResourceController.EnterpriseEmployee])]
    public class ImportEnterpriseEmployeesCommand : IRequest<ImportEnterpriseEmployeesCommandResult>
    {
        /// <summary>
        /// Excel地址
        /// </summary>
        public string ExcelUrl { get; set; }
    }
 
    /// <summary>
    /// 导入灵工信息-模板
    /// </summary>
    public class ImportEnterpriseEmployeesCommandModel
    {
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
 
        /// <summary>
        /// 手机号
        /// </summary>
        public string ContactPhoneNumber { get; set; }
 
        /// <summary>
        /// 身份证号
        /// </summary>
        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; }
    }
}