sunpengfei
2025-08-15 4cb79220f9687b2c98decc2050e464d00553add0
FlexJobApi.Core/Models/UserServer/UserResumes/Commands/SaveUserResumeDetailCommand.cs
@@ -1,4 +1,7 @@
using MediatR;
using Mapster;
using MediatR;
using Newtonsoft.Json;
using Swashbuckle.AspNetCore.Annotations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
@@ -16,7 +19,7 @@
    {
        public SaveUserResumeDetailCommand()
        {
            Photos = [];
            PhotosImg = [];
        }
        /// <summary>
@@ -32,7 +35,28 @@
        /// <summary>
        /// 生活照
        /// </summary>
        public List<string> Photos { get; set; }
        [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; }
    }
}