优化接口、仓储层
This commit is contained in:
@@ -7,7 +7,7 @@ using ZR.Model.System;
|
||||
|
||||
namespace ZR.Service.System.IService
|
||||
{
|
||||
public interface IArticleCategoryService //: IBaseService<ArticleCategory>
|
||||
public interface IArticleCategoryService : IBaseService<ArticleCategory>
|
||||
{
|
||||
List<ArticleCategory> BuildCategoryTree(List<ArticleCategory> categories);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ using ZR.Model.System;
|
||||
|
||||
namespace ZR.Service.System.IService
|
||||
{
|
||||
public interface IArticleService //: IBaseService<Article>
|
||||
public interface IArticleService : IBaseService<Article>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -6,15 +6,15 @@ using ZR.Model.Vo.System;
|
||||
|
||||
namespace ZR.Service.System.IService
|
||||
{
|
||||
public interface ISysDeptService //: IBaseService<SysDept>
|
||||
public interface ISysDeptService : IBaseService<SysDept>
|
||||
{
|
||||
public List<SysDept> GetSysDepts(SysDept dept);
|
||||
public string CheckDeptNameUnique(SysDept dept);
|
||||
public int InsertDept(SysDept dept);
|
||||
public int UpdateDept(SysDept dept);
|
||||
public void UpdateDeptChildren(long deptId, string newAncestors, string oldAncestors);
|
||||
public List<SysDept> GetChildrenDepts(List<SysDept> depts, long deptId);
|
||||
public List<SysDept> BuildDeptTree(List<SysDept> depts);
|
||||
public List<TreeSelectVo> BuildDeptTreeSelect(List<SysDept> depts);
|
||||
List<SysDept> GetSysDepts(SysDept dept);
|
||||
string CheckDeptNameUnique(SysDept dept);
|
||||
int InsertDept(SysDept dept);
|
||||
int UpdateDept(SysDept dept);
|
||||
void UpdateDeptChildren(long deptId, string newAncestors, string oldAncestors);
|
||||
List<SysDept> GetChildrenDepts(List<SysDept> depts, long deptId);
|
||||
List<SysDept> BuildDeptTree(List<SysDept> depts);
|
||||
List<TreeSelectVo> BuildDeptTreeSelect(List<SysDept> depts);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace ZR.Service.System.IService
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public interface ISysDictService : IBaseService<SysDictType>
|
||||
public interface ISysDictService
|
||||
{
|
||||
public List<SysDictType> SelectDictTypeList(SysDictType dictType, Model.PagerInfo pager);
|
||||
|
||||
@@ -39,5 +39,12 @@ namespace ZR.Service.System.IService
|
||||
/// <param name="sysDictType"></param>
|
||||
/// <returns></returns>
|
||||
public int UpdateDictType(SysDictType sysDictType);
|
||||
|
||||
/// <summary>
|
||||
/// 获取字典信息
|
||||
/// </summary>
|
||||
/// <param name="dictId"></param>
|
||||
/// <returns></returns>
|
||||
SysDictType GetInfo(long dictId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ using ZR.Repository;
|
||||
|
||||
namespace ZR.Service.System.IService
|
||||
{
|
||||
public interface ISysPostService: IBaseRepository<SysPost>
|
||||
public interface ISysPostService : IBaseService<SysPost>
|
||||
{
|
||||
string CheckPostNameUnique(SysPost sysPost);
|
||||
string CheckPostCodeUnique(SysPost sysPost);
|
||||
|
||||
@@ -3,7 +3,7 @@ using ZR.Repository;
|
||||
|
||||
namespace ZR.Service.System.IService
|
||||
{
|
||||
public interface ISysTasksLogService: IBaseRepository<SysTasksLog>
|
||||
public interface ISysTasksLogService : IBaseService<SysTasksLog>
|
||||
{
|
||||
/// <summary>
|
||||
/// 记录任务执行日志
|
||||
|
||||
@@ -7,8 +7,8 @@ using ZR.Model.System;
|
||||
|
||||
namespace ZR.Service.System.IService
|
||||
{
|
||||
public interface ISysTasksQzService
|
||||
public interface ISysTasksQzService : IBaseService<SysTasksQz>
|
||||
{
|
||||
SysTasksQz GetId(object id);
|
||||
//SysTasksQz GetId(object id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user