37 lines
904 B
C#
37 lines
904 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace SPMS.Application.DTOs.Banner;
|
|
|
|
public class BannerListResponseDto
|
|
{
|
|
[JsonPropertyName("items")]
|
|
public List<BannerItemDto> Items { get; set; } = new();
|
|
|
|
[JsonPropertyName("total_count")]
|
|
public int TotalCount { get; set; }
|
|
}
|
|
|
|
public class BannerItemDto
|
|
{
|
|
[JsonPropertyName("banner_id")]
|
|
public long BannerId { get; set; }
|
|
|
|
[JsonPropertyName("title")]
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("image_url")]
|
|
public string ImageUrl { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("link_url")]
|
|
public string? LinkUrl { get; set; }
|
|
|
|
[JsonPropertyName("link_type")]
|
|
public string? LinkType { get; set; }
|
|
|
|
[JsonPropertyName("position")]
|
|
public string Position { get; set; } = string.Empty;
|
|
|
|
[JsonPropertyName("sort_order")]
|
|
public int SortOrder { get; set; }
|
|
}
|