ServiceCore下Model命名空间转换

This commit is contained in:
YUN-PC5\user 2023-09-25 16:47:37 +08:00
parent cacb525b3a
commit 4199736bc7
145 changed files with 283 additions and 212 deletions

View File

@ -8,6 +8,7 @@ using ZR.Model.System;
using ZR.Service.IService; using ZR.Service.IService;
using ZR.Service.System; using ZR.Service.System;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
namespace ZR.Admin.WebApi.Controllers namespace ZR.Admin.WebApi.Controllers
{ {

View File

@ -1,9 +1,10 @@
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using ZR.Admin.WebApi.Extensions; using ZR.Admin.WebApi.Extensions;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model.Dto;
using ZR.Model.System; using ZR.Model.System;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers namespace ZR.Admin.WebApi.Controllers
{ {

View File

@ -3,8 +3,9 @@ using SqlSugar;
using ZR.Admin.WebApi.Extensions; using ZR.Admin.WebApi.Extensions;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers namespace ZR.Admin.WebApi.Controllers
{ {

View File

@ -6,9 +6,9 @@ using ZR.CodeGenerator;
using ZR.CodeGenerator.Model; using ZR.CodeGenerator.Model;
using ZR.CodeGenerator.Service; using ZR.CodeGenerator.Service;
using ZR.Model; using ZR.Model;
using ZR.Model.System.Dto;
using ZR.Model.System.Generate;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model.Dto;
using ZR.ServiceCore.Model.Generate;
namespace ZR.Admin.WebApi.Controllers namespace ZR.Admin.WebApi.Controllers
{ {

View File

@ -3,9 +3,9 @@ using Microsoft.AspNetCore.Mvc;
using MiniExcelLibs; using MiniExcelLibs;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model; using ZR.Model;
using ZR.Model.Dto;
using ZR.Model.Models;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers namespace ZR.Admin.WebApi.Controllers
{ {

View File

@ -4,8 +4,9 @@ using SqlSugar;
using ZR.Admin.WebApi.Extensions; using ZR.Admin.WebApi.Extensions;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers namespace ZR.Admin.WebApi.Controllers
{ {

View File

@ -2,8 +2,9 @@
using System.Collections; using System.Collections;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers.System namespace ZR.Admin.WebApi.Controllers.System
{ {

View File

@ -2,8 +2,9 @@
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model; using ZR.Model;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers.System namespace ZR.Admin.WebApi.Controllers.System
{ {
@ -65,14 +66,14 @@ namespace ZR.Admin.WebApi.Controllers.System
/// <returns></returns> /// <returns></returns>
[AllowAnonymous] [AllowAnonymous]
[HttpPost("types")] [HttpPost("types")]
public IActionResult DictTypes([FromBody] List<SysdictDataDto> dto) public IActionResult DictTypes([FromBody] List<SysDictDataDto> dto)
{ {
var list = SysDictDataService.SelectDictDataByTypes(dto.Select(f => f.DictType).ToArray()); var list = SysDictDataService.SelectDictDataByTypes(dto.Select(f => f.DictType).ToArray());
List<SysdictDataDto> dataVos = new(); List<SysDictDataDto> dataVos = new();
foreach (var dic in dto) foreach (var dic in dto)
{ {
SysdictDataDto vo = new() SysDictDataDto vo = new()
{ {
DictType = dic.DictType, DictType = dic.DictType,
ColumnName = dic.ColumnName, ColumnName = dic.ColumnName,

View File

@ -3,8 +3,9 @@ using ZR.Admin.WebApi.Extensions;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model; using ZR.Model;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers.System namespace ZR.Admin.WebApi.Controllers.System
{ {

View File

@ -0,0 +1,10 @@
using ZR.Admin.WebApi.Filters;
namespace ZR.Admin.WebApi.Controllers.System;
[Verify]
[Route("system/field")]
public class SysFieldController : BaseController
{
}

View File

@ -2,8 +2,9 @@ using Microsoft.AspNetCore.Mvc;
using SqlSugar; using SqlSugar;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers namespace ZR.Admin.WebApi.Controllers
{ {

View File

@ -4,9 +4,10 @@ using Microsoft.Extensions.Options;
using NETCore.Encrypt; using NETCore.Encrypt;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System; using ZR.Service.System;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers.System namespace ZR.Admin.WebApi.Controllers.System
{ {

View File

@ -1,8 +1,9 @@
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers.System namespace ZR.Admin.WebApi.Controllers.System
{ {

View File

@ -4,8 +4,9 @@ using SqlSugar;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model; using ZR.Model;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
using ZR.ServiceCore.Signalr; using ZR.ServiceCore.Signalr;
namespace ZR.Admin.WebApi.Controllers.System namespace ZR.Admin.WebApi.Controllers.System

View File

@ -4,6 +4,7 @@ using ZR.Admin.WebApi.Filters;
using ZR.Model; using ZR.Model;
using ZR.Model.System; using ZR.Model.System;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
namespace ZR.Admin.WebApi.Controllers.System namespace ZR.Admin.WebApi.Controllers.System
{ {

View File

@ -3,8 +3,9 @@ using System.Net.Sockets;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers.System namespace ZR.Admin.WebApi.Controllers.System
{ {

View File

@ -2,8 +2,9 @@
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model; using ZR.Model;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers.System namespace ZR.Admin.WebApi.Controllers.System
{ {

View File

@ -4,8 +4,9 @@ using SqlSugar;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model; using ZR.Model;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers.System namespace ZR.Admin.WebApi.Controllers.System
{ {

View File

@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers.System namespace ZR.Admin.WebApi.Controllers.System
{ {

View File

@ -3,8 +3,9 @@ using Quartz;
using SqlSugar; using SqlSugar;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
using ZR.Tasks; using ZR.Tasks;
namespace ZR.Admin.WebApi.Controllers namespace ZR.Admin.WebApi.Controllers

View File

@ -3,8 +3,9 @@ using SqlSugar;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model; using ZR.Model;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers.System namespace ZR.Admin.WebApi.Controllers.System
{ {

View File

@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model.Dto;
//创建时间2023-08-17 //创建时间2023-08-17
namespace ZR.Admin.WebApi.Controllers namespace ZR.Admin.WebApi.Controllers

View File

@ -5,6 +5,7 @@ using ZR.Admin.WebApi.Filters;
using ZR.Model; using ZR.Model;
using ZR.Model.System; using ZR.Model.System;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
namespace ZR.Admin.WebApi.Controllers.monitor namespace ZR.Admin.WebApi.Controllers.monitor
{ {

View File

@ -1,8 +1,8 @@
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using ZR.Admin.WebApi.Extensions; using ZR.Admin.WebApi.Extensions;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model.System.Dto;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Admin.WebApi.Controllers.monitor namespace ZR.Admin.WebApi.Controllers.monitor
{ {

View File

@ -2,7 +2,7 @@
using Microsoft.AspNetCore.SignalR; using Microsoft.AspNetCore.SignalR;
using ZR.Admin.WebApi.Filters; using ZR.Admin.WebApi.Filters;
using ZR.Model; using ZR.Model;
using ZR.Model.System.Dto; using ZR.ServiceCore.Model.Dto;
using ZR.ServiceCore.Signalr; using ZR.ServiceCore.Signalr;
namespace ZR.Admin.WebApi.Controllers.monitor namespace ZR.Admin.WebApi.Controllers.monitor

View File

@ -1,6 +1,7 @@
using Quartz.Spi; using Quartz.Spi;
using SqlSugar.IOC; using SqlSugar.IOC;
using ZR.Model.System; using ZR.Model.System;
using ZR.ServiceCore.Model;
using ZR.Tasks; using ZR.Tasks;
namespace ZR.Admin.WebApi.Extensions namespace ZR.Admin.WebApi.Extensions

View File

@ -7,4 +7,5 @@ global using Infrastructure.Model;
global using Mapster; global using Mapster;
global using Infrastructure.Extensions; global using Infrastructure.Extensions;
global using Infrastructure.Controllers; global using Infrastructure.Controllers;
global using ZR.ServiceCore.Middleware; global using ZR.ServiceCore.Middleware;
global using Microsoft.AspNetCore.Mvc;

View File

@ -1,3 +1,4 @@
using System.Reflection;
using AspNetCoreRateLimit; using AspNetCoreRateLimit;
using Infrastructure.Converter; using Infrastructure.Converter;
using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.DataProtection;
@ -165,4 +166,23 @@ using (var serviceScope = app.Services.CreateScope())
await ipPolicyStore.SetAsync(optionsAccessor.Value.IpPolicyPrefix, pol); await ipPolicyStore.SetAsync(optionsAccessor.Value.IpPolicyPrefix, pol);
} }
var serviceCoreModel = AppDomain.CurrentDomain
.GetAssemblies()
.First(it => it.FullName.Contains("ZR.ServiceCore"))
.ExportedTypes
.Where(p => p.FullName.StartsWith("ZR.ServiceCore.Model"))
.ToList();
// var geoEntityTypes = currentAssembly[0].ExportedTypes
// .Where(p => p.FullName.StartsWith("ZR.ServiceCore.Model"))
// .ToList();
var model = AppDomain.CurrentDomain
.GetAssemblies()
.First(it => it.FullName.Contains("ZR.Model"))
.ExportedTypes
.ToList();
foreach (var assembly in serviceCoreModel)
{
}
app.Run(); app.Run();

View File

@ -1,7 +1,6 @@
using System; using System;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using ZR.Model.System.Generate;
namespace ZR.CodeGenerator namespace ZR.CodeGenerator
{ {

View File

@ -9,7 +9,7 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using ZR.CodeGenerator.Model; using ZR.CodeGenerator.Model;
using ZR.Model.System.Generate; using ZR.ServiceCore.Model.Generate;
namespace ZR.CodeGenerator namespace ZR.CodeGenerator
{ {

View File

@ -1,5 +1,5 @@
using System.Collections.Generic; using System.Collections.Generic;
using ZR.Model.System.Generate; using ZR.ServiceCore.Model.Generate;
namespace ZR.CodeGenerator.Model namespace ZR.CodeGenerator.Model
{ {

View File

@ -5,6 +5,7 @@ using ZR.Model.System;
using ZR.Repository; using ZR.Repository;
using ZR.Service.IService; using ZR.Service.IService;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
namespace ZR.Service namespace ZR.Service
{ {

View File

@ -1,4 +1,5 @@
using ZR.Model.System; using ZR.Model.System;
using ZR.ServiceCore.Model;
namespace ZR.Service.IService namespace ZR.Service.IService
{ {

View File

@ -5,6 +5,7 @@ using Microsoft.AspNetCore.Mvc.Filters;
using ZR.Model.System; using ZR.Model.System;
using ZR.Service.System; using ZR.Service.System;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
namespace ZR.ServiceCore.Middleware namespace ZR.ServiceCore.Middleware
{ {

View File

@ -9,6 +9,7 @@ using Microsoft.AspNetCore.Mvc.Filters;
using NLog; using NLog;
using ZR.Model.System; using ZR.Model.System;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
namespace ZR.ServiceCore.Middleware namespace ZR.ServiceCore.Middleware
{ {

View File

@ -9,6 +9,7 @@ using System.Text.Encodings.Web;
using ZR.Common; using ZR.Common;
using ZR.Model.System; using ZR.Model.System;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using textJson = System.Text.Json; using textJson = System.Text.Json;
namespace ZR.ServiceCore.Middleware namespace ZR.ServiceCore.Middleware

View File

@ -1,4 +1,6 @@
namespace ZR.Model.System using ZR.Model.System;
namespace ZR.ServiceCore.Model
{ {
/// <summary> /// <summary>
/// 文章表 /// 文章表

View File

@ -1,9 +1,4 @@
using Newtonsoft.Json; namespace ZR.ServiceCore.Model
using SqlSugar;
using System;
using System.Collections.Generic;
namespace ZR.Model.System
{ {
/// <summary> /// <summary>
/// 文章目录 /// 文章目录

View File

@ -1,9 +1,6 @@
using Newtonsoft.Json;
using SqlSugar;
using System;
using System.ComponentModel; using System.ComponentModel;
namespace ZR.Model.Models namespace ZR.ServiceCore.Model
{ {
/// <summary> /// <summary>
/// 多语言配置,数据实体对象 /// 多语言配置,数据实体对象

View File

@ -1,7 +1,7 @@
using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using ZR.Model;
namespace ZR.Model.Dto namespace ZR.ServiceCore.Model.Dto
{ {
/// <summary> /// <summary>
/// 文章目录输入对象 /// 文章目录输入对象

View File

@ -1,7 +1,7 @@
using System; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations; using ZR.Model;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
public class ArticleQueryDto : PagerInfo public class ArticleQueryDto : PagerInfo
{ {

View File

@ -1,7 +1,6 @@
using System; using ZR.Model;
using System.Collections.Generic;
namespace ZR.Model.Dto namespace ZR.ServiceCore.Model.Dto
{ {
/// <summary> /// <summary>
/// 多语言配置输入对象 /// 多语言配置输入对象

View File

@ -1,7 +1,6 @@
using System.Collections.Generic; using ZR.ServiceCore.Model.Generate;
using ZR.Model.System.Generate;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
public class GenTableDto public class GenTableDto
{ {

View File

@ -1,4 +1,4 @@
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
public class LockUserDto public class LockUserDto
{ {

View File

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
public class LoginBodyDto public class LoginBodyDto
{ {

View File

@ -1,9 +1,7 @@
using MiniExcelLibs.Attributes; using System.ComponentModel.DataAnnotations;
using System; using MiniExcelLibs.Attributes;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
public class MenuDto public class MenuDto
{ {

View File

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
public class RegisterDto public class RegisterDto
{ {

View File

@ -1,8 +1,8 @@
using MiniExcelLibs.Attributes; using MiniExcelLibs.Attributes;
using SqlSugar.DbConvert;
using ZR.Model.System.Enums; using ZR.Model.System.Enums;
using ZR.ServiceCore.Model.Enums;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
public class RoleMenuExportDto public class RoleMenuExportDto
{ {

View File

@ -1,7 +1,7 @@
using System.Collections.Generic; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations; using ZR.Model;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
public class RoleUserQueryDto : PagerInfo public class RoleUserQueryDto : PagerInfo
{ {

View File

@ -1,4 +1,4 @@
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
public class ScanDto public class ScanDto
{ {

View File

@ -1,7 +1,8 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using MiniExcelLibs.Attributes; using MiniExcelLibs.Attributes;
using ZR.Model;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
/// <summary> /// <summary>
/// 数据差异日志查询对象 /// 数据差异日志查询对象

View File

@ -1,6 +1,6 @@
using System; using ZR.Model;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
/// <summary> /// <summary>
/// 参数配置输入对象模型 /// 参数配置输入对象模型

View File

@ -1,4 +1,6 @@
namespace ZR.Model.System.Dto using ZR.Model;
namespace ZR.ServiceCore.Model.Dto
{ {
public class SysDeptQueryDto : PagerInfo public class SysDeptQueryDto : PagerInfo
{ {

View File

@ -1,8 +1,6 @@
using System.Collections.Generic; namespace ZR.ServiceCore.Model.Dto
namespace ZR.Model.System.Dto
{ {
public class SysdictDataDto public class SysDictDataDto
{ {
public string DictType { get; set; } public string DictType { get; set; }
public string ColumnName { get; set; } public string ColumnName { get; set; }

View File

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
public class SysDictTypeDto public class SysDictTypeDto
{ {

View File

@ -1,6 +1,6 @@
using System; using ZR.Model;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
/// <summary> /// <summary>
/// 文件存储输入对象 /// 文件存储输入对象

View File

@ -1,4 +1,4 @@
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
public class SysLogininfoDto : SysBase public class SysLogininfoDto : SysBase
{ {

View File

@ -1,6 +1,7 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using ZR.Model;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
/// <summary> /// <summary>
/// 通知公告表输入对象 /// 通知公告表输入对象

View File

@ -1,6 +1,6 @@
using System; using ZR.Model;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
public class SysOperLogQueryDto : PagerInfo public class SysOperLogQueryDto : PagerInfo
{ {

View File

@ -1,6 +1,4 @@
using System.Collections.Generic; namespace ZR.ServiceCore.Model.Dto
namespace ZR.Model.System.Dto
{ {
public class SysRoleDto : SysBase public class SysRoleDto : SysBase
{ {

View File

@ -1,7 +1,4 @@
using System; namespace ZR.ServiceCore.Model.Dto
using System.Collections.Generic;
namespace ZR.Model.System.Dto
{ {
public class SysRoleMenuDto public class SysRoleMenuDto
{ {

View File

@ -1,6 +1,4 @@
using System; namespace ZR.ServiceCore.Model.Dto
namespace ZR.Model.System.Dto
{ {
public class SysUserDto public class SysUserDto
{ {

View File

@ -1,7 +1,7 @@
using System; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations; using ZR.Model;
namespace ZR.Model.System.Dto namespace ZR.ServiceCore.Model.Dto
{ {
public class TasksQueryDto : PagerInfo public class TasksQueryDto : PagerInfo
{ {

View File

@ -1,6 +1,4 @@
using System; namespace ZR.ServiceCore.Model.Dto
namespace ZR.Model.System.Dto
{ {
public class TasksLogQueryDto public class TasksLogQueryDto
{ {

View File

@ -1,6 +1,6 @@
using System.ComponentModel; using System.ComponentModel;
namespace ZR.Model.System.Enums namespace ZR.ServiceCore.Model.Enums
{ {
/// <summary> /// <summary>
/// 菜单状态0正常 1停用 /// 菜单状态0正常 1停用

View File

@ -1,7 +1,4 @@
using SqlSugar; namespace ZR.ServiceCore.Model.Generate
using System.Collections.Generic;
namespace ZR.Model.System.Generate
{ {
/// <summary> /// <summary>
/// 代码生成表 /// 代码生成表

View File

@ -1,8 +1,4 @@
using SqlSugar; namespace ZR.ServiceCore.Model.Generate
using System;
using System.Linq;
namespace ZR.Model.System.Generate
{ {
/// <summary> /// <summary>
/// 代码生成表字段 /// 代码生成表字段

View File

@ -1,4 +1,4 @@
namespace ZR.Model.System namespace ZR.ServiceCore.Model
{ {
[SugarTable("SqlDiffLog", "数据差异日志")] [SugarTable("SqlDiffLog", "数据差异日志")]
[Tenant("0")] [Tenant("0")]

View File

@ -1,9 +1,6 @@
using MiniExcelLibs.Attributes; using MiniExcelLibs.Attributes;
using Newtonsoft.Json;
using SqlSugar;
using System;
namespace ZR.Model.System namespace ZR.ServiceCore.Model
{ {
//[EpplusTable(PrintHeaders = true, AutofitColumns = true, AutoCalculate = true, ShowTotal = true)] //[EpplusTable(PrintHeaders = true, AutofitColumns = true, AutoCalculate = true, ShowTotal = true)]
public class SysBase public class SysBase

View File

@ -1,6 +1,6 @@
using SqlSugar; using ZR.Model.System;
namespace ZR.Model.System namespace ZR.ServiceCore.Model
{ {
/// <summary> /// <summary>
/// 参数配置,数据实体对象 /// 参数配置,数据实体对象

View File

@ -1,4 +1,6 @@
namespace ZR.Model.System using ZR.Model.System;
namespace ZR.ServiceCore.Model
{ {
/// <summary> /// <summary>
/// 部门表 /// 部门表

View File

@ -1,6 +1,6 @@
using SqlSugar; using ZR.Model.System;
namespace ZR.Model.System namespace ZR.ServiceCore.Model
{ {
/// <summary> /// <summary>
/// 字典数据表 /// 字典数据表

View File

@ -1,6 +1,6 @@
using SqlSugar; using ZR.Model.System;
namespace ZR.Model.System namespace ZR.ServiceCore.Model
{ {
/// <summary> /// <summary>
/// 字典类型表 /// 字典类型表

View File

@ -0,0 +1,14 @@
namespace ZR.ServiceCore.Model;
[SugarTable("sys_field")]
[Tenant("0")]
public class SysField
{
[JsonConverter(typeof(ValueToStringConverter))]
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
public string FieldName { get; set; }
public string FullName { get; set; }
}

View File

@ -1,8 +1,4 @@
using Newtonsoft.Json; namespace ZR.ServiceCore.Model
using SqlSugar;
using System;
namespace ZR.Model.System
{ {
[Tenant("0")] [Tenant("0")]
[SugarTable("sys_file", "文件存储表")] [SugarTable("sys_file", "文件存储表")]

View File

@ -1,7 +1,4 @@
using SqlSugar; namespace ZR.ServiceCore.Model
using System;
namespace ZR.Model.System
{ {
/// <summary> /// <summary>
/// sys_logininfor 表 /// sys_logininfor 表

View File

@ -1,7 +1,6 @@
using SqlSugar; using ZR.Model.System;
using System.Collections.Generic;
namespace ZR.Model.System namespace ZR.ServiceCore.Model
{ {
/// <summary> /// <summary>
/// Sys_menu表 /// Sys_menu表

View File

@ -1,6 +1,6 @@
using SqlSugar; using ZR.Model.System;
namespace ZR.Model.System namespace ZR.ServiceCore.Model
{ {
/// <summary> /// <summary>
/// 通知公告表 /// 通知公告表

View File

@ -1,9 +1,6 @@
using MiniExcelLibs.Attributes; using MiniExcelLibs.Attributes;
using SqlSugar;
using System;
using System.ComponentModel;
namespace ZR.Model.System namespace ZR.ServiceCore.Model
{ {
[SugarTable("sys_oper_log", "操作日志表")] [SugarTable("sys_oper_log", "操作日志表")]
[Tenant("0")] [Tenant("0")]

View File

@ -1,6 +1,6 @@
using SqlSugar; using ZR.Model.System;
namespace ZR.Model.System namespace ZR.ServiceCore.Model
{ {
[SugarTable("sys_post", "岗位表")] [SugarTable("sys_post", "岗位表")]
[Tenant("0")] [Tenant("0")]

View File

@ -1,6 +1,6 @@
using SqlSugar; using ZR.Model.System;
namespace ZR.Model.System namespace ZR.ServiceCore.Model
{ {
/// <summary> /// <summary>
/// 角色表 sys_role /// 角色表 sys_role

View File

@ -1,6 +1,4 @@
using SqlSugar; namespace ZR.ServiceCore.Model
namespace ZR.Model.System
{ {
[SugarTable("sys_role_dept", "角色部门")] [SugarTable("sys_role_dept", "角色部门")]
[Tenant(0)] [Tenant(0)]

View File

@ -0,0 +1,10 @@
namespace ZR.ServiceCore.Model;
[SugarTable("sys_role_field")]
[Tenant("0")]
public class SysRoleField
{
public long FieldId { get; set; }
public long RoleId { get; set; }
}

View File

@ -1,7 +1,4 @@
using Newtonsoft.Json; namespace ZR.ServiceCore.Model
using SqlSugar;
namespace ZR.Model.System
{ {
/// <summary> /// <summary>
/// 角色菜单 /// 角色菜单

View File

@ -1,8 +1,7 @@
using SqlSugar; using System.ComponentModel.DataAnnotations;
using System; using ZR.Model.System;
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.System namespace ZR.ServiceCore.Model
{ {
///<summary> ///<summary>
///计划任务 ///计划任务

View File

@ -1,7 +1,4 @@
using SqlSugar; namespace ZR.ServiceCore.Model
using System;
namespace ZR.Model.System
{ {
/// <summary> /// <summary>
/// 任务日志 /// 任务日志

View File

@ -1,10 +1,7 @@
using MiniExcelLibs.Attributes; using MiniExcelLibs.Attributes;
using Newtonsoft.Json; using ZR.Model.System;
using SqlSugar;
using System;
using System.Collections.Generic;
namespace ZR.Model.System namespace ZR.ServiceCore.Model
{ {
/// <summary> /// <summary>
/// 用户表 /// 用户表

View File

@ -1,6 +1,4 @@
using SqlSugar; namespace ZR.ServiceCore.Model
namespace ZR.Model.System
{ {
/// <summary> /// <summary>
/// 用户岗位 /// 用户岗位

View File

@ -1,6 +1,4 @@
using SqlSugar; namespace ZR.ServiceCore.Model
namespace ZR.Model.System
{ {
/// <summary> /// <summary>
/// 用户角色关联表 用户N-1 角色 /// 用户角色关联表 用户N-1 角色

View File

@ -1,4 +1,4 @@
namespace ZR.Model.System namespace ZR.ServiceCore.Model
{ {
public class UserConstants public class UserConstants
{ {

View File

@ -1,7 +1,4 @@
using Newtonsoft.Json; namespace ZR.ServiceCore.Model.Vo
using System.Collections.Generic;
namespace ZR.Model.System.Vo
{ {
/// <summary> /// <summary>
/// 路由展示 /// 路由展示

View File

@ -1,4 +1,4 @@
namespace ZR.Model.System.Vo namespace ZR.ServiceCore.Model.Vo
{ {
/// <summary> /// <summary>
/// Treeselect树结构实体类 /// Treeselect树结构实体类

View File

@ -2,10 +2,11 @@
using SqlSugar; using SqlSugar;
using System.Collections.Generic; using System.Collections.Generic;
using ZR.Model; using ZR.Model;
using ZR.Model.Dto;
using ZR.Model.System; using ZR.Model.System;
using ZR.Repository; using ZR.Repository;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Service.System namespace ZR.Service.System
{ {

View File

@ -3,9 +3,10 @@ using SqlSugar;
using System; using System;
using ZR.Model; using ZR.Model;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto;
using ZR.Repository; using ZR.Repository;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Service.System namespace ZR.Service.System
{ {

View File

@ -3,10 +3,10 @@ using SqlSugar;
using System; using System;
using System.Linq; using System.Linq;
using ZR.Model; using ZR.Model;
using ZR.Model.Dto;
using ZR.Model.Models;
using ZR.Repository; using ZR.Repository;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Service.System namespace ZR.Service.System
{ {

View File

@ -5,8 +5,8 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using ZR.Model; using ZR.Model;
using ZR.Model.System.Generate;
using ZR.Service.System.IService; using ZR.Service.System.IService;
using ZR.ServiceCore.Model.Generate;
namespace ZR.Service.System namespace ZR.Service.System
{ {

View File

@ -1,7 +1,8 @@
using System.Collections.Generic; using System.Collections.Generic;
using ZR.Model; using ZR.Model;
using ZR.Model.Dto;
using ZR.Model.System; using ZR.Model.System;
using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Service.System.IService namespace ZR.Service.System.IService
{ {

View File

@ -1,6 +1,7 @@
using ZR.Model; using ZR.Model;
using ZR.Model.System; using ZR.Model.System;
using ZR.Model.System.Dto; using ZR.ServiceCore.Model;
using ZR.ServiceCore.Model.Dto;
namespace ZR.Service.System.IService namespace ZR.Service.System.IService
{ {

View File

@ -1,6 +1,6 @@
using ZR.Model; using ZR.Model;
using ZR.Model.Dto; using ZR.ServiceCore.Model;
using ZR.Model.Models; using ZR.ServiceCore.Model.Dto;
namespace ZR.Service.System.IService namespace ZR.Service.System.IService
{ {

View File

@ -1,7 +1,7 @@
using SqlSugar; using SqlSugar;
using System.Collections.Generic; using System.Collections.Generic;
using ZR.Model; using ZR.Model;
using ZR.Model.System.Generate; using ZR.ServiceCore.Model.Generate;
namespace ZR.Service.System.IService namespace ZR.Service.System.IService
{ {

Some files were not shown because too many files have changed in this diff Show More