2026-02-07 18:02:21 +08:00
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using YD_Event.Core.Enum;
|
|
|
|
|
|
|
|
|
|
|
|
namespace YD_Event.Core.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 轮播图配置
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarTable("Banner")]
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public class Banner : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability, ISortable
|
2026-02-07 18:02:21 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 标题
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "标题", Length = 128, IsNullable = true)]
|
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 图片地址
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "图片地址", Length = 512)]
|
|
|
|
|
|
[Required, MaxLength(512)]
|
|
|
|
|
|
public string ImageUrl { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-03-07 22:02:26 +08:00
|
|
|
|
/// 跳转链接类型
|
2026-02-07 18:02:21 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "跳转链接类型")]
|
2026-03-07 22:02:26 +08:00
|
|
|
|
public LinkType LinkType { get; set; }
|
2026-02-07 18:02:21 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-03-07 22:02:26 +08:00
|
|
|
|
/// 跳转链接URL
|
2026-02-07 18:02:21 +08:00
|
|
|
|
/// </summary>
|
2026-03-07 22:02:26 +08:00
|
|
|
|
[SugarColumn(ColumnDescription = "跳转链接URL", Length = 512, IsNullable = true)]
|
|
|
|
|
|
public string LinkUrl { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 关联赛事ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "关联赛事ID", IsNullable = true)]
|
|
|
|
|
|
public long? EventId { get; set; }
|
2026-02-07 18:02:21 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "排序")]
|
|
|
|
|
|
public int Sort { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 状态(0-启用 1-禁用)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "状态")]
|
|
|
|
|
|
public AvailabilityStatus Status { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 备注
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "备注", Length = 256, IsNullable = true)]
|
|
|
|
|
|
public string Remark { get; set; }
|
|
|
|
|
|
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 标记删除
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool DeleteMark { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建人
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long CreatedUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建时间
|
|
|
|
|
|
/// </summary>
|
2026-02-07 18:02:21 +08:00
|
|
|
|
public DateTime CreatedTime { get; set; }
|
2026-02-26 18:29:08 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新人
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long? UpdatedUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新时间
|
|
|
|
|
|
/// </summary>
|
2026-02-07 18:02:21 +08:00
|
|
|
|
public DateTime? UpdatedTime { get; set; }
|
2026-03-07 22:02:26 +08:00
|
|
|
|
}
|