- MessageInfoResponseDto에 service_name, service_code, created_by_name, latest_send_status 추가 - MessagePreviewRequestDto/ResponseDto에 JsonPropertyName snake_case 적용 - MessagePreviewResponseDto에 link_type 필드 추가 - Repository에 GetByMessageCodeWithDetailsAsync (Navigation Include), GetSendStatsAsync 추가 - MessageService.GetInfoAsync에서 서비스/작성자/발송상태 매핑 - MessageService.PreviewAsync에서 link_type 반환 Closes #226
22 lines
530 B
C#
22 lines
530 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Message;
|
|
|
|
public class MessagePreviewResponseDto
|
|
{
|
|
[JsonPropertyName("title")]
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("body")]
|
|
public string Body { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("image_url")]
|
|
public string? ImageUrl { get; set; }
|
|
|
|
[JsonPropertyName("link_url")]
|
|
public string? LinkUrl { get; set; }
|
|
|
|
[JsonPropertyName("link_type")]
|
|
public string? LinkType { get; set; }
|
|
}
|