| | |
| | | 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 SaveUserResumeJobSeekingCommand : IRequest<Guid> |
| | | { |
| | | public SaveUserResumeJobSeekingCommand() |
| | | { |
| | | UserExpectJobs = []; |
| | | UserExpectJobsExpectJobCode = []; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 用户信息期望岗位 |
| | | /// </summary> |
| | | [Required] |
| | | public List<string> UserExpectJobs { get; set; } |
| | | [JsonProperty("userExpectJobs")] |
| | | [AdaptIgnore] |
| | | public List<string> UserExpectJobsExpectJobCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 用户信息期望岗位 |
| | | /// </summary> |
| | | [JsonIgnore, SwaggerIgnore] |
| | | public List<SaveUserResumeJobSeekingCommandExpectJob> UserExpectJobs => UserExpectJobsExpectJobCode |
| | | .Select(it => new SaveUserResumeJobSeekingCommandExpectJob |
| | | { |
| | | ExpectJobCode = it, |
| | | }) |
| | | .ToList(); |
| | | |
| | | /// <summary> |
| | | /// 空闲时间 |
| | |
| | | public EnumPersonalJobSeekingStatus? JobSeekingStatus { get; set; } |
| | | |
| | | } |
| | | |
| | | public class SaveUserResumeJobSeekingCommandExpectJob |
| | | { |
| | | /// <summary> |
| | | /// 期望岗位编号 |
| | | /// </summary> |
| | | public string ExpectJobCode { get; set; } |
| | | } |
| | | } |