121 lines
3.4 KiB
C#
121 lines
3.4 KiB
C#
using Dolphin.ExamPictureCut.Constants;
|
|
using SqlSugar;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Dolphin.ExamPictureCut.Domains.Basic;
|
|
|
|
[Table(nameof(GroupBook)), Tenant(DbConsts.marking_basic)]
|
|
public class GroupBook
|
|
{
|
|
[SugarColumn(IsPrimaryKey = true, ColumnName = "id")]
|
|
public long Id { get; set; }
|
|
|
|
[SugarColumn(ColumnName = "book_id")]
|
|
public long BookId { get; set; }
|
|
[SugarColumn(ColumnName = "book_name", IsNullable = true)]
|
|
public string BookName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 页面方向 0 竖向 1 横向
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "orientation")]
|
|
public int Orientation { get; set; }
|
|
|
|
/// <summary>
|
|
/// 页面大小 A3 = 8,A4 = 9,A4Small = 10,A5 = 11,B4 = 12, B5 = 13,
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "page_size")]
|
|
public int PaperSize { get; set; }
|
|
|
|
/// <summary>
|
|
/// 所属科目
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "course_name", IsNullable = true)]
|
|
public string CourseName { get; set; }
|
|
|
|
[SugarColumn(ColumnName = "remark", IsNullable = true)]
|
|
public string Remark { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否试卷
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "is_paper")]
|
|
public bool IsPaper { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否归档
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "is_save")]
|
|
public bool IsSave { get; set; }
|
|
|
|
[SugarColumn(ColumnName = "download_url", IsNullable = true)]
|
|
public string DownloadUrl { get; set; }
|
|
/// <summary>
|
|
/// 生成状态 0 未生成 1 正在生成 2 生成成功 3生成失败
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "state")]
|
|
public int State { get; set; }
|
|
|
|
/// <summary>
|
|
/// 学段
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "stage", IsNullable = true)]
|
|
public string Stage { get; set; }
|
|
/// <summary>
|
|
/// 学段Id
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "stage_id")]
|
|
public long StageId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 年级
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "grade_name", IsNullable = true)]
|
|
public string GradeName { get; set; }
|
|
/// <summary>
|
|
/// 科目
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "subject_name", IsNullable = true)]
|
|
public string SubjectName { get; set; }
|
|
[SugarColumn(ColumnName = "subject_id")]
|
|
public int SubjectId { get; set; }
|
|
/// <summary>
|
|
/// 年份
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "year")]
|
|
public int Year { get; set; }
|
|
|
|
/// <summary>
|
|
/// 模板制作状态
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "template_make_status")]
|
|
public TemplateMakeStatusEnum TemplateMakeStatus { get; set; }
|
|
|
|
/// <summary>
|
|
/// 归类Id
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "catalog_id", IsNullable = true)]
|
|
public string CatalogId { get; set; }
|
|
/// <summary>
|
|
/// 归类名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "catalog_name", IsNullable = true)]
|
|
public string CatalogName { get; set; }
|
|
|
|
[SugarColumn(ColumnName = "create_time", IsOnlyIgnoreUpdate = true, InsertServerTime = true)]
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
[SugarColumn(ColumnName = "update_time", InsertServerTime = true, UpdateServerTime = true)]
|
|
public DateTime UpdateTime { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 模板制作状态
|
|
/// </summary>
|
|
public enum TemplateMakeStatusEnum
|
|
{
|
|
未制作 = 0,
|
|
制作中 = 1,
|
|
已完成 = 2,
|
|
}
|