优化数据仓储

This commit is contained in:
不做码农
2022-03-19 08:04:08 +08:00
parent 3e6d2fdce1
commit 1c3cdb99e0
29 changed files with 86 additions and 699 deletions

View File

@@ -4,7 +4,7 @@ using ZR.Model.System.Generate;
namespace ZR.Service.System.IService
{
public interface IGenTableService: IBaseService<GenTable>
public interface IGenTableService : IBaseService<GenTable>
{
List<GenTable> SelectDbTableListByNamess(string[] tableNames);
@@ -19,8 +19,8 @@ namespace ZR.Service.System.IService
int UpdateGenTable(GenTable genTable);
}
public interface IGenTableColumnService: IBaseService<GenTableColumn>
{
public interface IGenTableColumnService : IBaseService<GenTableColumn>
{
int InsertGenTableColumn(List<GenTableColumn> tableColumn);
int DeleteGenTableColumn(long tableId);

View File

@@ -9,7 +9,7 @@ namespace ZR.Service.System
/// @author zhaorui
/// @date 2021-09-29
/// </summary>
public interface ISysConfigService: IBaseService<SysConfig>
public interface ISysConfigService : IBaseService<SysConfig>
{
SysConfig GetSysConfigByKey(string key);
}

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Text;
using ZR.Model.System;
using ZR.Model.Vo.System;
using ZR.Repository;
namespace ZR.Service.System.IService
{
@@ -19,7 +20,7 @@ namespace ZR.Service.System.IService
List<SysRoleDept> SelectRoleDeptByRoleId(long roleId);
List<long> SelectRoleDepts(long roleId);
int DeleteRoleDeptByRoleId(long roleId);
bool DeleteRoleDeptByRoleId(long roleId);
int InsertRoleDepts(SysRole role);
}
}

View File

@@ -10,5 +10,6 @@ namespace ZR.Service.System.IService
{
string CheckPostNameUnique(SysPost sysPost);
string CheckPostCodeUnique(SysPost sysPost);
List<SysPost> GetAll();
}
}

View File

@@ -10,6 +10,6 @@ namespace ZR.Service.System.IService
public List<long> GetUserPostsByUserId(long userId);
public string GetPostsStrByUserId(long userId);
int Delete(long userId);
bool Delete(long userId);
}
}

View File

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