feat(Core): update DTOs and shared models
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user