添加项目文件。
This commit is contained in:
18
system/Tnb.Systems.Interfaces/System/IBillRullService.cs
Normal file
18
system/Tnb.Systems.Interfaces/System/IBillRullService.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 单据规则
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface IBillRullService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取流水号.
|
||||
/// </summary>
|
||||
/// <param name="enCode">流水编码.</param>
|
||||
/// <param name="isCache">是否缓存:每个用户会自动占用一个流水号,这个刷新页面也不会跳号.</param>
|
||||
/// <returns></returns>
|
||||
Task<string> GetBillNumber(string enCode, bool isCache = false);
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
using JNPF.Common.Dtos.VisualDev;
|
||||
using JNPF.Common.Models;
|
||||
using JNPF.Systems.Entitys.System;
|
||||
using System.Data;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 数据接口
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface IDataInterfaceService
|
||||
{
|
||||
/// <summary>
|
||||
/// 信息.
|
||||
/// </summary>
|
||||
/// <param name="id">主键id.</param>
|
||||
/// <returns></returns>
|
||||
Task<DataInterfaceEntity> GetInfo(string id);
|
||||
|
||||
/// <summary>
|
||||
/// sql接口查询.
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
Task<DataTable> GetData(DataInterfaceEntity entity);
|
||||
|
||||
/// <summary>
|
||||
/// 根据不同类型请求接口.
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="type">0 : 分页 1 :详情 ,其他 原始.</param>
|
||||
/// <param name="tenantId"></param>
|
||||
/// <param name="input"></param>
|
||||
/// <param name="dicParameters">字典参数.</param>
|
||||
/// <returns></returns>
|
||||
Task<object> GetResponseByType(string id, int type, string tenantId, VisualDevDataFieldDataListInput input = null, Dictionary<string, string> dicParameters = null);
|
||||
|
||||
/// <summary>
|
||||
/// 替换参数默认值.
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <param name="dic"></param>
|
||||
void ReplaceParameterValue(DataInterfaceEntity entity, Dictionary<string, string> dic);
|
||||
|
||||
/// <summary>
|
||||
/// 处理远端数据.
|
||||
/// </summary>
|
||||
/// <param name="propsUrl">远端数据ID.</param>
|
||||
/// <param name="value">指定选项标签为选项对象的某个属性值.</param>
|
||||
/// <param name="label">指定选项的值为选项对象的某个属性值.</param>
|
||||
/// <param name="children">指定选项的子选项为选项对象的某个属性值.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<StaticDataModel>> GetDynamicList(string propsUrl, string value, string label, string children);
|
||||
}
|
||||
26
system/Tnb.Systems.Interfaces/System/IDbLinkService.cs
Normal file
26
system/Tnb.Systems.Interfaces/System/IDbLinkService.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using JNPF.Systems.Entitys.Dto.DbLink;
|
||||
using JNPF.Systems.Entitys.System;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 数据连接
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface IDbLinkService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<DbLinkListOutput>> GetList();
|
||||
|
||||
/// <summary>
|
||||
/// 信息.
|
||||
/// </summary>
|
||||
/// <param name="id">主键值.</param>
|
||||
/// <returns></returns>
|
||||
Task<DbLinkEntity> GetInfo(string id);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using JNPF.Systems.Entitys.System;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 字典数据
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface IDictionaryDataService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取数据字典列表.
|
||||
/// </summary>
|
||||
/// <param name="dictionaryTypeId">分类id或编码.</param>
|
||||
/// <param name="enabledMark">是否过滤启用状态.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<DictionaryDataEntity>> GetList(string dictionaryTypeId, bool enabledMark = true);
|
||||
|
||||
/// <summary>
|
||||
/// 获取按钮信息.
|
||||
/// </summary>
|
||||
/// <param name="id">主键id.</param>
|
||||
/// <returns></returns>
|
||||
Task<DictionaryDataEntity> GetInfo(string id);
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using JNPF.Systems.Entitys.System;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 字典分类
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface IDictionaryTypeService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<DictionaryTypeEntity>> GetList();
|
||||
|
||||
/// <summary>
|
||||
/// 信息.
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
Task<DictionaryTypeEntity> GetInfo(string id);
|
||||
|
||||
/// <summary>
|
||||
/// 递归获取所有分类.
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="typeList"></param>
|
||||
/// <returns></returns>
|
||||
Task GetListAllById(string id, List<DictionaryTypeEntity> typeList);
|
||||
|
||||
/// <summary>
|
||||
/// 是否存在上级.
|
||||
/// </summary>
|
||||
/// <param name="entities"></param>
|
||||
/// <returns></returns>
|
||||
bool IsExistParent(List<DictionaryTypeEntity> entities);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using JNPF.Systems.Entitys.System;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 业务契约:消息模板.
|
||||
/// </summary>
|
||||
public interface IMessageTemplateService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取信息.
|
||||
/// </summary>
|
||||
/// <param name="id">主键值.</param>
|
||||
/// <returns></returns>
|
||||
Task<MessageTemplateEntity> GetInfo(string id);
|
||||
|
||||
/// <summary>
|
||||
/// 发送通知.
|
||||
/// </summary>
|
||||
/// <param name="typeList">推送方式</param>
|
||||
/// <param name="messageTemplateEntity">标题</param>
|
||||
/// <param name="userList">接收用户</param>
|
||||
/// <param name="parameters"></param>
|
||||
/// <param name="bodyDic"></param>
|
||||
/// <returns></returns>
|
||||
Task SendNodeMessage(List<string> typeList, MessageTemplateEntity messageTemplateEntity, List<string> userList, Dictionary<string, string> parameters, Dictionary<string, object> bodyDic);
|
||||
}
|
||||
31
system/Tnb.Systems.Interfaces/System/IModuleButtonService.cs
Normal file
31
system/Tnb.Systems.Interfaces/System/IModuleButtonService.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using JNPF.Systems.Entitys.System;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 功能按钮
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface IModuleButtonService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表.
|
||||
/// </summary>
|
||||
/// <param name="moduleId">功能id.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ModuleButtonEntity>> GetList(string? moduleId = default);
|
||||
|
||||
/// <summary>
|
||||
/// 添加按钮.
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
Task<int> Create(ModuleButtonEntity entity);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户功能按钮.
|
||||
/// </summary>
|
||||
Task<dynamic> GetUserModuleButtonList();
|
||||
}
|
||||
25
system/Tnb.Systems.Interfaces/System/IModuleColumnService.cs
Normal file
25
system/Tnb.Systems.Interfaces/System/IModuleColumnService.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using JNPF.Systems.Entitys.Dto.ModuleColumn;
|
||||
using JNPF.Systems.Entitys.System;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 功能列表
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface IModuleColumnService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表.
|
||||
/// </summary>
|
||||
/// <param name="moduleId">功能id.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ModuleColumnEntity>> GetList(string? moduleId = default);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户功能列表.
|
||||
/// </summary>
|
||||
Task<dynamic> GetUserModuleColumnList();
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using JNPF.Systems.Entitys.System;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 数据权限方案
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface IModuleDataAuthorizeSchemeService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表.
|
||||
/// </summary>
|
||||
/// <param name="moduleId">功能id.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ModuleDataAuthorizeSchemeEntity>> GetList(string? moduleId = default);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户数据权限方案.
|
||||
/// </summary>
|
||||
Task<dynamic> GetResourceList();
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using JNPF.Systems.Entitys.System;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 数据权限
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface IModuleDataAuthorizeService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表.
|
||||
/// </summary>
|
||||
/// <param name="moduleId">功能id.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ModuleDataAuthorizeEntity>> GetList(string? moduleId = default);
|
||||
}
|
||||
24
system/Tnb.Systems.Interfaces/System/IModuleFormService.cs
Normal file
24
system/Tnb.Systems.Interfaces/System/IModuleFormService.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using JNPF.Systems.Entitys.System;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 表单权限
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface IModuleFormService
|
||||
{
|
||||
/// <summary>
|
||||
/// 表单权限列表.
|
||||
/// </summary>
|
||||
/// <param name="moduleId">功能id.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ModuleFormEntity>> GetList(string? moduleId = default);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户功能表单.
|
||||
/// </summary>
|
||||
Task<dynamic> GetUserModuleFormList();
|
||||
}
|
||||
46
system/Tnb.Systems.Interfaces/System/IModuleService.cs
Normal file
46
system/Tnb.Systems.Interfaces/System/IModuleService.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using JNPF.Systems.Entitys.Dto.Module;
|
||||
using JNPF.Systems.Entitys.System;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 菜单管理
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface IModuleService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<ModuleEntity>> GetList(string systemId);
|
||||
|
||||
/// <summary>
|
||||
/// 信息.
|
||||
/// </summary>
|
||||
/// <param name="id">主键值.</param>
|
||||
/// <returns></returns>
|
||||
Task<ModuleEntity> GetInfo(string id);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户菜单树.
|
||||
/// </summary>
|
||||
/// <param name="type">登录类型.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ModuleNodeOutput>> GetUserTreeModuleList(string type);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户树形模块功能列表根据 SystemId.
|
||||
/// </summary>
|
||||
/// <param name="type">登录类型.</param>
|
||||
/// <param name="systemId">SystemId.</param>
|
||||
Task<List<ModuleNodeOutput>> GetUserTreeModuleListBySystemId(string type, string systemId);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户菜单列表.
|
||||
/// </summary>
|
||||
/// <param name="type">登录类型.</param>
|
||||
Task<dynamic> GetUserModueList(string type);
|
||||
}
|
||||
26
system/Tnb.Systems.Interfaces/System/ISmsTemplateService.cs
Normal file
26
system/Tnb.Systems.Interfaces/System/ISmsTemplateService.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using JNPF.Systems.Entitys.Dto.SysConfig;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 业务契约:短信模板.
|
||||
/// </summary>
|
||||
public interface ISmsTemplateService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取短信模板字段.
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<string>> GetSmsTemplateFields(string id);
|
||||
|
||||
/// <summary>
|
||||
/// 工作流发送短信.
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="sysconfig"></param>
|
||||
/// <param name="phoneNumbers"></param>
|
||||
/// <param name="parameters"></param>
|
||||
/// <returns></returns>
|
||||
Task FlowTaskSend(string id, SysConfigOutput sysconfig, List<string> phoneNumbers, Dictionary<string, string> parameters);
|
||||
}
|
||||
53
system/Tnb.Systems.Interfaces/System/ISynThirdInfoService.cs
Normal file
53
system/Tnb.Systems.Interfaces/System/ISynThirdInfoService.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using JNPF.Systems.Entitys.Dto.Organize;
|
||||
using JNPF.Systems.Entitys.Dto.SysConfig;
|
||||
using JNPF.Systems.Entitys.Permission;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 第三方同步
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface ISynThirdInfoService
|
||||
{
|
||||
/// <summary>
|
||||
/// 组织同步.
|
||||
/// </summary>
|
||||
/// <param name="thirdType"></param>
|
||||
/// <param name="dataType"></param>
|
||||
/// <param name="sysConfig"></param>
|
||||
/// <param name="orgList"></param>
|
||||
/// <returns></returns>
|
||||
Task SynDep(int thirdType, int dataType, SysConfigOutput sysConfig, List<OrganizeListOutput> orgList);
|
||||
|
||||
/// <summary>
|
||||
/// 用户同步.
|
||||
/// </summary>
|
||||
/// <param name="thirdType"></param>
|
||||
/// <param name="dataType"></param>
|
||||
/// <param name="sysConfig"></param>
|
||||
/// <param name="userList"></param>
|
||||
/// <returns></returns>
|
||||
Task SynUser(int thirdType, int dataType, SysConfigOutput sysConfig, List<UserEntity> userList);
|
||||
|
||||
/// <summary>
|
||||
/// 删除同步数据.
|
||||
/// </summary>
|
||||
/// <param name="thirdType"></param>
|
||||
/// <param name="dataType"></param>
|
||||
/// <param name="sysConfig"></param>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
Task DelSynData(int thirdType, int dataType, SysConfigOutput sysConfig, string id);
|
||||
|
||||
/// <summary>
|
||||
/// 根据系统主键获取第三方主键.
|
||||
/// </summary>
|
||||
/// <param name="ids">系统主键.</param>
|
||||
/// <param name="thirdType">第三方类型.</param>
|
||||
/// <param name="dataType">数据类型.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<string>> GetThirdIdList(List<string> ids, int thirdType, int dataType);
|
||||
}
|
||||
27
system/Tnb.Systems.Interfaces/System/ISysConfigService.cs
Normal file
27
system/Tnb.Systems.Interfaces/System/ISysConfigService.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using JNPF.Systems.Entitys.Dto.SysConfig;
|
||||
using JNPF.Systems.Entitys.System;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.System;
|
||||
|
||||
/// <summary>
|
||||
/// 系统配置
|
||||
/// 版 本:V3.2
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021-06-01.
|
||||
/// </summary>
|
||||
public interface ISysConfigService
|
||||
{
|
||||
/// <summary>
|
||||
/// 系统配置信息.
|
||||
/// </summary>
|
||||
/// <param name="category">分类</param>
|
||||
/// <param name="key">键</param>
|
||||
/// <returns></returns>
|
||||
Task<SysConfigEntity> GetInfo(string category, string key);
|
||||
|
||||
/// <summary>
|
||||
/// 获取系统配置.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<SysConfigOutput> GetInfo();
|
||||
}
|
||||
Reference in New Issue
Block a user