初始化项目
This commit is contained in:
64
Models/ModelItems/AppAutho.cs
Normal file
64
Models/ModelItems/AppAutho.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
#region 应用权限表
|
||||
[Table("AppAutho")]
|
||||
public class AppAutho
|
||||
{
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
//[ForeignKey("AppId")]
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 应用ID
|
||||
/// </summary>
|
||||
//[Key, Column(Order = 1)]
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType ="int")]
|
||||
public int AppId { get; set; }
|
||||
|
||||
|
||||
|
||||
//[ForeignKey("AuthorityId")]
|
||||
|
||||
|
||||
//public Authority authority { get; set; }
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 权限ID
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
///
|
||||
//[Key, Column(Order = 2)]
|
||||
public int AuthorityId { get; set; }
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)")]
|
||||
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true ,DefaultValue = "系统")]
|
||||
public string CreatedBy { get; set; } = "系统";
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
86
Models/ModelItems/ApplicationDomain.cs
Normal file
86
Models/ModelItems/ApplicationDomain.cs
Normal file
@@ -0,0 +1,86 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
#region 应用域表
|
||||
[Table("ApplicationDomain")]
|
||||
public class ApplicationDomain
|
||||
{
|
||||
//[Key]
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)
|
||||
|
||||
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
//[Required]
|
||||
/// <summary>
|
||||
/// 应用名
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(50)")]
|
||||
public string AppName { get; set; }
|
||||
/// <summary>
|
||||
/// 说明
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable =true)]
|
||||
public string Desc { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)")]
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
//[DefaultValue("0"), Range(0, 2)]
|
||||
public int IsValid { get; set; } = 0;
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int DowSum { get; set; } = 0;
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true,DefaultValue = "系统")]
|
||||
public string CreatedBy { get; set; } = "系统";
|
||||
|
||||
|
||||
//关联网址
|
||||
[SugarColumn(ColumnDataType = "varchar(120)", IsNullable = true)]
|
||||
|
||||
public string WebSite { get; set; } = null;
|
||||
//类型
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int",IsNullable =true)]
|
||||
|
||||
public int AppType { get; set; } = 0;
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(120)", IsNullable = true)]
|
||||
|
||||
public string Version { get; set; } = null;
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", IsNullable = true)]
|
||||
|
||||
public string Icon { get; set; } = null;
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)",IsNullable =true)]
|
||||
public DateTime ReleaseDate { get; set; } = DateTime.Now;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
36
Models/ModelItems/AuthoRecord.cs
Normal file
36
Models/ModelItems/AuthoRecord.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
#region 授权记录表
|
||||
[Table("AuthoRecord")]
|
||||
public class AuthoRecord
|
||||
{
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
|
||||
public int Id { get; set; }
|
||||
//授权用户
|
||||
[SugarColumn(ColumnDataType ="int")]
|
||||
|
||||
public int Userid { get; set; }
|
||||
//本次授权Appid
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int AppId { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)", IsNullable = true)]
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
//本次授权数量
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
45
Models/ModelItems/AuthoStatusType.cs
Normal file
45
Models/ModelItems/AuthoStatusType.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
#region 权限状态类型表
|
||||
[Table("AuthoStatusType")]
|
||||
public class AuthoStatusType
|
||||
{
|
||||
//[Key]
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 类型名称 0 超级管理员权限 1 查 2 查改 3 查增 4 查删 5 查 改删 6 查 增改 7 查 增删
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(255)")]
|
||||
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 说明
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable =true)]
|
||||
|
||||
public string Desc { get; set; }
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)")]
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true,DefaultValue = "系统")]
|
||||
public string CreatedBy { get; set; } = "系统";
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
67
Models/ModelItems/Authority.cs
Normal file
67
Models/ModelItems/Authority.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
#region 权限表
|
||||
[Table("Authority")]
|
||||
public class Authority
|
||||
{
|
||||
//[Key]
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
[Required]
|
||||
/// <summary>
|
||||
/// 权限名
|
||||
/// </summary>
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)")]
|
||||
|
||||
public string AuthorityName { get; set; }
|
||||
/// <summary>
|
||||
/// 说明
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
||||
|
||||
public string Desc { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)")]
|
||||
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true,DefaultValue = "系统")]
|
||||
|
||||
public string CreatedBy { get; set; } = "系统";
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int",IsNullable =true)]
|
||||
/// <summary>
|
||||
/// 是否可用 0 可用 其他不可
|
||||
/// </summary>
|
||||
//[DefaultValue("0"), Range(0, 2)]
|
||||
public int? IsValid { get; set; } = 0;
|
||||
//状态下拉 集合
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
||||
public string AuthoStatusTypeId { get; set; }
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
44
Models/ModelItems/DbLog.cs
Normal file
44
Models/ModelItems/DbLog.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
[Table("DbLog")]
|
||||
public class DbLog
|
||||
{
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
||||
|
||||
public string Content { get; set; }
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
||||
|
||||
public string Uid { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)")]
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int Type { get; set; }
|
||||
/// <param name="type"> 0 新增 1 更新 2 删除</param>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", IsNullable = true)]
|
||||
|
||||
public string Ip { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
||||
|
||||
public string Client { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(150)", IsNullable = true)]
|
||||
|
||||
public string location { get; set; }
|
||||
}
|
||||
}
|
||||
64
Models/ModelItems/ErrorInfo.cs
Normal file
64
Models/ModelItems/ErrorInfo.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
//微信小程序反馈错误表
|
||||
[Table("ErrorInfo")]
|
||||
public class ErrorInfo
|
||||
{
|
||||
//[Key]
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(50)",IsNullable =true)]
|
||||
public string MAC { get; set; }
|
||||
//操作者用户ID
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int userid { get; set; }
|
||||
/// <summary>
|
||||
/// 0 房间被绑定 1 MAC被绑定
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "int", IsNullable = true)]
|
||||
|
||||
public int type { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// 酒店ID
|
||||
/// </summary>
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
public int HotelID { get; set; }
|
||||
/// <summary>
|
||||
/// 房间号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", IsNullable = true)]
|
||||
public string roomNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
|
||||
//是否已经处理 0 未处理 1 已经处理
|
||||
[SugarColumn(ColumnDataType = "int", IsNullable = true)]
|
||||
public int status { get; set; } = 0;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)", IsNullable = true , DefaultValue="current_timestamp(3)" )]
|
||||
public DateTime createtime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
553
Models/ModelItems/Host.cs
Normal file
553
Models/ModelItems/Host.cs
Normal file
@@ -0,0 +1,553 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
|
||||
public class Host_
|
||||
{
|
||||
private DateTime registerDate = DateTime.Now;
|
||||
|
||||
private string subnetMask = "255.0.0.0";
|
||||
|
||||
private string gateway = "192.168.1.1";
|
||||
|
||||
private string dns = "114.114.114.114";
|
||||
|
||||
private int port = 3341;
|
||||
|
||||
private bool powerSupply = true;
|
||||
|
||||
private int authorizedHours = -1;
|
||||
|
||||
private int lockStatus = 2;//1锁开,2锁关
|
||||
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// </summary>
|
||||
public virtual int ID
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 主机编号
|
||||
/// </summary>
|
||||
public virtual string HostNumber
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 房间号
|
||||
/// </summary>
|
||||
public virtual string RoomNumber
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// IP
|
||||
/// </summary>
|
||||
public virtual string IP
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 局域网IP
|
||||
/// </summary>
|
||||
public virtual string LanIP
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 子网掩码
|
||||
/// </summary>
|
||||
public virtual string SubnetMask
|
||||
{
|
||||
get { return this.subnetMask; }
|
||||
set
|
||||
{
|
||||
|
||||
|
||||
this.subnetMask = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 网关
|
||||
/// </summary>
|
||||
public virtual string Gateway
|
||||
{
|
||||
get { return this.gateway; }
|
||||
set
|
||||
{
|
||||
|
||||
this.gateway = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// DNS
|
||||
/// </summary>
|
||||
public virtual string DNS
|
||||
{
|
||||
get { return this.dns; }
|
||||
set
|
||||
{
|
||||
this.dns = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 端口
|
||||
/// </summary>
|
||||
public virtual int Port
|
||||
{
|
||||
get { return this.port; }
|
||||
set
|
||||
{
|
||||
|
||||
this.port = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 局域网端口
|
||||
/// </summary>
|
||||
public virtual int LanPort
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// MAC
|
||||
/// </summary>
|
||||
public virtual string MAC
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0:离线 1:在线
|
||||
/// </summary>
|
||||
public virtual bool Status
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
/// </summary>
|
||||
public virtual string Version
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 配置数据版本号
|
||||
/// </summary>
|
||||
public virtual string ConfigVersion
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public virtual string Remark
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 注册日期
|
||||
/// </summary>
|
||||
public virtual DateTime RegisterDate
|
||||
{
|
||||
get { return this.registerDate; }
|
||||
set { this.registerDate = value; }
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
/// <summary>
|
||||
/// 请求服务
|
||||
/// </summary>
|
||||
public virtual bool RequestService
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 请求清理
|
||||
/// </summary>
|
||||
public virtual bool RequestClear
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 请勿打扰
|
||||
/// </summary>
|
||||
public virtual bool RequestDNDST
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 请求退房
|
||||
/// </summary>
|
||||
public virtual bool RequestCheckOut
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 求救
|
||||
/// </summary>
|
||||
public virtual bool SOS
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}*/
|
||||
|
||||
/// <summary>
|
||||
/// 门锁 True/开,False/关
|
||||
/// </summary>
|
||||
public virtual bool DoorLockStatus
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 房门状态更新时间
|
||||
/// </summary>
|
||||
public virtual DateTime? DoorLockStatusUpdateTime
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保险箱:0关,1开,2未接保险箱
|
||||
/// </summary>
|
||||
public virtual int SafeStatus
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/*
|
||||
/// <summary>
|
||||
/// 当前温度
|
||||
/// </summary>
|
||||
public virtual int CurrentTemp
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设定温度
|
||||
/// </summary>
|
||||
public virtual int SettingTemp
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 风速
|
||||
/// </summary>
|
||||
public virtual int Speed
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 辅助房态
|
||||
/// </summary>
|
||||
public virtual string RoomStatusAidIDs
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 是否连通房
|
||||
/// </summary>
|
||||
public virtual bool IsConnectingRoom
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 连通房ID,逗号隔开
|
||||
/// </summary>
|
||||
public virtual string ConnectingRooms
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}*/
|
||||
|
||||
/// <summary>
|
||||
/// 主机温度
|
||||
/// </summary>
|
||||
public virtual int HostTemp
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 客房电源
|
||||
/// </summary>
|
||||
public virtual bool PowerSupply
|
||||
{
|
||||
get { return this.powerSupply; }
|
||||
set { this.powerSupply = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 授权剩余小时
|
||||
/// </summary>
|
||||
public virtual int AuthorizedHours
|
||||
{
|
||||
get { return this.authorizedHours; }
|
||||
set { this.authorizedHours = value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 锁状态:1开,2关
|
||||
/// </summary>
|
||||
public virtual int LockStatus
|
||||
{
|
||||
get { return this.lockStatus; }
|
||||
set { this.lockStatus = value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 锁电压
|
||||
/// </summary>
|
||||
public virtual float LockVoltage
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 阿里云对接产品key
|
||||
/// </summary>
|
||||
public virtual string ProductKey
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 阿里云对接设备名称
|
||||
/// </summary>
|
||||
public virtual string DeviceName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 阿里云对接设备密钥
|
||||
/// </summary>
|
||||
public virtual string DeviceSecret
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 主机密钥
|
||||
/// </summary>
|
||||
public virtual string HostSecret
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 阿里云物联网平台为该设备颁发的设备ID,作为该设备的唯一标识符。
|
||||
/// </summary>
|
||||
public virtual string IotId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 是否下发密钥给主机
|
||||
/// </summary>
|
||||
public virtual bool IsPublish
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 若琪对接的webhook url,通知播放欢迎词使用
|
||||
/// </summary>
|
||||
public virtual string RokidWebhookUrl
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 绑定小度音箱的序列号
|
||||
/// </summary>
|
||||
public virtual string XiaoDuCUID
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// TCL电视序列号
|
||||
/// </summary>
|
||||
public virtual string TCLCUID
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 华为电视序列号
|
||||
/// </summary>
|
||||
public virtual string HuaWeiCUID
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 是否同步房号(生产工具同步)
|
||||
/// </summary>
|
||||
public virtual bool IsSyncRoomNumber
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 是否自动升级
|
||||
/// </summary>
|
||||
public virtual bool IsAutoUpdate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// MAC绑定时间
|
||||
/// </summary>
|
||||
public virtual DateTime? MACBindDate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// IP类型:1自动,2手动
|
||||
/// </summary>
|
||||
public virtual int IPType
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// rcu到期时间
|
||||
/// </summary>
|
||||
public virtual DateTime? ExpireTime
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// rcu运行时间
|
||||
/// </summary>
|
||||
public virtual DateTime? RunTime
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 设置rcu到期时间
|
||||
/// </summary>
|
||||
public virtual DateTime? SetExpireTime
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 是否锁定
|
||||
/// </summary>
|
||||
public virtual bool IsLock
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 季节
|
||||
/// </summary>
|
||||
public virtual string Season
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 服务器IP
|
||||
/// </summary>
|
||||
public virtual string ServerIP
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 服务器端口
|
||||
/// </summary>
|
||||
public virtual int ServerPort
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 最新更新日期
|
||||
/// </summary>
|
||||
public virtual DateTime? Last_Modified_Time
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// 房型
|
||||
/// </summary>
|
||||
public virtual int RoomTypeID
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 酒店
|
||||
/// </summary>
|
||||
public virtual int HOTELID
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 房态
|
||||
/// </summary>
|
||||
public virtual int RoomStatusID
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public int IsDeleted { get; set; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
122
Models/ModelItems/Hosts.cs
Normal file
122
Models/ModelItems/Hosts.cs
Normal file
@@ -0,0 +1,122 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
[Table("Hosts")]
|
||||
//房间表 暂未使用
|
||||
public class Hosts
|
||||
{
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType ="int")]
|
||||
public int HotelID { get; set; }
|
||||
|
||||
public string HotelName { get; set; }
|
||||
public string RoomNumber { get; set; }
|
||||
public int Status { get; set; } = 0; // 0 离线 1 在线
|
||||
public int? RoomStatusID { get; set; }
|
||||
public string MAC { get; set; }
|
||||
public string Desc { get; set; }
|
||||
/// <summary>
|
||||
/// 人脸机sn
|
||||
/// </summary>
|
||||
public string FaceSN { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 人脸机在线
|
||||
/// </summary>
|
||||
public bool FaceStatus { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 维修状态 0 正常 1 维修
|
||||
/// </summary>
|
||||
public Nullable<int> maintainStatus { get; set; } = 0;
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class HostsAdd : Hosts
|
||||
{
|
||||
public int RoomTypeID { get; set; }
|
||||
}
|
||||
//public class HostsAsync
|
||||
//{
|
||||
// //ID(主机 ID)
|
||||
// // , HostNumber(主机编号)
|
||||
// // , RoomNumber(房号)
|
||||
// // , Status(状态:0 离线,1 在线)
|
||||
// // , RegisterDate(注册日期,如:2021-01-01)
|
||||
// // , RoomStatusID(房态 ID)
|
||||
// // RoomStatusName(房态名称),
|
||||
// // RoomTypeID(房型 ID)
|
||||
// // , RoomTypeName(房型名称)
|
||||
// // , MAC(主机 mac 地址,如:34-D0-B8-1F-02-15)
|
||||
// // , IP(主机 IP 地址), Remark(备注
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public int ID { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public int HotelID { get; set; }
|
||||
// /// <summary>
|
||||
// /// 默认酒店
|
||||
// /// </summary>
|
||||
// public string HotelName { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public string HostNumber { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public string RoomNumber { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public bool Status { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public DateTime RegisterDate { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public int RoomStatusID { get; set; }
|
||||
// /// <summary>
|
||||
// /// 空房
|
||||
// /// </summary>
|
||||
// public string RoomStatusName { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public int RoomTypeID { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public string RoomTypeName { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public string MAC { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public string IP { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public string Remark { get; set; }
|
||||
// }
|
||||
}
|
||||
42
Models/ModelItems/HotelGroups.cs
Normal file
42
Models/ModelItems/HotelGroups.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
//[Table("HotelGroups")]
|
||||
public class HotelGroups
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true, IsPrimaryKey = false)]
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int",IsPrimaryKey = false)]
|
||||
|
||||
public int ParentId { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true, IsPrimaryKey = false)]
|
||||
|
||||
public string Desc { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)", IsNullable = true, IsPrimaryKey = false)]
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
|
||||
public int IsDel { get; set; } = 0;
|
||||
|
||||
|
||||
//public string ParenetName { get; set; }
|
||||
//public int Sort { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
122
Models/ModelItems/Hotels.cs
Normal file
122
Models/ModelItems/Hotels.cs
Normal file
@@ -0,0 +1,122 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
[Table("Hotels")]
|
||||
public class Hotels
|
||||
{
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(60)")]
|
||||
|
||||
public string Name { get; set; }
|
||||
//public string TWName { get; set; }
|
||||
//public string EName { get; set; }
|
||||
//public string Contact { get; set; }
|
||||
//public string Phone { get; set; }
|
||||
//public string Address { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(60)",IsNullable =true)]
|
||||
|
||||
public string Desc { get; set; }
|
||||
//public string Remark { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int GroupId { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(60)", IsNullable = true)]
|
||||
|
||||
public string Code { get; set; }
|
||||
|
||||
//0正式运营,1批量安装,2样板间
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int Status { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
//0审批,1审批同过
|
||||
public int IsApprove { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)", IsNullable = true)]
|
||||
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
//public DateTime CreatDate { get; set; } = DateTime.Now;
|
||||
//public DateTime ValidateDate { get; set; } = DateTime.Now;
|
||||
}
|
||||
//public class HotelsAsync
|
||||
//{
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public int ID { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public string Code { get; set; }
|
||||
// /// <summary>
|
||||
// /// 默认酒店
|
||||
// /// </summary>
|
||||
// public string Name { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public string EName { get; set; }
|
||||
// /// <summary>
|
||||
// /// 默認酒店
|
||||
// /// </summary>
|
||||
// public string TWName { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public string Contact { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public string Phone { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public string Address { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public string ValidateDate { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public DateTime CreatDate { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public string Remark { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public int Status { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public bool IsApprove { get; set; }
|
||||
// /// <summary>
|
||||
// ///
|
||||
// /// </summary>
|
||||
// public int SysHotelGroupID { get; set; }
|
||||
// /// <summary>
|
||||
// /// 宝来威
|
||||
// /// </summary>
|
||||
// public string SysHotelGroupName { get; set; }
|
||||
//}
|
||||
}
|
||||
96
Models/ModelItems/MACLogs.cs
Normal file
96
Models/ModelItems/MACLogs.cs
Normal file
@@ -0,0 +1,96 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
//微信小程序用户操作mac的日志表
|
||||
//[Table("MACLogs")]
|
||||
public class MACLogs
|
||||
{
|
||||
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 操作ID 同一次操作可能多次结果
|
||||
/// </summary>
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int ActionId { get; set; }
|
||||
/// <summary>
|
||||
/// 新的MAC
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(50)",IsNullable =true)]
|
||||
public string MAC { get; set; }
|
||||
//操作者用户ID
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int userid { get; set; }
|
||||
/// <summary>
|
||||
/// 操作日志 0 新增 1 解绑
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int type { get; set; }
|
||||
/// <summary>
|
||||
/// 地址
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(150)", IsNullable = true)]
|
||||
|
||||
public string location { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(100)", IsNullable = true)]
|
||||
|
||||
public string Ip { get; set; }
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)")]
|
||||
|
||||
|
||||
public DateTime createtime { get; set; } = default;
|
||||
/// <summary>
|
||||
/// 酒店ID
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int HotelID { get; set; }
|
||||
/// <summary>
|
||||
/// 房间ID
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(100)", IsNullable = true)]
|
||||
public string roomID { get; set; }
|
||||
/// <summary>
|
||||
/// 房间号
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(100)")]
|
||||
|
||||
public string roomNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
public int Status { get; set; } = 0;
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
public int AppType { get; set; } = 0;// 0 表示 rcu主机 1表示人脸机
|
||||
|
||||
}
|
||||
}
|
||||
80
Models/ModelItems/OrgAuthority.cs
Normal file
80
Models/ModelItems/OrgAuthority.cs
Normal file
@@ -0,0 +1,80 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
#region 用户组权限表
|
||||
//[Table("OrgAuthority")]
|
||||
public class OrgAuthority
|
||||
{
|
||||
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
|
||||
public int Id { get; set; }
|
||||
//[ForeignKey("OrgId")]
|
||||
//public Organization organization { get; set; }
|
||||
/// <summary>
|
||||
/// 用户组ID
|
||||
/// </summary>
|
||||
//[Key,Column(Order = 1)]
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType ="int")]
|
||||
public int OrgId { get; set; }
|
||||
//[ForeignKey("AuthorityId")]
|
||||
|
||||
|
||||
|
||||
//public Authority authority { get; set; }
|
||||
/// <summary>
|
||||
/// 权限ID
|
||||
/// </summary>
|
||||
//[Key,Column(Order = 2)]
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int AuthorityId { get; set; }
|
||||
//[ForeignKey("AuthotypeId")]
|
||||
//public AuthoStatusType authoStatusType { get; set; }
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
/// <summary>
|
||||
/// 权限状态
|
||||
/// </summary>
|
||||
public int AuthotypeId { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)", IsNullable = true)]
|
||||
public DateTime? CreateTime { get; set; } = DateTime.Now;
|
||||
|
||||
|
||||
|
||||
//[Key, Column(Order = 3)]
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
|
||||
public int HotelId { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
52
Models/ModelItems/OrgUsers.cs
Normal file
52
Models/ModelItems/OrgUsers.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
|
||||
//[Table("OrgUser")]
|
||||
public class OrgUsers
|
||||
{
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 用户组ID
|
||||
/// </summary>
|
||||
//[ForeignKey("OrgId")]
|
||||
//public Organization organization { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
public int OrgId { get; set; }
|
||||
//[ForeignKey("UserId")]
|
||||
//public UserInfo user { get; set; }
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
//[Key, Column(Order = 1)]
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int UserId { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)", IsNullable = true)]
|
||||
|
||||
public DateTime? CreateTime { get; set; } = DateTime.Now;
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true,DefaultValue = "系统")]
|
||||
|
||||
public string CreatedBy { get; set; } = "系统";
|
||||
|
||||
}
|
||||
}
|
||||
57
Models/ModelItems/Organization.cs
Normal file
57
Models/ModelItems/Organization.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
#region 用户组表
|
||||
[Table("Organization")]
|
||||
public class Organization
|
||||
{
|
||||
//[Key]
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
|
||||
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 用户组名
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
||||
|
||||
public string OrganizationName { get; set; }
|
||||
/// <summary>
|
||||
/// 说明
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
||||
|
||||
public string Desc { get; set; }
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int IsDefault { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "datetime(3)", IsNullable = true)]
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true,DefaultValue = "系统")]
|
||||
|
||||
public string CreatedBy { get; set; } = "系统";
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
public int IsValid { get; set; } = 0;
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
17
Models/ModelItems/QxIfo.cs
Normal file
17
Models/ModelItems/QxIfo.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
|
||||
public class QxIfo
|
||||
{
|
||||
public int uid { get; set; }
|
||||
public int id { get; set; } // 酒店id
|
||||
public int sum { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
52
Models/ModelItems/TBL_HOTEL_BASIC_INFO.cs
Normal file
52
Models/ModelItems/TBL_HOTEL_BASIC_INFO.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
public class TBL_HOTEL_BASIC_INFO
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public int HOTEL_ID { get; set; }
|
||||
public string PROJECT_NUMBER { get; set; } = string.Empty;
|
||||
public string HOTEL_NAME_CN { get; set; } = string.Empty;
|
||||
public string HOTEL_NAME_EN { get; set; } = string.Empty;
|
||||
public string HOTEL_NAME_TW { get; set; } = string.Empty;
|
||||
public string NATIONAL { get; set; } = string.Empty;
|
||||
public string PROVICE { get; set; } = string.Empty;
|
||||
public string CITY { get; set; } = string.Empty;
|
||||
public string TOWN { get; set; } = string.Empty;
|
||||
public string DETAIL_ADD { get; set; } = string.Empty;
|
||||
public string KEY_Name { get; set; } = string.Empty;
|
||||
public int KEY_ID { get; set; } = 0;
|
||||
public DateTime KEY_IN_DATETIME { get; set; } = DateTime.Now;
|
||||
public bool IsApprove { get; set; } = false;
|
||||
public int? APPROVE { get; set; }
|
||||
public DateTime? APPROVE_DATE { get; set; }
|
||||
public string HOTEL_BRAND { get; set; } = string.Empty;
|
||||
public int HOTEL_GROUP { get; set; } = 0;
|
||||
public string LOG_IMAGE { get; set; } = string.Empty;
|
||||
public DateTime? UPDATE_TIMEMARK { get; set; } = DateTime.Now;
|
||||
public DateTime? VALID_DATETIME { get; set; }
|
||||
public int VALID_STATUS { get; set; } = 0;
|
||||
public int STATUS { get; set; } = 0;
|
||||
public string SALES { get; set; } = string.Empty;
|
||||
public string SALES_PHONE { get; set; } = string.Empty;
|
||||
public string HOTEL_CONTACT { get; set; } = string.Empty;
|
||||
public string HOTEL_CONTACT_PHONE { get; set; } = string.Empty;
|
||||
public int SORT { get; set; } = 0;
|
||||
public string REMARK { get; set; } = String.Empty;
|
||||
public int IDOLD { get; set; } = 0;//酒店编号
|
||||
public string PASSWORD { get; set; } = "123456";// 房型编号
|
||||
public int IsDel { get; set; } = 0;
|
||||
public int HOTEL_OLD_GROUP { get; set; } = 0;
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
31
Models/ModelItems/TBL_HOTEL_GROUP_INFO.cs
Normal file
31
Models/ModelItems/TBL_HOTEL_GROUP_INFO.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
public class TBL_HOTEL_GROUP_INFO
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public int HOTEL_GROUP_ID { get; set; }
|
||||
public string HOTEL_GROUP_NAME { get; set; }
|
||||
public int PARENT_ID { get; set; }
|
||||
public int SORT { get; set; }
|
||||
public int KEY_IN { get; set; }
|
||||
public DateTime KEY_IN_DATETIME { get; set; } = DateTime.Now;
|
||||
public int? APPROVE { get; set; }
|
||||
public DateTime? APPROVE_DATE { get; set; }
|
||||
public DateTime? UPDATE_TIMEMARK { get; set; } = DateTime.Now;
|
||||
public string REMARK { get; set; }
|
||||
public int IsDel { get; set; }
|
||||
public int HOTEL_GROUP_OLD_ID { get; set; }
|
||||
public int PARENT_OLD_ID { get; set; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
32
Models/ModelItems/TBL_HOTEL_SEASON.cs
Normal file
32
Models/ModelItems/TBL_HOTEL_SEASON.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
|
||||
public class TBL_HOTEL_SEASON
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public int ID { get; set; }
|
||||
public int HOTELID { get; set; }
|
||||
public int HOTELID_OLD { get; set; }
|
||||
public int MONTH1 { get; set; }
|
||||
public int MONTH2 { get; set; }
|
||||
public int MONTH3 { get; set; }
|
||||
public int MONTH4 { get; set; }
|
||||
public int MONTH5 { get; set; }
|
||||
public int MONTH6 { get; set; }
|
||||
public int MONTH7 { get; set; }
|
||||
public int MONTH8 { get; set; }
|
||||
public int MONTH9 { get; set; }
|
||||
public int MONTH10 { get; set; }
|
||||
public int MONTH11 { get; set; }
|
||||
public int MONTH12 { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
28
Models/ModelItems/TBL_RCU_BASIC_INFO.cs
Normal file
28
Models/ModelItems/TBL_RCU_BASIC_INFO.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
public class TBL_RCU_BASIC_INFO
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public int RCU_ID { get; set; }
|
||||
public string MAC { get; set; }
|
||||
public string UUID { get; set; }
|
||||
public string BRAND { get; set; }
|
||||
public string MODEL { get; set; }
|
||||
public string CORE_MODUEL { get; set; }
|
||||
public DateTime REGISTER_DATE { get; set; } = DateTime.Now;
|
||||
public int REGISTER_STATUS { get; set; } = 0;
|
||||
public string UDP_KEY { get; set; }
|
||||
public DateTime? UPDATE_TIMEMARK { get; set; } = DateTime.Now;
|
||||
public int IsImport { get; set; }
|
||||
public int ISREGISTRATION { get; set; }
|
||||
}
|
||||
}
|
||||
32
Models/ModelItems/TBL_ROOM_BASIC_INFO.cs
Normal file
32
Models/ModelItems/TBL_ROOM_BASIC_INFO.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
public class TBL_ROOM_BASIC_INFO
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public int ROOM_ID { get; set; }
|
||||
public int HOTEL_ID { get; set; }
|
||||
public int ROOM_TYPE_ID { get; set; }
|
||||
public string ROOM_NUMBER { get; set; }
|
||||
public string DESCRPTION { get; set; }
|
||||
public string MAC { get; set; }
|
||||
public DateTime? UPDATE_TIMEMARK { get; set; }
|
||||
public string REMARK { get; set; }
|
||||
public int ROOM_TYPE_OLD_ID { get; set; }
|
||||
public int RoomStatusID { get; set; }
|
||||
public int HOTEL_OLD_ID { get; set; }
|
||||
public int ROOM_OLD_ID { get; set; }
|
||||
public DateTime? AUTH_DATETIME { get; set; }
|
||||
|
||||
public int IsDel { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
61
Models/ModelItems/TBL_ROOM_SET_CONFIG.cs
Normal file
61
Models/ModelItems/TBL_ROOM_SET_CONFIG.cs
Normal file
@@ -0,0 +1,61 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
public class TBL_ROOM_SET_CONFIG
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public int ID { get; set; }
|
||||
public int ROOM_ID { get; set; }
|
||||
public int ROOM_OLD_ID { get; set; }
|
||||
public string RCU_ROOM { get; set; }
|
||||
public string PRODUCT_CODE { get; set; }
|
||||
public int RCU_SEASON { get; set; }
|
||||
public DateTime? AUTH_DATETIME { get; set; }
|
||||
public int VALID_STATUS { get; set; }
|
||||
public string ROOM_DESCRIPTION { get; set; }
|
||||
public string FW_VER { get; set; }
|
||||
public string CONFIG_VER { get; set; }
|
||||
public int FW_AUTO_UPGRADE { get; set; }
|
||||
public int CFG_AUTO_UPDATE { get; set; }
|
||||
public string RCU_LOCAL_PORT { get; set; }
|
||||
public string RCU_LOCAL_IP { get; set; }
|
||||
public string RCU_SUB_MASK { get; set; }
|
||||
public string RCU_GETWAY { get; set; }
|
||||
public string RCU_DNS_SERVER { get; set; }
|
||||
public string RCU_CLOUD_SVR_IP { get; set; }
|
||||
public string RCU_CLOUD_SVR_URL { get; set; }
|
||||
public string RCU_CLOUD_SVR_PORT_MODE { get; set; }
|
||||
public string RCU_CLOUD_SVR_PORT { get; set; }
|
||||
public string RCU_SOCKET3_FUN { get; set; }
|
||||
public string RCU_LOCAL_SVR_IP { get; set; }
|
||||
public string RCU_LOCAL_SVR_PORT_MODE { get; set; }
|
||||
public string RCU_LOCAL_SVR_PORT { get; set; }
|
||||
public string RCU_MQTT_PRODUCT_SECRET { get; set; }
|
||||
public string RCU_MQTT_DEV_NAME { get; set; }
|
||||
public string RCU_MQTT_DEV_SECRET { get; set; }
|
||||
public string RCU_MQTT_PUB_TOPIC { get; set; }
|
||||
public string RCU_MQTT_SUB_TOPIC { get; set; }
|
||||
public int RCU_MQTT_KEEPALIVE { get; set; }
|
||||
public int RCU_HEARTBEAT_TIMEOUT { get; set; }
|
||||
public int RCU_HEARTBEAT_RETRY { get; set; }
|
||||
public int RCU_HEARTBEAT_FAIL_THD { get; set; }
|
||||
public string RCU_TFTP_LOG_SVR_IP { get; set; }
|
||||
public string RCU_TFTP_LOG_CFG { get; set; }
|
||||
public string RCU_TFTP_LOG_SVR_PORT { get; set; }
|
||||
public string RCU_SECRET_MODE { get; set; }
|
||||
public string CFG_MODIFIED_FLAG { get; set; }
|
||||
public string CFG_READY_FLAG { get; set; }
|
||||
public DateTime UPDATE_TIMEMARK { get; set; }
|
||||
public string REMARK { get; set; }
|
||||
public int IPType { get; set; }
|
||||
public int IsDel { get; set; }
|
||||
}
|
||||
}
|
||||
58
Models/ModelItems/TBL_ROOM_TYPE_LIST.cs
Normal file
58
Models/ModelItems/TBL_ROOM_TYPE_LIST.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
/// <summary>
|
||||
/// 房型表
|
||||
/// </summary>
|
||||
[Table("TBL_ROOM_TYPE_LIST")]
|
||||
public class TBL_ROOM_TYPE_LIST
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public int ROOM_TYPE_ID { get; set; }
|
||||
public int HOTEL_ID { get; set; }
|
||||
public string ROOM_TYPE_NAME { get; set; }
|
||||
public string DESCRIPTION { get; set; }
|
||||
public DateTime UPDATE_TIMEMARK { get; set; } = DateTime.Now;
|
||||
public string REMARK { get; set; }//备注
|
||||
public string CONFIG_XML { get; set; }//配置文件名
|
||||
public string CONFIG_BIN { get; set; }// 二进制配置数据
|
||||
public string CONFIG_BIN_MD5 { get; set; }// 二进制配置数据校验值
|
||||
public int ROOM_TYPE_OLD_ID { get; set; } // 房型编号
|
||||
public string PASSWORD { get; set; } = "123456";// 房型编号
|
||||
public int IsDel { get; set; }
|
||||
public int HOTEL_OLD_ID { get; set; } // 房型编号
|
||||
public int CFG_CURR_VER { get; set; } // CFG咕咕叫版本
|
||||
public string Firmware_FileName { get; set; } // 固件文件名
|
||||
public string Firmware_Version { get; set; }
|
||||
public string Firmware_MD5 { get; set; }
|
||||
public string Firmware_Approve { get; set; }
|
||||
public DateTime? Firmware_ApproveDate { get; set; }
|
||||
public string ConfigData_Approve { get; set; }
|
||||
public DateTime? ConfigData_ApproveDate { get; set; }
|
||||
public DateTime Creation_Time { get; set; } = DateTime.Now;
|
||||
public DateTime? ConfigUploadDateTime { get; set; }
|
||||
public DateTime? FirmwareUploadDateTime { get; set; }
|
||||
public string CONFIG_XML_MD5 { get; set; } = string.Empty;
|
||||
public string LUNCHER_HEX { get; set; } = string.Empty;
|
||||
public string LUNCHER_MD5 { get; set; } = string.Empty;
|
||||
public string Cfg_Type { get; set; } = string.Empty;
|
||||
public string App_Cfg_For_L4 { get; set; } = string.Empty;
|
||||
public string App_Cfg_For_L4_MD5 { get; set; } = string.Empty;
|
||||
public string App_Cfg_For_L2 { get; set; } = string.Empty;
|
||||
public string App_Cfg_For_L2_MD5 { get; set; } = string.Empty;
|
||||
public string Hex_Code_For_L4 { get; set; } = string.Empty;
|
||||
public string Hex_Code_For_L4_MD5 { get; set; } = string.Empty;
|
||||
public string Hex_Code_For_L2 { get; set; } = string.Empty;
|
||||
public string Hex_Code_For_L2_MD5 { get; set; } = string.Empty;
|
||||
public string Hex_Code_For_Model { get; set; } = string.Empty;
|
||||
public string APPTYPE { get; set; }
|
||||
}
|
||||
}
|
||||
20
Models/ModelItems/TBL_SEASON.cs
Normal file
20
Models/ModelItems/TBL_SEASON.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
public class TBL_SEASON
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public int ID { get; set; }
|
||||
public string NAME { get; set; }
|
||||
public string BeginDate { get; set; }
|
||||
public string EndDate { get; set; }
|
||||
}
|
||||
}
|
||||
60
Models/ModelItems/UserAuthoes.cs
Normal file
60
Models/ModelItems/UserAuthoes.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
//[Table("UserAutho")]
|
||||
public class UserAuthoes
|
||||
{
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
//[ForeignKey("UserId")]
|
||||
//public UserInfo user { get; set; }
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
//[Key,Column(Order = 1)]
|
||||
[SugarColumn(ColumnDataType = "int", IndexGroupNameList = new[] { "UserId_key" }) ]
|
||||
public int UserId { get; set; }
|
||||
//[ForeignKey("AuthorityId")]
|
||||
//public Authority authority { get; set; }
|
||||
/// <summary>
|
||||
/// 权限ID
|
||||
/// </summary>
|
||||
//[Key,Column(Order =2)]
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
|
||||
public int AuthorityId { get; set; }
|
||||
//[ForeignKey("AuthotypeId")]
|
||||
//public AuthoStatusType authoStatusType { get; set; }
|
||||
/// <summary>
|
||||
/// 权限状态
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
public int AuthotypeId { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)")]
|
||||
|
||||
public string CreateTime { get; set; } = DateTime.Now.ToString("g");
|
||||
//[Key,Column(Order = 3)]
|
||||
public int HotelId { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true, DefaultValue = "系统")]
|
||||
public string CreatedBy { get; set; } = "系统";
|
||||
}
|
||||
}
|
||||
203
Models/ModelItems/UserInfo.cs
Normal file
203
Models/ModelItems/UserInfo.cs
Normal file
@@ -0,0 +1,203 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web.Security;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
#region 用户表
|
||||
[Table("UserInfo")]
|
||||
public class UserInfo:ICloneable
|
||||
{
|
||||
//用户表 ID 密码 用户名 头像(有默认) 性别 年龄 说明 创建时间 到期时间 (默认2个月后) 所属酒店 所属酒店组
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 用户标识(账号)
|
||||
/// </summary>
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(50)", IndexGroupNameList = new[] { "Uid_key" }) ]
|
||||
public string Uid { get; set; }
|
||||
/// <summary>
|
||||
/// 密码
|
||||
/// </summary>
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(50)")]
|
||||
public string Pwd { get; set; }
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)",IsNullable =true)]
|
||||
|
||||
public string PwdSee { get; set; }
|
||||
/// <summary>
|
||||
/// 头像url
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true, DefaultValue = "default.png")]
|
||||
|
||||
public string HeadImg { get; set; } = "defaultboy.png";
|
||||
/// <summary>
|
||||
/// 性别 0-3 0 男 1 女 2 未知 3 预留待定 默认0
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
public int? Sex { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// 年龄 默认18
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "int", IsNullable = true, DefaultValue = "18")]
|
||||
public int? Age { get; set; } = 18;
|
||||
/// <summary>
|
||||
/// 是否可用 0 可用 1 不可 2管理
|
||||
/// </summary>
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int", IsNullable = true)]
|
||||
public int? IsValid { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// 说明
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
||||
|
||||
public string Desc { get; set; } = "";
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "datetime(3)", IsNullable = true)]
|
||||
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
|
||||
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "datetime(3)", IsNullable = true)]
|
||||
|
||||
public DateTime? EndTime { get; set; } = DateTime.Now.AddMonths(2);
|
||||
|
||||
|
||||
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
return this.Clone();
|
||||
}
|
||||
public UserInfo Clones()
|
||||
{
|
||||
return (UserInfo)this.Clone();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
|
||||
public string CreatedBy { get; set; } = "系统";
|
||||
/// <summary>
|
||||
/// 所属酒店
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "int", IsNullable = true)]
|
||||
|
||||
public int? HotelID { get; set; } = 0;
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int", IsNullable = true)]
|
||||
|
||||
public int? HotelGroupID { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// 是否导入 1 导入
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "int", IsNullable = true)]
|
||||
public int IsImport { get; set; } = 0;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 酒店数量
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "int", IsNullable = true)]
|
||||
public int Hotel_Count { get; set; } = 0;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 所有酒店
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "TEXT(21845)", IsNullable = true)]
|
||||
public string Hotel_Data { get; set; } = "";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 公司 0 宝来威 1 住好 2 卓豪
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDataType = "int", IsNullable = true)]
|
||||
|
||||
public int? Company { get; set; }
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int", IsNullable = true)]
|
||||
|
||||
public int? OldId { get; set; } = 0;
|
||||
|
||||
|
||||
[SugarColumn(ColumnDataType = "int")]
|
||||
|
||||
//是否自动授权
|
||||
public int Autho { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
///
|
||||
[SugarColumn(ColumnDataType = "datetime(3)", IsNullable = true)]
|
||||
|
||||
public DateTime SyncTime { get; set; } = DateTime.Now;
|
||||
|
||||
/// <summary>
|
||||
/// 计算密码 Hash值
|
||||
/// </summary>
|
||||
/// <param name="password"></param>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
public UserInfo ComputePasswordHash()
|
||||
{
|
||||
this.Pwd = HashCode(this.Uid.ToUpper() + this.Pwd + (this.CreateTime).ToString("yyyy-MM-dd HH:mm:ss"));
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取MD5值
|
||||
/// </summary>
|
||||
/// <param name="key">加密的字符串</param>
|
||||
/// <returns>返回MD5值</returns>
|
||||
public string HashCode(string key)
|
||||
{
|
||||
return FormsAuthentication.HashPasswordForStoringInConfigFile(key, "MD5");
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
20
Models/ModelItems/new_table_update_time_mark.cs
Normal file
20
Models/ModelItems/new_table_update_time_mark.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models.ModelItems
|
||||
{
|
||||
//[Table("HotelGroups")]
|
||||
public class new_table_update_time_mark
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public int ID { get; set; }
|
||||
public string NEW_DB_TABLE_NAME { get; set; }
|
||||
public DateTime LAST_UPDATE_TIME { get; set; } = DateTime.Now;
|
||||
public DateTime LAST_LATESTREC_TIME { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user