mi-assessment/server/MiAssessment/src/MiAssessment.Model/Entities/Promotion.cs
2026-03-19 08:27:06 +08:00

74 lines
1.5 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 System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace MiAssessment.Model.Entities;
/// <summary>
/// 宣传图表
/// </summary>
[Table("promotions")]
public class Promotion
{
/// <summary>
/// 主键ID
/// </summary>
[Key]
public long Id { get; set; }
/// <summary>
/// 标题
/// </summary>
[MaxLength(100)]
public string? Title { get; set; }
/// <summary>
/// 图片URL
/// </summary>
[Required]
[MaxLength(500)]
public string ImageUrl { get; set; } = null!;
/// <summary>
/// 图标URL未选中状态
/// </summary>
[MaxLength(500)]
public string? IconUrl { get; set; }
/// <summary>
/// 图标URL选中状态
/// </summary>
[MaxLength(500)]
public string? ActiveIconUrl { get; set; }
/// <summary>
/// 位置1首页底部 2团队页
/// </summary>
public int Position { get; set; } = 1;
/// <summary>
/// 排序
/// </summary>
public int Sort { get; set; }
/// <summary>
/// 状态0禁用 1启用
/// </summary>
public int Status { get; set; } = 1;
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdateTime { get; set; }
/// <summary>
/// 软删除标记
/// </summary>
public bool IsDeleted { get; set; }
}