You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text.Json.Serialization;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AIK.Models.ApiModels.Banner
|
|
{
|
|
public class BannerModel
|
|
{
|
|
/// <summary>
|
|
/// 唯一标识
|
|
/// </summary>
|
|
[JsonPropertyName("id")]
|
|
public int? Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 图片路径
|
|
/// </summary>
|
|
[JsonPropertyName("imgUrl")]
|
|
public string? ImgUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 支持的语言(如 "zh-CN", "en-US")
|
|
/// </summary>
|
|
[JsonPropertyName("language")]
|
|
public string? Language { get; set; }
|
|
|
|
/// <summary>
|
|
/// 排序序号(值越小越靠前)
|
|
/// </summary>
|
|
[JsonPropertyName("orderNo")]
|
|
public int OrderNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 跳转目标内容(URL 或内部路由)
|
|
/// </summary>
|
|
[JsonPropertyName("targetUrl")]
|
|
public string? TargetUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 跳转类型:
|
|
/// 0 - 无跳转
|
|
/// 1 - 外部链接
|
|
/// 2 - 内部链接
|
|
/// </summary>
|
|
[JsonPropertyName("type")]
|
|
public int? Type { get; set; }
|
|
}
|
|
}
|
|
|