| | |
| | | using MediatR; |
| | | using Mapster; |
| | | using MediatR; |
| | | using Newtonsoft.Json; |
| | | using Swashbuckle.AspNetCore.Annotations; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel.DataAnnotations; |
| | |
| | | /// <summary> |
| | | /// 保存用户简历-详细信息 |
| | | /// </summary> |
| | | [Resource([EnumResourceController.UserResume])] |
| | | [Resource([EnumResourceController.UserServerUserResume])] |
| | | public class SaveUserResumeDetailCommand : IRequest<Guid> |
| | | { |
| | | public SaveUserResumeDetailCommand() |
| | | { |
| | | Photos = []; |
| | | PhotosImg = []; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <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; } |
| | | } |
| | | } |