26 lines
608 B
C#
26 lines
608 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Service;
|
|
|
|
public class WebhookConfigRequestDto
|
|
{
|
|
[Required]
|
|
[JsonPropertyName("service_code")]
|
|
public string ServiceCode { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("webhook_url")]
|
|
[Url]
|
|
public string? WebhookUrl { get; set; }
|
|
|
|
[JsonPropertyName("events")]
|
|
public List<string>? Events { get; set; }
|
|
}
|
|
|
|
public class WebhookInfoRequestDto
|
|
{
|
|
[Required]
|
|
[JsonPropertyName("service_code")]
|
|
public string ServiceCode { get; set; } = string.Empty;
|
|
}
|