SPMS_API/SPMS.Application/DTOs/Service/WebhookConfigRequestDto.cs
2026-02-11 10:03:03 +09:00

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;
}