sunpengfei
2025-08-13 75ffff5b036f823c209702af154702f59b2efb7a
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
using Mapster;
using MediatR;
using Newtonsoft.Json;
using Swashbuckle.AspNetCore.Annotations;
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.UserResume])]
    public class SaveUserResumeDetailCommand : IRequest<Guid>
    {
        public SaveUserResumeDetailCommand()
        {
            PhotosImg = [];
        }
 
        /// <summary>
        /// 身高
        /// </summary>
        public int? Height { get; set; }
 
        /// <summary>
        /// 体重
        /// </summary>
        public int? Weight { get; set; }
 
        /// <summary>
        /// 生活照
        /// </summary>
        [JsonProperty("photos")]
        [AdaptIgnore]
        public List<string> PhotosImg { get; set; }
 
        /// <summary>
        /// 生活照
        /// </summary>
        [JsonIgnore, SwaggerIgnore]
        public List<SaveUserResumeDetailCommandPhone> Photos => PhotosImg
            .Select(it => new SaveUserResumeDetailCommandPhone
            {
                Img = it,
            })
            .ToList();
 
    }
 
    public class SaveUserResumeDetailCommandPhone
    {
        /// <summary>
        /// 照片
        /// </summary>
        public string Img { get; set; }
    }
}