优化代码注释&命名空间
This commit is contained in:
parent
547945d85b
commit
a89762e070
@ -5,7 +5,7 @@ using MiniExcelLibs;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using System.Web;
|
||||
using ff = System.IO;
|
||||
using Io = System.IO;
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers
|
||||
{
|
||||
@ -61,7 +61,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
//IWebHostEnvironment webHostEnvironment = (IWebHostEnvironment)App.ServiceProvider.GetService(typeof(IWebHostEnvironment));
|
||||
//string fileDir = Path.Combine(webHostEnvironment.WebRootPath, path, fileName);
|
||||
|
||||
var stream = ff.File.OpenRead(path); //创建文件流
|
||||
var stream = Io.File.OpenRead(path); //创建文件流
|
||||
return File(stream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", HttpUtility.UrlEncode(fileName));
|
||||
}
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ namespace ZR.Admin.WebApi.Controllers.monitor
|
||||
[HttpGet("list")]
|
||||
public IActionResult Index()
|
||||
{
|
||||
return SUCCESS(null);
|
||||
return SUCCESS(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -16,7 +16,7 @@ namespace ZR.Admin.WebApi.Filters
|
||||
/// <summary>
|
||||
/// 权限字符串,例如 system:user:view
|
||||
/// </summary>
|
||||
public string Permission { get; set; }
|
||||
public string Permission { get; set; } = string.Empty;
|
||||
private bool HasPermi { get; set; }
|
||||
private bool HasRole { get; set; }
|
||||
public ActionPermissionFilter() { }
|
||||
|
||||
@ -111,7 +111,7 @@ namespace ZR.Admin.WebApi.Filters
|
||||
if (logAttribute != null)
|
||||
{
|
||||
sysOperLog.Title = logAttribute?.Title;
|
||||
sysOperLog.BusinessType = (int)logAttribute?.BusinessType;
|
||||
sysOperLog.BusinessType = (int)logAttribute.BusinessType;
|
||||
sysOperLog.OperParam = logAttribute.IsSaveRequestData ? sysOperLog.OperParam : "";
|
||||
sysOperLog.JsonResult = logAttribute.IsSaveResponseData ? sysOperLog.JsonResult : "";
|
||||
}
|
||||
|
||||
@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Admin.WebApi.Hubs
|
||||
namespace ZR.Admin.WebApi.Hubs
|
||||
{
|
||||
public class OnlineUsers
|
||||
{
|
||||
@ -17,8 +13,8 @@ namespace ZR.Admin.WebApi.Hubs
|
||||
public string Name { get; set; }
|
||||
public DateTime LoginTime { get; set; }
|
||||
public string UserIP { get; set; }
|
||||
public string Location { get; set; }
|
||||
public string Uuid{ get; set; }
|
||||
public string? Location { get; set; }
|
||||
public string? Uuid{ get; set; }
|
||||
|
||||
public OnlineUsers(string clientid, string name, long? userid, string userip)
|
||||
{
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ZR.Model
|
||||
{
|
||||
|
||||
@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model
|
||||
namespace ZR.Model
|
||||
{
|
||||
public class PagerInfo
|
||||
{
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System
|
||||
{
|
||||
@ -12,10 +10,22 @@ namespace ZR.Model.System
|
||||
[Tenant("0")]
|
||||
public class Article
|
||||
{
|
||||
/// <summary>
|
||||
/// 文章id
|
||||
/// </summary>
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public int Cid { get; set; }
|
||||
/// <summary>
|
||||
/// 文章标题
|
||||
/// </summary>
|
||||
public string Title { get; set; }
|
||||
/// <summary>
|
||||
/// 发布时间
|
||||
/// </summary>
|
||||
public DateTime? CreateTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
[SugarColumn(IsOnlyIgnoreInsert = true)]
|
||||
public DateTime? UpdateTime { get; set; }
|
||||
/// <summary>
|
||||
@ -26,11 +36,10 @@ namespace ZR.Model.System
|
||||
/// 作者名
|
||||
/// </summary>
|
||||
public string AuthorName { get; set; }
|
||||
/// <summary>
|
||||
/// 发布者用户id
|
||||
/// </summary>
|
||||
public long UserId { get; set; }
|
||||
///// <summary>
|
||||
/////
|
||||
///// </summary>
|
||||
//public string Type { get; set; }
|
||||
/// <summary>
|
||||
/// 文章状态 1、发布 2、草稿
|
||||
/// </summary>
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System
|
||||
{
|
||||
|
||||
@ -8,7 +8,7 @@ namespace ZR.Model.Models
|
||||
/// <summary>
|
||||
/// 多语言配置,数据实体对象
|
||||
///
|
||||
/// @author zr
|
||||
/// @author mr.zhao
|
||||
/// @date 2022-05-06
|
||||
/// </summary>
|
||||
[Tenant("0")]
|
||||
@ -16,40 +16,35 @@ namespace ZR.Model.Models
|
||||
public class CommonLang
|
||||
{
|
||||
/// <summary>
|
||||
/// 描述 : id
|
||||
/// 空值 : false
|
||||
/// id
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 语言code
|
||||
/// 空值 : false
|
||||
/// 语言code
|
||||
/// </summary>
|
||||
[DisplayName("语言code")]
|
||||
[SugarColumn(ColumnName = "lang_code")]
|
||||
public string LangCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 语言key
|
||||
/// 空值 : true
|
||||
/// 语言key
|
||||
/// </summary>
|
||||
[DisplayName("语言key")]
|
||||
[SugarColumn(ColumnName = "lang_key")]
|
||||
public string LangKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 名称
|
||||
/// 空值 : false
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[DisplayName("名称")]
|
||||
[SugarColumn(ColumnName = "lang_name")]
|
||||
public string LangName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 添加时间
|
||||
/// 空值 : true
|
||||
/// 添加时间
|
||||
/// </summary>
|
||||
[DisplayName("添加时间")]
|
||||
public DateTime? Addtime { get; set; }
|
||||
|
||||
@ -1,8 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using ZR.Model.Dto;
|
||||
using ZR.Model.Models;
|
||||
|
||||
namespace ZR.Model.Dto
|
||||
{
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.Model.Dto
|
||||
{
|
||||
|
||||
@ -16,14 +16,14 @@ namespace ZR.Model.System.Dto
|
||||
[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; }
|
||||
}
|
||||
|
||||
@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
@ -20,14 +17,18 @@ namespace ZR.Model.System.Dto
|
||||
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; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
@ -15,18 +13,14 @@ namespace ZR.Model.System.Dto
|
||||
public class RoleUsersCreateDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 描述 : 角色id
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 角色id
|
||||
/// </summary>
|
||||
[Display(Name = "角色id")]
|
||||
[Required(ErrorMessage = "roleId 不能为空")]
|
||||
public long RoleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 用户编码 [1,2,3,4]
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 用户编码 [1,2,3,4]
|
||||
/// </summary>
|
||||
[Display(Name = "用户编码 [1,2,3,4]")]
|
||||
public List<long> UserIds { get; set; }
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
@ -19,48 +17,39 @@ namespace ZR.Model.System.Dto
|
||||
/// </summary>
|
||||
public string FileType { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 存储文件名
|
||||
/// 空值 : true
|
||||
/// 存储文件名
|
||||
/// </summary>
|
||||
public string FileName { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 文件存储地址 eg:/uploads/20220202
|
||||
/// 空值 : true
|
||||
/// 文件存储地址 eg:/uploads/20220202
|
||||
/// </summary>
|
||||
public string FileUrl { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 仓库位置 eg:/uploads
|
||||
/// 空值 : true
|
||||
/// 仓库位置 eg:/uploads
|
||||
/// </summary>
|
||||
public string StorePath { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 文件大小
|
||||
/// 空值 : true
|
||||
/// 文件大小
|
||||
/// </summary>
|
||||
public string FileSize { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 文件扩展名
|
||||
/// 空值 : true
|
||||
/// 文件扩展名
|
||||
/// </summary>
|
||||
public string FileExt { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 创建人
|
||||
/// 空值 : true
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
public string Create_by { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 上传时间
|
||||
/// 空值 : true
|
||||
/// 上传时间
|
||||
/// </summary>
|
||||
public DateTime? Create_time { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 存储类型
|
||||
/// 空值 : true
|
||||
/// 存储类型
|
||||
/// </summary>
|
||||
public int? StoreType { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 访问路径
|
||||
/// 空值 : true
|
||||
/// 访问路径
|
||||
/// </summary>
|
||||
public string AccessUrl { get; set; }
|
||||
|
||||
|
||||
@ -1,13 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using ZR.Model.System;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class SysLogininfoDto : SysBase
|
||||
{
|
||||
public int pageNum { get; set; }
|
||||
public int PageNum { get; set; }
|
||||
/// <summary>
|
||||
/// IP 地址
|
||||
/// </summary>
|
||||
|
||||
@ -1,9 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
using ZR.Model.Models;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@ -1,11 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using ZR.Model.System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class SysRoleDto: SysBase
|
||||
public class SysRoleDto : SysBase
|
||||
{
|
||||
public long RoleId { get; set; }
|
||||
/// <summary>
|
||||
|
||||
@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using ZR.Model.System;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class SysUserDto
|
||||
{
|
||||
@ -14,7 +9,7 @@ namespace ZR.Model.System.Dto
|
||||
public string Remark { get; set; }
|
||||
public string Phonenumber { get; set; }
|
||||
/// <summary>
|
||||
/// '用户性别(0男 1女 2未知)',
|
||||
/// 用户性别(0男 1女 2未知)
|
||||
/// </summary>
|
||||
public int Sex { get; set; }
|
||||
}
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
|
||||
@ -1,16 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class TasksQueryDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 描述 : 查询字符串
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 查询字符串
|
||||
/// </summary>
|
||||
[Display(Name = "查询字符串")]
|
||||
public string QueryText { get; set; }
|
||||
@ -24,102 +20,76 @@ namespace ZR.Model.System.Dto
|
||||
public class TasksCreateDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 描述 : 任务id
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 任务id
|
||||
/// </summary>
|
||||
[Display(Name = "任务id")]
|
||||
//[Required(ErrorMessage = "任务不能为空")]
|
||||
public string ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 任务名称
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 任务名称
|
||||
/// </summary>
|
||||
[Display(Name = "任务名称")]
|
||||
[Required(ErrorMessage = "任务名称不能为空")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 任务分组
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 任务分组
|
||||
/// </summary>
|
||||
[Display(Name = "任务分组")]
|
||||
[Required(ErrorMessage = "任务分组不能为空")]
|
||||
public string JobGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 运行时间表达式
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 运行时间表达式
|
||||
/// </summary>
|
||||
[Display(Name = "运行时间表达式")]
|
||||
public string Cron { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 程序集名称
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 程序集名称
|
||||
/// </summary>
|
||||
[Display(Name = "程序集名称")]
|
||||
//[Required(ErrorMessage = "程序集名称不能为空")]
|
||||
public string AssemblyName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 任务所在类
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 任务所在类
|
||||
/// </summary>
|
||||
[Display(Name = "任务所在类")]
|
||||
//[Required(ErrorMessage = "任务所在类不能为空")]
|
||||
public string ClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 任务描述
|
||||
/// 空值 : True
|
||||
/// 默认 :
|
||||
/// 任务描述
|
||||
/// </summary>
|
||||
[Display(Name = "任务描述")]
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 开始时间
|
||||
/// 空值 : True
|
||||
/// 默认 :
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
[Display(Name = "开始时间")]
|
||||
public DateTime? BeginTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 结束时间
|
||||
/// 空值 : True
|
||||
/// 默认 :
|
||||
/// 结束时间
|
||||
/// </summary>
|
||||
[Display(Name = "结束时间")]
|
||||
public DateTime? EndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 触发器类型(0、simple 1、cron)
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 触发器类型(0、simple 1、cron)
|
||||
/// </summary>
|
||||
[Display(Name = "触发器类型(0、simple 1、cron)")]
|
||||
public int TriggerType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 执行间隔时间(单位:秒)
|
||||
/// 空值 : False
|
||||
/// 默认 : 0
|
||||
/// 执行间隔时间(单位:秒)
|
||||
/// </summary>
|
||||
[Display(Name = "执行间隔时间(单位:秒)")]
|
||||
public int IntervalSecond { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 传入参数
|
||||
/// 空值 : True
|
||||
/// 默认 :
|
||||
/// 传入参数
|
||||
/// </summary>
|
||||
[Display(Name = "传入参数")]
|
||||
public string JobParams { get; set; }
|
||||
@ -128,6 +98,9 @@ namespace ZR.Model.System.Dto
|
||||
/// 1、程序集任务 2、apiUrl任务 3、SQL语句
|
||||
/// </summary>
|
||||
public int TaskType { get; set; }
|
||||
/// <summary>
|
||||
/// SQL文本
|
||||
/// </summary>
|
||||
public string SqlText { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,17 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System.Dto
|
||||
{
|
||||
public class TasksLogQueryDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 描述 : 查询字符串
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 查询字符串
|
||||
/// </summary>
|
||||
//[Display(Name = "查询字符串")]
|
||||
public string Name{ get; set; }
|
||||
public string JobName { get; set; }
|
||||
public string JobId { get; set; }
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ZR.Model.System.Generate
|
||||
{
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System
|
||||
{
|
||||
|
||||
@ -1,46 +1,38 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System
|
||||
{
|
||||
/// <summary>
|
||||
/// 参数配置,数据实体对象
|
||||
///
|
||||
/// @author zhaorui
|
||||
/// @author mr.zhao
|
||||
/// @date 2021-09-29
|
||||
/// </summary>
|
||||
[SugarTable("sys_config")]
|
||||
[Tenant("0")]
|
||||
public class SysConfig: SysBase
|
||||
public class SysConfig : SysBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 描述 :
|
||||
/// 空值 :False
|
||||
/// 配置id
|
||||
/// </summary>
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int ConfigId { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 :
|
||||
/// 空值 :True
|
||||
/// 参数名称
|
||||
/// </summary>
|
||||
public string ConfigName { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 :
|
||||
/// 空值 :True
|
||||
/// 参数键名
|
||||
/// </summary>
|
||||
public string ConfigKey { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 :
|
||||
/// 空值 :True
|
||||
/// 参数键值
|
||||
/// </summary>
|
||||
public string ConfigValue { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 :
|
||||
/// 空值 :True
|
||||
/// 系统内置(Y是 N否)
|
||||
/// </summary>
|
||||
public string ConfigType { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System
|
||||
{
|
||||
@ -12,32 +10,50 @@ namespace ZR.Model.System
|
||||
[Tenant("0")]
|
||||
public class SysDept: SysBase
|
||||
{
|
||||
/** 部门ID */
|
||||
/// <summary>
|
||||
/// 部门ID
|
||||
/// </summary>
|
||||
[SqlSugar.SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public long DeptId { get; set; }
|
||||
|
||||
/** 父部门ID */
|
||||
/// <summary>
|
||||
/// 父部门ID
|
||||
/// </summary>
|
||||
public long ParentId { get; set; }
|
||||
|
||||
/** 祖级列表 */
|
||||
/// <summary>
|
||||
/// 祖级列表
|
||||
/// </summary>
|
||||
public string Ancestors { get; set; }
|
||||
|
||||
/** 部门名称 */
|
||||
/// <summary>
|
||||
/// 部门名称
|
||||
/// </summary>
|
||||
public string DeptName { get; set; }
|
||||
|
||||
/** 显示顺序 */
|
||||
/// <summary>
|
||||
/// 显示顺序
|
||||
/// </summary>
|
||||
public int OrderNum { get; set; }
|
||||
|
||||
/** 负责人 */
|
||||
/// <summary>
|
||||
/// 负责人
|
||||
/// </summary>
|
||||
public string Leader { get; set; }
|
||||
|
||||
/** 联系电话 */
|
||||
/// <summary>
|
||||
/// 联系电话
|
||||
/// </summary>
|
||||
public string Phone { get; set; }
|
||||
|
||||
/** 邮箱 */
|
||||
/// <summary>
|
||||
/// 邮箱
|
||||
/// </summary>
|
||||
public string Email { get; set; }
|
||||
|
||||
/** 部门状态:0正常,1停用 */
|
||||
/// <summary>
|
||||
/// 部门状态:0正常,1停用
|
||||
/// </summary>
|
||||
public string Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@ -46,10 +62,6 @@ namespace ZR.Model.System
|
||||
[SugarColumn(IsOnlyIgnoreInsert = true)]
|
||||
public string DelFlag { get; set; }
|
||||
|
||||
/** 父部门名称 */
|
||||
//[SugarColumn(IsIgnore = true)]
|
||||
//public string ParentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子菜单
|
||||
/// </summary>
|
||||
|
||||
@ -7,20 +7,44 @@ namespace ZR.Model.System
|
||||
/// </summary>
|
||||
[Tenant("0")]
|
||||
[SugarTable("sys_dict_data")]
|
||||
public class SysDictData: SysBase
|
||||
public class SysDictData : SysBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 字典主键
|
||||
/// 字典编码
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public long DictCode{ get; set; }
|
||||
public long DictCode { get; set; }
|
||||
/// <summary>
|
||||
/// 字典排序
|
||||
/// </summary>
|
||||
public int DictSort { get; set; }
|
||||
/// <summary>
|
||||
/// 字典标签
|
||||
/// </summary>
|
||||
public string DictLabel { get; set; }
|
||||
/// <summary>
|
||||
/// 字典键值
|
||||
/// </summary>
|
||||
public string DictValue { get; set; }
|
||||
/// <summary>
|
||||
/// 字典类型
|
||||
/// </summary>
|
||||
public string DictType { get; set; }
|
||||
/// <summary>
|
||||
/// 样式属性(其他样式扩展)
|
||||
/// </summary>
|
||||
public string CssClass { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 表格回显样式
|
||||
/// </summary>
|
||||
public string ListClass { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 是否默认(Y是 N否)
|
||||
/// </summary>
|
||||
public string IsDefault { get; set; }
|
||||
/// <summary>
|
||||
/// 状态(0正常 1停用)
|
||||
/// </summary>
|
||||
public string Status { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -9,8 +9,7 @@ namespace ZR.Model.System
|
||||
public class SysFile
|
||||
{
|
||||
/// <summary>
|
||||
/// 描述 : 自增id
|
||||
/// 空值 : false
|
||||
/// 自增id
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
@ -24,48 +23,39 @@ namespace ZR.Model.System
|
||||
/// </summary>
|
||||
public string FileType { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 存储文件名
|
||||
/// 空值 : true
|
||||
/// 存储文件名
|
||||
/// </summary>
|
||||
public string FileName { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 文件存储地址 eg:/uploads/20220202
|
||||
/// 空值 : true
|
||||
/// 文件存储地址 eg:/uploads/20220202
|
||||
/// </summary>
|
||||
public string FileUrl { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 仓库位置 eg:/uploads
|
||||
/// 空值 : true
|
||||
/// 仓库位置 eg:/uploads
|
||||
/// </summary>
|
||||
public string StorePath { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 文件大小
|
||||
/// 空值 : true
|
||||
/// 文件大小
|
||||
/// </summary>
|
||||
public string FileSize { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 文件扩展名
|
||||
/// 空值 : true
|
||||
/// 文件扩展名
|
||||
/// </summary>
|
||||
public string FileExt { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 创建人
|
||||
/// 空值 : true
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
public string Create_by { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 上传时间
|
||||
/// 空值 : true
|
||||
/// 上传时间
|
||||
/// </summary>
|
||||
public DateTime? Create_time { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 存储类型
|
||||
/// 空值 : true
|
||||
/// 存储类型
|
||||
/// </summary>
|
||||
public int? StoreType { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 访问路径
|
||||
/// 空值 : true
|
||||
/// 访问路径
|
||||
/// </summary>
|
||||
public string AccessUrl { get; set; }
|
||||
|
||||
|
||||
@ -10,7 +10,6 @@ namespace ZR.Model.System
|
||||
[Tenant("0")]
|
||||
public class SysLogininfor
|
||||
{
|
||||
//[Key]
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public long InfoId { get; set; }
|
||||
|
||||
@ -39,8 +38,9 @@ namespace ZR.Model.System
|
||||
/// </summary>
|
||||
public string Browser { get; set; }
|
||||
|
||||
/** 操作系统 */
|
||||
//@Excel(name = "操作系统")
|
||||
/// <summary>
|
||||
/// 操作系统
|
||||
/// </summary>
|
||||
public string Os { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -13,7 +13,6 @@ namespace ZR.Model.System
|
||||
/// <summary>
|
||||
/// 菜单ID
|
||||
/// </summary>
|
||||
//[Key]//非自动增长主键时使用ExplicitKey
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public long MenuId { get; set; }
|
||||
/// <summary>
|
||||
|
||||
@ -13,32 +13,27 @@ namespace ZR.Model.System
|
||||
public class SysNotice : SysBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 描述 : 公告ID
|
||||
/// 空值 : true
|
||||
/// 公告ID
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "notice_id")]
|
||||
public int NoticeId { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 公告标题
|
||||
/// 空值 : true
|
||||
/// 公告标题
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "notice_title")]
|
||||
public string NoticeTitle { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 公告类型 (1通知 2公告)
|
||||
/// 空值 : true
|
||||
/// 公告类型 (1通知 2公告)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "notice_type")]
|
||||
public string NoticeType { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 公告内容
|
||||
/// 空值 : true
|
||||
/// 公告内容
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "notice_content")]
|
||||
public string NoticeContent { get; set; }
|
||||
/// <summary>
|
||||
/// 描述 : 公告状态 (0正常 1关闭)
|
||||
/// 空值 : true
|
||||
/// 公告状态 (0正常 1关闭)
|
||||
/// </summary>
|
||||
public string Status { get; set; }
|
||||
}
|
||||
|
||||
@ -42,40 +42,52 @@ namespace ZR.Model.System
|
||||
[DisplayName("请求方式")]
|
||||
public string RequestMethod { get; set; }
|
||||
|
||||
/** 操作类别(0其它 1后台用户 2手机端用户) */
|
||||
/// <summary>
|
||||
/// 操作类别(0其它 1后台用户 2手机端用户)
|
||||
/// </summary>
|
||||
//@Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户")
|
||||
[DisplayName("操作类别")]
|
||||
public int OperatorType { get; set; }
|
||||
|
||||
/** 操作人员 */
|
||||
/// <summary>
|
||||
/// 操作人员
|
||||
/// </summary>
|
||||
[DisplayName("操作人员")]
|
||||
public string OperName { get; set; }
|
||||
|
||||
/** 部门名称 */
|
||||
//[DisplayName("部门名称")]
|
||||
//public string DeptName { get; set; }
|
||||
|
||||
/** 请求url */
|
||||
/// <summary>
|
||||
/// 请求url
|
||||
/// </summary>
|
||||
[DisplayName("请求地址")]
|
||||
public string OperUrl { get; set; }
|
||||
|
||||
/** 操作地址 */
|
||||
/// <summary>
|
||||
/// 操作地址
|
||||
/// </summary>
|
||||
[DisplayName("操作地址")]
|
||||
public string OperIp { get; set; }
|
||||
|
||||
/** 操作地点 */
|
||||
/// <summary>
|
||||
/// 操作地点
|
||||
/// </summary>
|
||||
[DisplayName("操作地点")]
|
||||
public string OperLocation { get; set; }
|
||||
|
||||
/** 请求参数 */
|
||||
/// <summary>
|
||||
/// 请求参数
|
||||
/// </summary>
|
||||
[DisplayName("请求参数")]
|
||||
public string OperParam { get; set; }
|
||||
|
||||
/** 返回参数 */
|
||||
/// <summary>
|
||||
/// 返回参数
|
||||
/// </summary>
|
||||
[DisplayName("返回结果")]
|
||||
public string JsonResult { get; set; }
|
||||
|
||||
/** 操作状态(0正常 1异常) */
|
||||
/// <summary>
|
||||
/// 操作状态(0正常 1异常)
|
||||
/// </summary>
|
||||
[DisplayName("状态")]
|
||||
public int Status { get; set; }
|
||||
|
||||
|
||||
@ -1,8 +1,4 @@
|
||||
using Newtonsoft.Json;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using SqlSugar;
|
||||
|
||||
namespace ZR.Model.System
|
||||
{
|
||||
|
||||
@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System
|
||||
namespace ZR.Model.System
|
||||
{
|
||||
[SqlSugar.SugarTable("sys_role_dept")]
|
||||
[SqlSugar.Tenant(0)]
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System
|
||||
{
|
||||
|
||||
@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using SqlSugar;
|
||||
using SqlSugar;
|
||||
|
||||
namespace ZR.Model.System
|
||||
{
|
||||
|
||||
@ -17,9 +17,7 @@ namespace ZR.Model.System
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 任务id
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 任务id
|
||||
/// </summary>
|
||||
[Display(Name = "任务id")]
|
||||
//[JsonConverter(typeof(ValueToStringConverter))]
|
||||
@ -27,104 +25,82 @@ namespace ZR.Model.System
|
||||
public string ID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 任务名称
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 任务名称
|
||||
/// </summary>
|
||||
[Display(Name = "任务名称")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 任务分组
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 任务分组
|
||||
/// </summary>
|
||||
[Display(Name = "任务分组")]
|
||||
public string JobGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 运行时间表达式
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 运行时间表达式
|
||||
/// </summary>
|
||||
[Display(Name = "运行时间表达式")]
|
||||
public string Cron { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 程序集名称
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 程序集名称
|
||||
/// </summary>
|
||||
[Display(Name = "程序集名称")]
|
||||
public string AssemblyName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 任务所在类
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 任务所在类
|
||||
/// </summary>
|
||||
[Display(Name = "任务所在类")]
|
||||
public string ClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 任务描述
|
||||
/// 空值 : True
|
||||
/// 默认 :
|
||||
/// 任务描述
|
||||
/// </summary>
|
||||
[Display(Name = "任务描述")]
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 执行次数
|
||||
/// 空值 : False
|
||||
/// 默认 : 0
|
||||
/// 执行次数
|
||||
/// </summary>
|
||||
[Display(Name = "执行次数")]
|
||||
public int RunTimes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 开始时间
|
||||
/// 空值 : True
|
||||
/// 默认 :
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
[Display(Name = "开始时间")]
|
||||
public DateTime? BeginTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 结束时间
|
||||
/// 空值 : True
|
||||
/// 默认 :
|
||||
/// 结束时间
|
||||
/// </summary>
|
||||
[Display(Name = "结束时间")]
|
||||
public DateTime? EndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 触发器类型(0、simple 1、cron)
|
||||
/// 空值 : False
|
||||
/// 触发器类型(0、simple 1、cron)
|
||||
/// 默认 : 1
|
||||
/// </summary>
|
||||
[Display(Name = "触发器类型(0、simple 1、cron)")]
|
||||
public int TriggerType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 执行间隔时间(单位:秒)
|
||||
/// 空值 : False
|
||||
/// 执行间隔时间(单位:秒)
|
||||
/// 默认 : 0
|
||||
/// </summary>
|
||||
[Display(Name = "执行间隔时间(单位:秒)")]
|
||||
public int IntervalSecond { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 是否启动
|
||||
/// 空值 : False
|
||||
/// 是否启动
|
||||
/// 默认 : 0
|
||||
/// </summary>
|
||||
[Display(Name = "是否启动")]
|
||||
public bool IsStart { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 传入参数
|
||||
/// 空值 : True
|
||||
/// 传入参数
|
||||
/// 默认 :
|
||||
/// </summary>
|
||||
[Display(Name = "传入参数")]
|
||||
@ -135,9 +111,7 @@ namespace ZR.Model.System
|
||||
public string Create_by { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述 : 创建时间
|
||||
/// 空值 : False
|
||||
/// 默认 :
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
//[Display(Name = "创建时间")]
|
||||
[SugarColumn(IsOnlyIgnoreUpdate = true)]//设置后修改不会有此字段
|
||||
|
||||
@ -3,7 +3,6 @@ using Newtonsoft.Json;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System
|
||||
{
|
||||
@ -19,16 +18,19 @@ namespace ZR.Model.System
|
||||
/// </summary>
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||
public long UserId { get; set; }
|
||||
//[Duplication]//校验模板类该列数据是否重复
|
||||
/// <summary>
|
||||
/// 登录用户名
|
||||
/// </summary>
|
||||
public string UserName { get; set; }
|
||||
/// <summary>
|
||||
/// 用户昵称
|
||||
/// </summary>
|
||||
public string NickName { get; set; }
|
||||
/// <summary>
|
||||
/// '用户类型(00系统用户)',
|
||||
/// 用户类型(00系统用户)
|
||||
/// </summary>
|
||||
//[JsonProperty(propertyName: "userType")]
|
||||
//public string User_type { get; set; } = "";
|
||||
[SugarColumn(IsOnlyIgnoreInsert = true)]
|
||||
[ExcelIgnore]
|
||||
public string UserType { get; set; } = "";
|
||||
//[SugarColumn(IsOnlyIgnoreInsert = true)]
|
||||
public string Avatar { get; set; }
|
||||
public string Email { get; set; }
|
||||
|
||||
|
||||
@ -1,11 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using SqlSugar;
|
||||
using SqlSugar;
|
||||
|
||||
namespace ZR.Model.System
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 用户岗位
|
||||
/// </summary>
|
||||
|
||||
@ -1,21 +1,18 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户角色关联表 用户N-1 角色
|
||||
/// </summary>
|
||||
[SqlSugar.SugarTable("sys_user_role")]
|
||||
[SugarTable("sys_user_role")]
|
||||
[Tenant("0")]
|
||||
public class SysUserRole
|
||||
{
|
||||
[SqlSugar.SugarColumn(ColumnName = "user_id", IsPrimaryKey = true)]
|
||||
[SugarColumn(ColumnName = "user_id", IsPrimaryKey = true)]
|
||||
public long UserId { get; set; }
|
||||
|
||||
[SqlSugar.SugarColumn(ColumnName = "role_id", IsPrimaryKey = true)]
|
||||
[SugarColumn(ColumnName = "role_id", IsPrimaryKey = true)]
|
||||
public long RoleId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System
|
||||
namespace ZR.Model.System
|
||||
{
|
||||
public class UserConstants
|
||||
{
|
||||
|
||||
@ -1,13 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZR.Model.System.Vo
|
||||
{
|
||||
public class LangVo
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,7 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ZR.Model.System.Vo
|
||||
{
|
||||
|
||||
@ -1,8 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using ZR.Model.System;
|
||||
|
||||
namespace ZR.Model.System.Vo
|
||||
{
|
||||
|
||||
@ -6,7 +6,7 @@ namespace ZR.Service.System.IService
|
||||
/// <summary>
|
||||
/// 参数配置service接口
|
||||
///
|
||||
/// @author zhaorui
|
||||
/// @author mr.zhao
|
||||
/// @date 2021-09-29
|
||||
/// </summary>
|
||||
public interface ISysConfigService : IBaseService<SysConfig>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user