2026-07-07 15:53:25 +08:00
|
|
|
using QYZH.InteractiveMagazine.Models.Enum;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
namespace QYZH.InteractiveMagazine.Models.Entity;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 轮播图表
|
|
|
|
|
/// </summary>
|
2026-07-08 10:37:03 +08:00
|
|
|
[SugarTable("Content_Banner")]
|
2026-07-07 15:53:25 +08:00
|
|
|
public partial class Banner : SqlSugarBaseEntity
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:标题
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:轮播图OSS路径
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ImageUrl { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:展示位置
|
|
|
|
|
/// Default:1
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
/// </summary>
|
|
|
|
|
public BannerPositionEnum Position { get; set; } = BannerPositionEnum.Home;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:跳转类型
|
|
|
|
|
/// Default:0
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
/// </summary>
|
|
|
|
|
public BannerTargetTypeEnum TargetType { get; set; } = BannerTargetTypeEnum.None;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:跳转值
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:True
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? TargetValue { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:排序值,越小越靠前
|
|
|
|
|
/// Default:0
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Sort { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:生效开始时间
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:True
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime? StartTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:生效结束时间
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:True
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime? EndTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:备注
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:True
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? Remark { get; set; }
|
|
|
|
|
}
|