21 lines
667 B
C#
21 lines
667 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace FinlyticCore.Dtos.News;
|
|
|
|
/// <summary>
|
|
/// Request payload sent by downstream services (e.g., FinlyticSentiment) to update the processing status of a news article.
|
|
/// </summary>
|
|
public record UpdateNewsStatusRequest(
|
|
[property: JsonPropertyName("id")] Guid Id,
|
|
[property: JsonPropertyName("status")] string Status
|
|
);
|
|
|
|
/// <summary>
|
|
/// Response payload returned to verify the success of the status update operation.
|
|
/// </summary>
|
|
public record UpdateNewsStatusResponse(
|
|
[property: JsonPropertyName("success")] bool Success,
|
|
[property: JsonPropertyName("message")] string? Message = null
|
|
);
|
|
|