From a9b167cb33e5c40a41ba09c551702806ab64c230 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期三, 03 九月 2025 11:03:12 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.Core/Models/UserServer/UserResumes/Queries/GetUserResumeDetailQuery.cs | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/FlexJobApi.Core/Models/UserServer/UserResumes/Queries/GetUserResumeDetailQuery.cs b/FlexJobApi.Core/Models/UserServer/UserResumes/Queries/GetUserResumeDetailQuery.cs index a95460a..b0b3b52 100644 --- a/FlexJobApi.Core/Models/UserServer/UserResumes/Queries/GetUserResumeDetailQuery.cs +++ b/FlexJobApi.Core/Models/UserServer/UserResumes/Queries/GetUserResumeDetailQuery.cs @@ -1,4 +1,7 @@ -锘縰sing MediatR; +锘縰sing Mapster; +using MediatR; +using Newtonsoft.Json; +using Swashbuckle.AspNetCore.Annotations; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; @@ -11,7 +14,7 @@ /// <summary> /// 鏌ヨ鐢ㄦ埛绠�鍘�-璇︾粏淇℃伅 /// </summary> - [Resource([EnumResourceController.UserResume])] + [Resource([EnumResourceController.UserServerUserResume])] public class GetUserResumeDetailQuery : IRequest<GetUserResumeDetailQueryResult> { @@ -40,6 +43,14 @@ /// <summary> /// 鐢熸椿鐓� /// </summary> - public List<string> Photos { get; set; } + [JsonIgnore, SwaggerIgnore] + public List<GetUserResumeQueryResultPhoto> Photos { get; set; } + + /// <summary> + /// 鐢熸椿鐓� + /// </summary> + [AdaptIgnore] + [JsonProperty("photos")] + public List<string> PhotoImgs => Photos.Select(it => it.Img).ToList(); } } -- Gitblit v1.9.1