2026-03-07 22:02:26 +08:00

86 lines
2.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using SqlSugar;
using System.ComponentModel.DataAnnotations;
using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
/// <summary>
/// 轮播图配置
/// </summary>
[SugarTable("Banner")]
public class Banner : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability, ISortable
{
/// <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>
/// 跳转链接类型
/// </summary>
[SugarColumn(ColumnDescription = "跳转链接类型")]
public LinkType LinkType { get; set; }
/// <summary>
/// 跳转链接URL
/// </summary>
[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; }
/// <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; }
/// <summary>
/// 标记删除
/// </summary>
public bool DeleteMark { get; set; }
/// <summary>
/// 创建人
/// </summary>
public long CreatedUserId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedTime { get; set; }
/// <summary>
/// 更新人
/// </summary>
public long? UpdatedUserId { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime? UpdatedTime { get; set; }
}