初始刷
This commit is contained in:
31
ZR.Model/System/Model/Dto/ChatMessageDto.cs
Normal file
31
ZR.Model/System/Model/Dto/ChatMessageDto.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
namespace ZR.Model.Dto
|
||||
{
|
||||
public class ChatMessageDto
|
||||
{
|
||||
public ChatUserDto FromUser { get; set; }
|
||||
public bool Self { get; set; }
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public string ChatId { get; set; }
|
||||
/// <summary>
|
||||
/// 0、文本 1、图片 2、文件 3、语音 4、视频
|
||||
/// </summary>
|
||||
public int MsgType { get; set; }
|
||||
public string StoredKey { get; set; }
|
||||
public long UserId { get; set; }
|
||||
public long ToUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 消息内容,如果type=1/2/3/4,此属性表示文件的URL地址
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
public long ChatTime { get; set; }
|
||||
public int Online { get; set; }
|
||||
}
|
||||
|
||||
public class ChatUserDto
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public string NickName { get; set; }
|
||||
public string Avatar { get; set; }
|
||||
}
|
||||
}
|
||||
32
ZR.Model/System/Model/Dto/CommonLangDto.cs
Normal file
32
ZR.Model/System/Model/Dto/CommonLangDto.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ZR.Model.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 多语言配置输入对象
|
||||
/// </summary>
|
||||
public class CommonLangDto
|
||||
{
|
||||
//[Required(ErrorMessage = "id不能为空")]
|
||||
public long Id { get; set; }
|
||||
//[Required(ErrorMessage = "语言code不能为空")]
|
||||
public string LangCode { get; set; }
|
||||
public string LangKey { get; set; }
|
||||
//[Required(ErrorMessage = "名称不能为空")]
|
||||
public string LangName { get; set; }
|
||||
public List<CommonLangDto> LangList { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 多语言配置查询对象
|
||||
/// </summary>
|
||||
public class CommonLangQueryDto : PagerInfo
|
||||
{
|
||||
public string LangCode { get; set; }
|
||||
public string LangKey { get; set; }
|
||||
public DateTime? BeginAddtime { get; set; }
|
||||
public DateTime? EndAddtime { get; set; }
|
||||
public int ShowMode { get; set; }
|
||||
}
|
||||
}
|
||||
44
ZR.Model/System/Model/Dto/EmailLogDto.cs
Normal file
44
ZR.Model/System/Model/Dto/EmailLogDto.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
namespace ZR.Model.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 邮件发送记录查询对象
|
||||
/// </summary>
|
||||
public class EmailLogQueryDto : PagerInfo
|
||||
{
|
||||
public string FromEmail { get; set; }
|
||||
public string Subject { get; set; }
|
||||
public int? IsSend { get; set; }
|
||||
public DateTime? BeginAddTime { get; set; }
|
||||
public DateTime? EndAddTime { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 邮件发送记录输入输出对象
|
||||
/// </summary>
|
||||
public class EmailLogDto
|
||||
{
|
||||
//[Required(ErrorMessage = "Id不能为空")]
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
public long Id { get; set; }
|
||||
|
||||
public string FromEmail { get; set; }
|
||||
|
||||
public string Subject { get; set; }
|
||||
|
||||
public string ToEmails { get; set; }
|
||||
|
||||
public string EmailContent { get; set; }
|
||||
|
||||
public DateTime? AddTime { get; set; }
|
||||
/// <summary>
|
||||
/// 是否已发送
|
||||
/// </summary>
|
||||
public int IsSend { get; set; }
|
||||
/// <summary>
|
||||
/// 发送结果
|
||||
/// </summary>
|
||||
public string SendResult { get; set; }
|
||||
public long[] IdArr { get; set; }
|
||||
public string FromName { get; set; }
|
||||
}
|
||||
}
|
||||
39
ZR.Model/System/Model/Dto/EmailTplDto.cs
Normal file
39
ZR.Model/System/Model/Dto/EmailTplDto.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.Model.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 邮件模板查询对象
|
||||
/// </summary>
|
||||
public class EmailTplQueryDto : PagerInfo
|
||||
{
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 邮件模板输入输出对象
|
||||
/// </summary>
|
||||
public class EmailTplDto
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Name不能为空")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "模板内容不能为空")]
|
||||
public string Content { get; set; }
|
||||
|
||||
public string CreateBy { get; set; }
|
||||
|
||||
public DateTime? CreateTime { get; set; }
|
||||
|
||||
public string UpdateBy { get; set; }
|
||||
|
||||
public DateTime? UpdateTime { get; set; }
|
||||
|
||||
public string Remark { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
66
ZR.Model/System/Model/Dto/GenTableDto.cs
Normal file
66
ZR.Model/System/Model/Dto/GenTableDto.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
using ZR.Model.System.Generate;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class GenTableDto
|
||||
{
|
||||
public int TableId { get; set; }
|
||||
public string TableName { get; set; }
|
||||
public string TableComment { get; set; }
|
||||
public string SubTableName { get; set; }
|
||||
public string SubTableFkName { get; set; }
|
||||
public string ClassName { get; set; }
|
||||
public string TplCategory { get; set; }
|
||||
public string BaseNameSpace { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
public string BusinessName { get; set; }
|
||||
public string FunctionName { get; set; }
|
||||
public string FunctionAuthor { get; set; }
|
||||
public string GenType { get; set; }
|
||||
public string GenPath { get; set; }
|
||||
//public string PermissionPrefix { get; set; }
|
||||
public string Remark { get; set; }
|
||||
/// <summary>
|
||||
/// 额外参数
|
||||
/// </summary>
|
||||
public CodeOptions Params { get; set; }
|
||||
public List<GenTableColumnDto> Columns { get; set; }
|
||||
}
|
||||
|
||||
public class GenTableColumnDto
|
||||
{
|
||||
public int ColumnId { get; set; }
|
||||
public int TableId { get; set; }
|
||||
public string ColumnComment { get; set; }
|
||||
public string CsharpType { get; set; }
|
||||
public string CsharpField { get; set; }
|
||||
public bool IsInsert { get; set; }
|
||||
public bool IsEdit { get; set; }
|
||||
public bool IsList { get; set; }
|
||||
public bool IsQuery { get; set; }
|
||||
public bool IsSort { get; set; }
|
||||
public bool IsRequired { get; set; }
|
||||
public bool IsExport { get; set; }
|
||||
/// <summary>
|
||||
/// 显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)
|
||||
/// </summary>
|
||||
public string HtmlType { get; set; }
|
||||
/// <summary>
|
||||
/// 查询类型(等于、不等于、大于、小于、范围)
|
||||
/// </summary>
|
||||
public string QueryType { get; set; } = "EQ";
|
||||
public int Sort { get; set; }
|
||||
/// <summary>
|
||||
/// 字典类型
|
||||
/// </summary>
|
||||
public string DictType { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
/// <summary>
|
||||
/// 自动填充类型
|
||||
/// </summary>
|
||||
public int? AutoFillType { get; set; }
|
||||
}
|
||||
}
|
||||
11
ZR.Model/System/Model/Dto/LockUserDto.cs
Normal file
11
ZR.Model/System/Model/Dto/LockUserDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class LockUserDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string ClientId { get; set; }
|
||||
public string ConnnectionId { get; set; }
|
||||
public string Reason { get; set; }
|
||||
public int Time { get; set; }
|
||||
}
|
||||
}
|
||||
31
ZR.Model/System/Model/Dto/LoginBodyDto.cs
Normal file
31
ZR.Model/System/Model/Dto/LoginBodyDto.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class LoginBodyDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户名
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "用户名不能为空")]
|
||||
public string Username { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户密码
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "密码不能为空")]
|
||||
public string Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 验证码
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一标识
|
||||
/// </summary>
|
||||
public string Uuid { get; set; } = "";
|
||||
public string LoginIP { get; set; }
|
||||
public string ClientId { get; set; }
|
||||
}
|
||||
}
|
||||
99
ZR.Model/System/Model/Dto/MenuDto.cs
Normal file
99
ZR.Model/System/Model/Dto/MenuDto.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
using MiniExcelLibs.Attributes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class MenuDto
|
||||
{
|
||||
//{"parentId":0,"menuName":"aaa","icon":"documentation","menuType":"M","orderNum":999,"visible":0,"status":0,"path":"aaa"}
|
||||
[Required(ErrorMessage = "菜单id不能为空")]
|
||||
[ExcelColumn(Name = "菜单id")]
|
||||
public int MenuId { get; set; }
|
||||
[ExcelColumn(Name = "菜单名")]
|
||||
public string MenuName { get; set; }
|
||||
/// <summary>
|
||||
/// 父菜单ID
|
||||
/// </summary>
|
||||
public long? ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 显示顺序
|
||||
/// </summary>
|
||||
public int OrderNum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 路由地址
|
||||
/// </summary>
|
||||
[ExcelColumn(Name = "路由地址")]
|
||||
public string Path { get; set; } = "#";
|
||||
|
||||
/// <summary>
|
||||
/// 组件路径
|
||||
/// </summary>
|
||||
[ExcelColumn(Name = "组件地址")]
|
||||
public string Component { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否缓存(1缓存 0不缓存)
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "是否缓存不能为空")]
|
||||
[ExcelColumn(Name = "是否缓存")]
|
||||
public int IsCache { get; set; }
|
||||
/// <summary>
|
||||
/// 是否外链 1、是 0、否
|
||||
/// </summary>
|
||||
public int IsFrame { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类型(M目录 C菜单 F按钮 L链接)
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "菜单类型不能为空")]
|
||||
public string MenuType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 显示状态(0显示 1隐藏)
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "显示状态不能为空")]
|
||||
public string Visible { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单状态(0正常 1停用)
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "菜单状态不能为空")]
|
||||
public string Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 权限字符串
|
||||
/// </summary>
|
||||
[ExcelColumn(Name = "权限字符串")]
|
||||
public string Perms { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单图标
|
||||
/// </summary>
|
||||
public string Icon { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 翻译key
|
||||
/// </summary>
|
||||
public string MenuNameKey { get; set; }
|
||||
public List<MenuDto> Children { get; set; } = new List<MenuDto>();
|
||||
}
|
||||
|
||||
public class MenuQueryDto
|
||||
{
|
||||
public string MenuName { get; set; }
|
||||
public string Visible { get; set; }
|
||||
public string Status { get; set; }
|
||||
public string MenuTypeIds { get; set; } = string.Empty;
|
||||
public int? ParentId { get; set; }
|
||||
public string[] MenuTypeIdArr
|
||||
{
|
||||
get
|
||||
{
|
||||
return MenuTypeIds?.Split(',', StringSplitOptions.RemoveEmptyEntries);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
29
ZR.Model/System/Model/Dto/PhoneLoginDto.cs
Normal file
29
ZR.Model/System/Model/Dto/PhoneLoginDto.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.ServiceCore.Model.Dto
|
||||
{
|
||||
public class PhoneLoginDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 验证码
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一标识
|
||||
/// </summary>
|
||||
public string Uuid { get; set; } = "";
|
||||
public string LoginIP { get; set; }
|
||||
[Required(ErrorMessage = "手机号不能为空")]
|
||||
public string PhoneNum { get; set; }
|
||||
/// <summary>
|
||||
/// 手机短信验证码
|
||||
/// </summary>
|
||||
//[Required(ErrorMessage = "短信验证码不能为空")]
|
||||
public string PhoneCode { get; set; }
|
||||
/// <summary>
|
||||
/// 0、登录 1、绑定
|
||||
/// </summary>
|
||||
public int SendType { get; set; }
|
||||
}
|
||||
}
|
||||
35
ZR.Model/System/Model/Dto/RegisterDto.cs
Normal file
35
ZR.Model/System/Model/Dto/RegisterDto.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class RegisterDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户名
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "用户名不能为空")]
|
||||
public string Username { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户密码
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "密码不能为空")]
|
||||
public string Password { get; set; }
|
||||
[Required(ErrorMessage = "确认密码不能为空")]
|
||||
public string ConfirmPassword { get; set; }
|
||||
/// <summary>
|
||||
/// 验证码
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 唯一标识
|
||||
/// </summary>
|
||||
public string Uuid { get; set; } = "";
|
||||
/// <summary>
|
||||
/// 头像
|
||||
/// </summary>
|
||||
public string Photo { get; set; }
|
||||
public string UserIP { get; set; }
|
||||
}
|
||||
}
|
||||
29
ZR.Model/System/Model/Dto/RoleMenuExportDto.cs
Normal file
29
ZR.Model/System/Model/Dto/RoleMenuExportDto.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using MiniExcelLibs.Attributes;
|
||||
using SqlSugar.DbConvert;
|
||||
using ZR.Model.System.Enums;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class RoleMenuExportDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 一级目录名
|
||||
/// </summary>
|
||||
[ExcelColumn(Name = "菜单", Width = 50)]
|
||||
public string MenuName { get; set; }
|
||||
//[ExcelColumn(Name = "菜单名", Width = 20)]
|
||||
//public string MenuName1 { get; set; }
|
||||
//[ExcelColumn(Name = "权限按钮", Width = 20)]
|
||||
//public string MenuName2 { get; set; }
|
||||
[ExcelColumn(Name = "路径", Width = 20)]
|
||||
public string Path { get; set; }
|
||||
[ExcelColumn(Name = "组件名", Width = 20)]
|
||||
public string Component { get; set; }
|
||||
[ExcelColumn(Name = "权限字符", Width = 20)]
|
||||
public string Perms { get; set; }
|
||||
[ExcelColumn(Name = "菜单类型")]
|
||||
public MenuType MenuType { get; set; }
|
||||
[ExcelColumn(Name = "菜单状态")]
|
||||
public MenuStatus Status { get; set; }
|
||||
}
|
||||
}
|
||||
28
ZR.Model/System/Model/Dto/RoleUserDto.cs
Normal file
28
ZR.Model/System/Model/Dto/RoleUserDto.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class RoleUserQueryDto : PagerInfo
|
||||
{
|
||||
public long RoleId { get; set; }
|
||||
|
||||
public string UserName { get; set; }
|
||||
}
|
||||
|
||||
public class RoleUsersCreateDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 角色id
|
||||
/// </summary>
|
||||
[Display(Name = "角色id")]
|
||||
[Required(ErrorMessage = "roleId 不能为空")]
|
||||
public long RoleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户编码 [1,2,3,4]
|
||||
/// </summary>
|
||||
[Display(Name = "用户编码 [1,2,3,4]")]
|
||||
public List<long> UserIds { get; set; }
|
||||
}
|
||||
}
|
||||
9
ZR.Model/System/Model/Dto/ScanDto.cs
Normal file
9
ZR.Model/System/Model/Dto/ScanDto.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class ScanDto
|
||||
{
|
||||
public string Uuid { get; set; }
|
||||
public string State { get; set; }
|
||||
public string DeviceId { get; set; }
|
||||
}
|
||||
}
|
||||
61
ZR.Model/System/Model/Dto/SmsCodeLogDto.cs
Normal file
61
ZR.Model/System/Model/Dto/SmsCodeLogDto.cs
Normal file
@@ -0,0 +1,61 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using MiniExcelLibs.Attributes;
|
||||
|
||||
namespace ZR.Model.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 短信验证码记录查询对象
|
||||
/// </summary>
|
||||
public class SmscodeLogQueryDto : PagerInfo
|
||||
{
|
||||
public int? Userid { get; set; }
|
||||
public long? PhoneNum { get; set; }
|
||||
public DateTime? BeginAddTime { get; set; }
|
||||
public DateTime? EndAddTime { get; set; }
|
||||
public int? SendType { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 短信验证码记录输入输出对象
|
||||
/// </summary>
|
||||
public class SmsCodeLogDto
|
||||
{
|
||||
[Required(ErrorMessage = "Id不能为空")]
|
||||
[ExcelColumn(Name = "Id")]
|
||||
[ExcelColumnName("Id")]
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
public long Id { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "短信验证码")]
|
||||
[ExcelColumnName("短信验证码")]
|
||||
public string SmsCode { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "用户id")]
|
||||
[ExcelColumnName("用户id")]
|
||||
public int? Userid { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "手机号")]
|
||||
[ExcelColumnName("手机号")]
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
public long? PhoneNum { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "短信内容")]
|
||||
[ExcelColumnName("短信内容")]
|
||||
public string SmsContent { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "添加时间", Format = "yyyy-MM-dd HH:mm:ss")]
|
||||
[ExcelColumnName("添加时间")]
|
||||
public DateTime? AddTime { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "用户IP")]
|
||||
[ExcelColumnName("用户IP")]
|
||||
public string UserIP { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "发送类型")]
|
||||
[ExcelColumnName("发送类型")]
|
||||
public int? SendType { get; set; }
|
||||
[ExcelColumn(Name = "地理位置")]
|
||||
[ExcelColumnName("地理位置")]
|
||||
public string Location { get; set; }
|
||||
}
|
||||
}
|
||||
55
ZR.Model/System/Model/Dto/SqlDiffLogDto.cs
Normal file
55
ZR.Model/System/Model/Dto/SqlDiffLogDto.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using MiniExcelLibs.Attributes;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据差异日志查询对象
|
||||
/// </summary>
|
||||
public class SqlDiffLogQueryDto : PagerInfo
|
||||
{
|
||||
public string TableName { get; set; }
|
||||
public string DiffType { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public DateTime? BeginAddTime { get; set; }
|
||||
public DateTime? EndAddTime { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据差异日志输入输出对象
|
||||
/// </summary>
|
||||
public class SqlDiffLogDto
|
||||
{
|
||||
[Required(ErrorMessage = "主键不能为空")]
|
||||
[ExcelColumn(Name = "主键", Width = 15)]
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
public long PId { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "表名", Width = 15)]
|
||||
public string TableName { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "业务数据内容")]
|
||||
public string BusinessData { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "差异类型")]
|
||||
public string DiffType { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "执行sql语句", Width = 30)]
|
||||
public string Sql { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "变更前数据", Width = 30)]
|
||||
public string BeforeData { get; set; } = string.Empty;
|
||||
|
||||
[ExcelColumn(Name = "变更后数据", Width = 30)]
|
||||
public string AfterData { get; set; } = string.Empty;
|
||||
|
||||
[ExcelColumn(Name = "操作用户名")]
|
||||
public string UserName { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "记录时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
|
||||
public DateTime? AddTime { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "数据库配置id")]
|
||||
public string ConfigId { get; set; }
|
||||
}
|
||||
}
|
||||
13
ZR.Model/System/Model/Dto/StatiLoginLogDto.cs
Normal file
13
ZR.Model/System/Model/Dto/StatiLoginLogDto.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace ZR.ServiceCore.Model.Dto
|
||||
{
|
||||
public class StatiLoginLogDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 去重数据
|
||||
/// </summary>
|
||||
public int DeRepeatNum { get; set; }
|
||||
public int Num { get; set; }
|
||||
public DateTime Date { get; set; }
|
||||
public string WeekName { get; set; }
|
||||
}
|
||||
}
|
||||
30
ZR.Model/System/Model/Dto/SysConfigDto.cs
Normal file
30
ZR.Model/System/Model/Dto/SysConfigDto.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 参数配置输入对象模型
|
||||
/// </summary>
|
||||
public class SysConfigDto
|
||||
{
|
||||
public int ConfigId { get; set; }
|
||||
public string ConfigName { get; set; }
|
||||
public string ConfigKey { get; set; }
|
||||
public string ConfigValue { get; set; }
|
||||
public string ConfigType { get; set; }
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 参数配置查询对象模型
|
||||
/// </summary>
|
||||
public class SysConfigQueryDto : PagerInfo
|
||||
{
|
||||
public string ConfigName { get; set; }
|
||||
public string ConfigKey { get; set; }
|
||||
public string ConfigValue { get; set; }
|
||||
public string ConfigType { get; set; }
|
||||
public DateTime? BeginTime { get; set; }
|
||||
public DateTime? EndTime { get; set; }
|
||||
}
|
||||
}
|
||||
32
ZR.Model/System/Model/Dto/SysDeptDto.cs
Normal file
32
ZR.Model/System/Model/Dto/SysDeptDto.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class SysDeptQueryDto : PagerInfo
|
||||
{
|
||||
public int? Status { get; set; }
|
||||
public int? DelFlag { get; set; }
|
||||
public string DeptName { get; set; }
|
||||
}
|
||||
public class SysDeptDto : SysBase
|
||||
{
|
||||
public long DeptId { get; set; }
|
||||
|
||||
public long ParentId { get; set; }
|
||||
|
||||
public string Ancestors { get; set; }
|
||||
|
||||
public string DeptName { get; set; }
|
||||
|
||||
public int OrderNum { get; set; }
|
||||
|
||||
public string Leader { get; set; }
|
||||
|
||||
public string Phone { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
public int Status { get; set; }
|
||||
|
||||
public int DelFlag { get; set; }
|
||||
public int UserNum { get; set; }
|
||||
}
|
||||
}
|
||||
27
ZR.Model/System/Model/Dto/SysDictTypeDto.cs
Normal file
27
ZR.Model/System/Model/Dto/SysDictTypeDto.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class SysDictTypeDto
|
||||
{
|
||||
public long DictId { get; set; }
|
||||
/// <summary>
|
||||
/// 字典名称
|
||||
/// </summary>
|
||||
public string DictName { get; set; }
|
||||
/// <summary>
|
||||
/// 字典类型
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "字典类型不能为空")]
|
||||
[RegularExpression(pattern: "^[a-z][a-z0-9_]*$", ErrorMessage = "字典类型必须以字母开头,且字典类型只能由小写字母或加下划线还有数字组成")]
|
||||
public string DictType { get; set; }
|
||||
public string Status { get; set; }
|
||||
/// <summary>
|
||||
/// 系统内置 Y是 N否
|
||||
/// </summary>
|
||||
public string Type { get; set; }
|
||||
/// <summary>
|
||||
/// 自定义sql
|
||||
/// </summary>
|
||||
public string CustomSql { get; set; }
|
||||
public string Remark { get; set; }
|
||||
}
|
||||
}
|
||||
76
ZR.Model/System/Model/Dto/SysFileQueryDto.cs
Normal file
76
ZR.Model/System/Model/Dto/SysFileQueryDto.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 文件存储输入对象
|
||||
/// </summary>
|
||||
public class SysFileDto
|
||||
{
|
||||
public long Id { get; set; }
|
||||
/// <summary>
|
||||
/// 文件原名
|
||||
/// </summary>
|
||||
public string RealName { get; set; }
|
||||
/// <summary>
|
||||
/// 文件类型
|
||||
/// </summary>
|
||||
public string FileType { get; set; }
|
||||
/// <summary>
|
||||
/// 存储文件名
|
||||
/// </summary>
|
||||
public string FileName { get; set; }
|
||||
/// <summary>
|
||||
/// 文件存储地址 eg:/uploads/20220202
|
||||
/// </summary>
|
||||
public string FileUrl { get; set; }
|
||||
/// <summary>
|
||||
/// 仓库位置 eg:/uploads
|
||||
/// </summary>
|
||||
public string StorePath { get; set; }
|
||||
/// <summary>
|
||||
/// 文件大小
|
||||
/// </summary>
|
||||
public string FileSize { get; set; }
|
||||
/// <summary>
|
||||
/// 文件扩展名
|
||||
/// </summary>
|
||||
public string FileExt { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
public string Create_by { get; set; }
|
||||
/// <summary>
|
||||
/// 上传时间
|
||||
/// </summary>
|
||||
public DateTime? Create_time { get; set; }
|
||||
/// <summary>
|
||||
/// 存储类型
|
||||
/// </summary>
|
||||
public int? StoreType { get; set; }
|
||||
/// <summary>
|
||||
/// 访问路径
|
||||
/// </summary>
|
||||
public string AccessUrl { get; set; }
|
||||
|
||||
public SysFileDto() { }
|
||||
public SysFileDto(string originFileName, string fileName, string ext, string fileSize, string storePath, string accessUrl, string create_by)
|
||||
{
|
||||
StorePath = storePath;
|
||||
RealName = originFileName;
|
||||
FileName = fileName;
|
||||
FileExt = ext;
|
||||
FileSize = fileSize;
|
||||
AccessUrl = accessUrl;
|
||||
Create_by = create_by;
|
||||
Create_time = DateTime.Now;
|
||||
}
|
||||
}
|
||||
public class SysFileQueryDto : PagerInfo
|
||||
{
|
||||
public DateTime? BeginCreate_time { get; set; }
|
||||
public DateTime? EndCreate_time { get; set; }
|
||||
public int? StoreType { get; set; }
|
||||
public long? FileId { get; set; }
|
||||
}
|
||||
}
|
||||
30
ZR.Model/System/Model/Dto/SysLogininfoDto.cs
Normal file
30
ZR.Model/System/Model/Dto/SysLogininfoDto.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class SysLogininfoQueryDto : PagerInfo
|
||||
{
|
||||
public string Status { get; set; }
|
||||
public long? UserId { get; set; }
|
||||
public string Ipaddr { get; set; } = string.Empty;
|
||||
public string UserName { get; set; }
|
||||
public DateTime? BeginTime { get; set; }
|
||||
public DateTime? EndTime { get; set; }
|
||||
}
|
||||
|
||||
public class SysLogininfoDto : SysBase
|
||||
{
|
||||
public int PageNum { get; set; }
|
||||
/// <summary>
|
||||
/// IP 地址
|
||||
/// </summary>
|
||||
public string Ipaddr { get; set; }
|
||||
/// <summary>
|
||||
/// 登录状态 0成功 1失败
|
||||
/// </summary>
|
||||
public string Status { get; set; }
|
||||
/// <summary>
|
||||
/// 用户名
|
||||
/// </summary>
|
||||
public string UserName { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
67
ZR.Model/System/Model/Dto/SysNoticeDto.cs
Normal file
67
ZR.Model/System/Model/Dto/SysNoticeDto.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
using MiniExcelLibs.Attributes;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 通知公告表输入对象
|
||||
/// </summary>
|
||||
public class SysNoticeDto
|
||||
{
|
||||
//[Required(ErrorMessage = "公告ID不能为空")]
|
||||
[ExcelColumn(Name = "公告ID")]
|
||||
[ExcelColumnName("公告ID")]
|
||||
public int NoticeId { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "公告标题不能为空")]
|
||||
[ExcelColumn(Name = "公告标题", Width = 40)]
|
||||
[ExcelColumnName("公告标题")]
|
||||
public string NoticeTitle { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "公告类型不能为空")]
|
||||
[ExcelColumn(Name = "公告类型", Ignore = true)]
|
||||
[ExcelColumnName("公告类型")]
|
||||
public int NoticeType { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "公告内容", Width = 80)]
|
||||
[ExcelColumnName("公告内容")]
|
||||
public string NoticeContent { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "公告状态 (0正常 1关闭)不能为空")]
|
||||
[ExcelColumn(Name = "公告状态", Ignore = true)]
|
||||
[ExcelColumnName("公告状态")]
|
||||
public int Status { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "创建人")]
|
||||
[ExcelColumnName("创建人")]
|
||||
public string CreateBy { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "创建时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
|
||||
[ExcelColumnName("创建时间")]
|
||||
public DateTime? CreateTime { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "Remark")]
|
||||
[ExcelColumnName("Remark")]
|
||||
public string Remark { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "公告类型")]
|
||||
public string NoticeTypeLabel { get; set; }
|
||||
[ExcelColumn(Name = "公告状态")]
|
||||
public string StatusLabel { get; set; }
|
||||
public DateTime? BeginTime { get; set; }
|
||||
public DateTime? EndTime { get; set; }
|
||||
public string Publisher { get; set; }
|
||||
public int Popup { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 通知公告表查询对象
|
||||
/// </summary>
|
||||
public class SysNoticeQueryDto : PagerInfo
|
||||
{
|
||||
public string NoticeTitle { get; set; }
|
||||
public int? NoticeType { get; set; }
|
||||
public string CreateBy { get; set; }
|
||||
public int? Status { get; set; }
|
||||
}
|
||||
}
|
||||
60
ZR.Model/System/Model/Dto/SysOperLogDto.cs
Normal file
60
ZR.Model/System/Model/Dto/SysOperLogDto.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class SysOperLogQueryDto : PagerInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 操作人员
|
||||
/// </summary>
|
||||
public string OperName { get; set; }
|
||||
/// <summary>
|
||||
/// 业务类型 0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据
|
||||
/// </summary>
|
||||
public int? BusinessType { get; set; }
|
||||
public int[] BusinessTypes { get; set; }
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
public int? Status { get; set; }
|
||||
/// <summary>
|
||||
/// 操作模块
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
/// <summary>
|
||||
/// 请求参数
|
||||
/// </summary>
|
||||
public string OperParam { get; set; }
|
||||
public DateTime? BeginTime { get; set; }
|
||||
public DateTime? EndTime { get; set; }
|
||||
}
|
||||
|
||||
public class SysOperLogDto : SysBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 页码
|
||||
/// </summary>
|
||||
public int PageNum { get; set; }
|
||||
public int PageSize { get; set; }
|
||||
/// <summary>
|
||||
/// 操作人员
|
||||
/// </summary>
|
||||
public string OperName { get; set; }
|
||||
/// <summary>
|
||||
/// 业务类型 0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据
|
||||
/// </summary>
|
||||
public int BusinessType { get; set; } = -1;
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
public int Status { get; set; } = -1;
|
||||
/// <summary>
|
||||
/// 操作模块
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
/// <summary>
|
||||
/// 请求参数
|
||||
/// </summary>
|
||||
public string OperParam { get; set; }
|
||||
}
|
||||
}
|
||||
20
ZR.Model/System/Model/Dto/SysPostDto.cs
Normal file
20
ZR.Model/System/Model/Dto/SysPostDto.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using ZR.Model;
|
||||
using ZR.Model.System;
|
||||
|
||||
namespace ZR.ServiceCore.Model.Dto
|
||||
{
|
||||
public class SysPostDto : SysPost
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户个数
|
||||
/// </summary>
|
||||
public long UserNum { get; set; }
|
||||
}
|
||||
|
||||
public class SysPostQueryDto : PagerInfo
|
||||
{
|
||||
public string PostName { get; set; }
|
||||
public string Status { get; set; }
|
||||
public string PostCode { get; set; }
|
||||
}
|
||||
}
|
||||
26
ZR.Model/System/Model/Dto/SysRoleDto.cs
Normal file
26
ZR.Model/System/Model/Dto/SysRoleDto.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class SysRoleDto : SysBase
|
||||
{
|
||||
public long RoleId { get; set; }
|
||||
/// <summary>
|
||||
/// 要添加的菜单集合
|
||||
/// </summary>
|
||||
public List<long> MenuIds { get; set; } = new List<long>();
|
||||
public string RoleName { get; set; }
|
||||
public string RoleKey { get; set; }
|
||||
public int RoleSort { get; set; }
|
||||
public int Status { get; set; }
|
||||
public int DataScope { get; set; }
|
||||
public int[] DeptIds { get; set; }
|
||||
/// <summary>
|
||||
/// 减少菜单集合
|
||||
/// </summary>
|
||||
public List<long> DelMenuIds { get; set; } = new List<long>();
|
||||
public bool MenuCheckStrictly { get; set; }
|
||||
public bool DeptCheckStrictly { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
18
ZR.Model/System/Model/Dto/SysRoleMenuDto.cs
Normal file
18
ZR.Model/System/Model/Dto/SysRoleMenuDto.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class SysRoleMenuDto
|
||||
{
|
||||
public long RoleId { get; set; }
|
||||
/// <summary>
|
||||
/// 角色分配菜单
|
||||
/// </summary>
|
||||
public List<long> MenuIds { get; set; } = new List<long>();
|
||||
public string RoleName { get; set; }
|
||||
public string RoleKey { get; set; }
|
||||
public string Create_by { get; set; }
|
||||
public DateTime Create_time{ get; set; }
|
||||
}
|
||||
}
|
||||
62
ZR.Model/System/Model/Dto/SysUserDto.cs
Normal file
62
ZR.Model/System/Model/Dto/SysUserDto.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class SysUserDto
|
||||
{
|
||||
public long UserId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string NickName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string Remark { get; set; }
|
||||
public string Phonenumber { get; set; }
|
||||
public string Avatar { get; set; }
|
||||
/// <summary>
|
||||
/// 用户性别(0男 1女 2未知)
|
||||
/// </summary>
|
||||
public int Sex { get; set; }
|
||||
public string Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 帐号状态(0正常 1停用)
|
||||
/// </summary>
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最后登录IP
|
||||
/// </summary>
|
||||
public string LoginIP { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 部门Id
|
||||
/// </summary>
|
||||
public long DeptId { get; set; }
|
||||
/// <summary>
|
||||
/// 角色id集合
|
||||
/// </summary>
|
||||
public long[] RoleIds { get; set; }
|
||||
/// <summary>
|
||||
/// 岗位集合
|
||||
/// </summary>
|
||||
public int[] PostIds { get; set; }
|
||||
public string WelcomeContent { get; set; }
|
||||
public string WelcomeMessage { get; set; }
|
||||
public bool IsAdmin { get; set; }
|
||||
}
|
||||
|
||||
public class SysUserQueryDto
|
||||
{
|
||||
public long? UserId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string NickName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string Remark { get; set; }
|
||||
public string Phonenumber { get; set; }
|
||||
/// <summary>
|
||||
/// 用户性别(0男 1女 2未知)
|
||||
/// </summary>
|
||||
public int Sex { get; set; }
|
||||
public DateTime? BeginTime { get; set; }
|
||||
public DateTime? EndTime { get; set; }
|
||||
public int Status { get; set; }
|
||||
public long DeptId { get; set; }
|
||||
}
|
||||
}
|
||||
65
ZR.Model/System/Model/Dto/SysUserMsgDto.cs
Normal file
65
ZR.Model/System/Model/Dto/SysUserMsgDto.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
using ZR.Model.Content.Dto;
|
||||
|
||||
namespace ZR.Model.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户系统消息查询对象
|
||||
/// </summary>
|
||||
public class SysUserMsgQueryDto : PagerInfo
|
||||
{
|
||||
public long? UserId { get; set; }
|
||||
public int? IsRead { get; set; }
|
||||
public long? ClassifyId { get; set; }
|
||||
public UserMsgType? MsgType { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用户系统消息输入输出对象
|
||||
/// </summary>
|
||||
public class SysUserMsgDto
|
||||
{
|
||||
[Required(ErrorMessage = "消息ID不能为空")]
|
||||
[ExcelColumn(Name = "消息ID")]
|
||||
[ExcelColumnName("消息ID")]
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
public long MsgId { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "用户ID")]
|
||||
[ExcelColumnName("用户ID")]
|
||||
public long? UserId { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "消息内容")]
|
||||
[ExcelColumnName("消息内容")]
|
||||
public string Content { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "是否已读")]
|
||||
[ExcelColumnName("是否已读")]
|
||||
public int? IsRead { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "添加时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
|
||||
[ExcelColumnName("添加时间")]
|
||||
public DateTime? AddTime { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "目标ID")]
|
||||
[ExcelColumnName("目标ID")]
|
||||
public long? TargetId { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "分类ID")]
|
||||
[ExcelColumnName("分类ID")]
|
||||
public long? ClassifyId { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "消息类型")]
|
||||
[ExcelColumnName("消息类型")]
|
||||
public string MsgType { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "是否删除")]
|
||||
[ExcelColumnName("是否删除")]
|
||||
public int? IsDelete { get; set; }
|
||||
|
||||
public UserDto User { get; set; }
|
||||
[JsonIgnore]
|
||||
[ExcelColumn(Name = "是否已读")]
|
||||
public string IsReadLabel { get; set; }
|
||||
public string ImgUrl { get; set; }
|
||||
}
|
||||
}
|
||||
34
ZR.Model/System/Model/Dto/SysdictDataDto.cs
Normal file
34
ZR.Model/System/Model/Dto/SysdictDataDto.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class SysdictDataParamDto
|
||||
{
|
||||
public string DictType { get; set; }
|
||||
//public string ColumnName { get; set; }
|
||||
public List<SysDictDataDto> List { get; set; }
|
||||
}
|
||||
|
||||
public class SysDictDataDto
|
||||
{
|
||||
public string DictLabel { get; set; }
|
||||
public string DictValue { get; set; }
|
||||
public string DictType { get; set; }
|
||||
public string CssClass { get; set; } = string.Empty;
|
||||
public string ListClass { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 多语言翻译key值
|
||||
/// </summary>
|
||||
public string LangKey { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 扩展1
|
||||
/// </summary>
|
||||
public string Extend1 { get; set; }
|
||||
/// <summary>
|
||||
/// 扩展2
|
||||
/// </summary>
|
||||
public string Extend2 { get; set; }
|
||||
#region uniapp返回字段
|
||||
public string Label { get; set; }
|
||||
public string Value { get; set; }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
109
ZR.Model/System/Model/Dto/TasksDto.cs
Normal file
109
ZR.Model/System/Model/Dto/TasksDto.cs
Normal file
@@ -0,0 +1,109 @@
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class TasksQueryDto : PagerInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询字符串
|
||||
/// </summary>
|
||||
[Display(Name = "查询字符串")]
|
||||
public string QueryText { get; set; }
|
||||
public int? TaskType { get; set; }
|
||||
public int? TriggerType { get; set; }
|
||||
public int? IsStart { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加任务
|
||||
/// </summary>
|
||||
public class TasksCreateDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 任务id
|
||||
/// </summary>
|
||||
[Display(Name = "任务id")]
|
||||
//[Required(ErrorMessage = "任务不能为空")]
|
||||
public string ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务名称
|
||||
/// </summary>
|
||||
[Display(Name = "任务名称")]
|
||||
[Required(ErrorMessage = "任务名称不能为空")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务分组
|
||||
/// </summary>
|
||||
[Display(Name = "任务分组")]
|
||||
[Required(ErrorMessage = "任务分组不能为空")]
|
||||
public string JobGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运行时间表达式
|
||||
/// </summary>
|
||||
[Display(Name = "运行时间表达式")]
|
||||
public string Cron { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 程序集名称
|
||||
/// </summary>
|
||||
[Display(Name = "程序集名称")]
|
||||
public string AssemblyName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务所在类
|
||||
/// </summary>
|
||||
[Display(Name = "任务所在类")]
|
||||
public string ClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务描述
|
||||
/// </summary>
|
||||
[Display(Name = "任务描述")]
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
[Display(Name = "开始时间")]
|
||||
public DateTime? BeginTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束时间
|
||||
/// </summary>
|
||||
[Display(Name = "结束时间")]
|
||||
public DateTime? EndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 触发器类型(0、simple 1、cron)
|
||||
/// </summary>
|
||||
[Display(Name = "触发器类型(0、simple 1、cron)")]
|
||||
public int TriggerType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 执行间隔时间(单位:秒)
|
||||
/// </summary>
|
||||
[Display(Name = "执行间隔时间(单位:秒)")]
|
||||
public int IntervalSecond { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 传入参数
|
||||
/// </summary>
|
||||
[Display(Name = "传入参数")]
|
||||
public string JobParams { get; set; }
|
||||
public string ApiUrl { get; set; }
|
||||
/// <summary>
|
||||
/// 1、程序集任务 2、apiUrl任务 3、SQL语句
|
||||
/// </summary>
|
||||
public int TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// SQL文本
|
||||
/// </summary>
|
||||
public string SqlText { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 网络请求方式
|
||||
/// </summary>
|
||||
public string RequestMethod { get; set; }
|
||||
}
|
||||
}
|
||||
23
ZR.Model/System/Model/Dto/TasksLogDto.cs
Normal file
23
ZR.Model/System/Model/Dto/TasksLogDto.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class TasksLogQueryDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询字符串
|
||||
/// </summary>
|
||||
public string Name{ get; set; }
|
||||
public string JobName { get; set; }
|
||||
public string JobId { get; set; }
|
||||
public string JobGroup { get; set; }
|
||||
public string Status { get; set; }
|
||||
public DateTime? BeginTime { get; set; }
|
||||
public DateTime? EndTime { get; set; }
|
||||
}
|
||||
|
||||
public class TasksLogDto
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
18
ZR.Model/System/Model/Dto/UploadDto.cs
Normal file
18
ZR.Model/System/Model/Dto/UploadDto.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace ZR.Model.Dto
|
||||
{
|
||||
public class UploadDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 自定文件名
|
||||
/// </summary>
|
||||
public string FileName { get; set; }
|
||||
/// <summary>
|
||||
/// 存储目录
|
||||
/// </summary>
|
||||
public string FileDir { get; set; }
|
||||
/// <summary>
|
||||
/// 文件名生成类型 1 原文件名 2 自定义 3 自动生成
|
||||
/// </summary>
|
||||
public int FileNameType { get; set; }
|
||||
}
|
||||
}
|
||||
65
ZR.Model/System/Model/Dto/UserOnlineLogDto.cs
Normal file
65
ZR.Model/System/Model/Dto/UserOnlineLogDto.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
namespace ZR.Model.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户在线时长查询对象
|
||||
/// </summary>
|
||||
public class UserOnlineLogQueryDto : PagerInfo
|
||||
{
|
||||
public int? UserId { get; set; }
|
||||
public string UserIP { get; set; }
|
||||
public DateTime? BeginAddTime { get; set; }
|
||||
public DateTime? EndAddTime { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 用户在线时长输入输出对象
|
||||
/// </summary>
|
||||
public class UserOnlineLogDto
|
||||
{
|
||||
[Required(ErrorMessage = "Id不能为空")]
|
||||
[ExcelColumn(Name = "Id")]
|
||||
[ExcelColumnName("Id")]
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
public long Id { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "用户id不能为空")]
|
||||
[ExcelColumn(Name = "用户id")]
|
||||
[ExcelColumnName("用户id")]
|
||||
public long UserId { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "在线时长(分)不能为空")]
|
||||
[ExcelColumn(Name = "在线时长(分)")]
|
||||
[ExcelColumnName("在线时长(分)")]
|
||||
public double OnlineTime { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "结束时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
|
||||
[ExcelColumnName("结束时间")]
|
||||
public DateTime? AddTime { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "地址位置")]
|
||||
[ExcelColumnName("地址位置")]
|
||||
public string Location { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "用户IP")]
|
||||
[ExcelColumnName("用户IP")]
|
||||
public string UserIP { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "备注")]
|
||||
[ExcelColumnName("备注")]
|
||||
public string Remark { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "登录时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
|
||||
[ExcelColumnName("登录时间")]
|
||||
public DateTime? LoginTime { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "今日在线时长")]
|
||||
[ExcelColumnName("今日在线时长")]
|
||||
public string TodayOnlineTime { get; set; }
|
||||
|
||||
[ExcelColumn(Name = "登录平台")]
|
||||
[ExcelColumnName("登录平台")]
|
||||
public string Platform { get; set; }
|
||||
[ExcelColumn(Name = "用户昵称")]
|
||||
public string NickName { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user