120 Star 757 Fork 308

chatop2020/AKStream

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
RecordPlan.cs 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
chatop 提交于 2021-01-06 16:52 +08:00 . 为ajax自定义header下的options请求开路
using System;
using System.Collections.Generic;
using FreeSql.DataAnnotations;
using Newtonsoft.Json;
namespace LibCommon.Structs.DBModels
{
[Serializable]
/// <summary>
/// 超过限制时怎么处理
/// StopDvr=停止录制
/// DeleteFile=删除文件
/// </summary>
public enum OverStepPlan
{
StopDvr,
DeleteFile,
}
/// <summary>
/// 录制计划,是数据库StreamDvrPlan表的字段映射
/// </summary>
[Table(Name = "RecordPlan")]
[Index("idx_rp_name", "Name", true)]
[Serializable]
/// <summary>
/// 录制计划
/// </summary>
public class RecordPlan
{
/// <summary>
/// 数据库主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
[JsonIgnore]
public int? Id { get; set; }
/// <summary>
/// 录制计划名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 是否启用该录制计划(true为启用)
/// </summary>
public bool Enable { get; set; }
/// <summary>
/// 录制计划的描述
/// </summary>
public string Describe { get; set; } = null!;
/// <summary>
/// 录制占用空间限制(Byte),最大录制到某个值后做相应处理
/// </summary>
public long? LimitSpace { get; set; }
/// <summary>
/// 录制占用天数限制,最大录制到某个值后做相应处理
/// </summary>
public int? LimitDays { get; set; }
/// <summary>
/// 具体的录制计划列表
/// </summary>
[Column(MapType = typeof(string))]
public OverStepPlan? OverStepPlan { get; set; }
[Navigate(nameof(RecordPlanRange.RecordPlanId))]
public List<RecordPlanRange> TimeRangeList { get; set; } = null!;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/chatop2020/AKStream.git
git@gitee.com:chatop2020/AKStream.git
chatop2020
AKStream
AKStream
master

搜索帮助