添加项目文件。
This commit is contained in:
27
system/Tnb.Systems.Interfaces/Common/IFileService.cs
Normal file
27
system/Tnb.Systems.Interfaces/Common/IFileService.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using OnceMi.AspNetCore.OSS;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.Common;
|
||||
|
||||
/// <summary>
|
||||
/// 通用控制器.
|
||||
/// </summary>
|
||||
public interface IFileService
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 根据类型获取文件存储路径.
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <returns></returns>
|
||||
string GetPathByType(string type);
|
||||
|
||||
/// <summary>
|
||||
/// 根据存储类型上传文件.
|
||||
/// </summary>
|
||||
/// <param name="uploadFilePath">上传文件地址.</param>
|
||||
/// <param name="directoryPath">保存文件夹.</param>
|
||||
/// <param name="fileName">新文件名.</param>
|
||||
/// <returns></returns>
|
||||
Task UploadFileByType(string uploadFilePath, string directoryPath, string fileName);
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
using JNPF.Systems.Entitys.Permission;
|
||||
using JNPF.Systems.Entitys.System;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.Permission;
|
||||
|
||||
/// <summary>
|
||||
/// 业务契约:操作权限.
|
||||
/// </summary>
|
||||
public interface IAuthorizeService
|
||||
{
|
||||
/// <summary>
|
||||
/// 当前用户模块权限.
|
||||
/// </summary>
|
||||
/// <param name="userId">用户ID.</param>
|
||||
/// <param name="isAdmin">是否超管.</param>
|
||||
/// <param name="roleIds">用户角色Ids.</param>
|
||||
/// <param name="systemIds">当前系统Ids .</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ModuleEntity>> GetCurrentUserModuleAuthorize(string userId, bool isAdmin, string[] roleIds, string[] systemIds);
|
||||
|
||||
/// <summary>
|
||||
/// 当前用户模块按钮权限.
|
||||
/// </summary>
|
||||
/// <param name="userId">用户ID.</param>
|
||||
/// <param name="isAdmin">是否超管.</param>
|
||||
/// <param name="roleIds">用户角色Ids.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ModuleButtonEntity>> GetCurrentUserButtonAuthorize(string userId, bool isAdmin, string[] roleIds);
|
||||
|
||||
/// <summary>
|
||||
/// 当前用户模块列权限.
|
||||
/// </summary>
|
||||
/// <param name="userId">用户ID.</param>
|
||||
/// <param name="isAdmin">是否超管.</param>
|
||||
/// <param name="roleIds">用户角色Ids.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ModuleColumnEntity>> GetCurrentUserColumnAuthorize(string userId, bool isAdmin, string[] roleIds);
|
||||
|
||||
/// <summary>
|
||||
/// 当前用户模块权限资源.
|
||||
/// </summary>
|
||||
/// <param name="userId">用户ID.</param>
|
||||
/// <param name="isAdmin">是否超管.</param>
|
||||
/// <param name="roleIds">用户角色Ids.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ModuleDataAuthorizeSchemeEntity>> GetCurrentUserResourceAuthorize(string userId, bool isAdmin, string[] roleIds);
|
||||
|
||||
/// <summary>
|
||||
/// 当前用户模块表单权限.
|
||||
/// </summary>
|
||||
/// <param name="userId">用户ID.</param>
|
||||
/// <param name="isAdmin">是否超管.</param>
|
||||
/// <param name="roleIds">用户角色Ids.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<ModuleFormEntity>> GetCurrentUserFormAuthorize(string userId, bool isAdmin, string[] roleIds);
|
||||
|
||||
/// <summary>
|
||||
/// 获取权限项ids.
|
||||
/// </summary>
|
||||
/// <param name="roleId">角色id.</param>
|
||||
/// <param name="itemType">项类型.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<string>> GetAuthorizeItemIds(string roleId, string itemType);
|
||||
|
||||
/// <summary>
|
||||
/// 是否存在权限资源.
|
||||
/// </summary>
|
||||
/// <param name="ids"></param>
|
||||
/// <returns></returns>
|
||||
Task<bool> GetIsExistModuleDataAuthorizeScheme(string[] ids);
|
||||
|
||||
/// <summary>
|
||||
/// 获取权限列表.
|
||||
/// </summary>
|
||||
/// <param name="objectId">对象主键.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<AuthorizeEntity>> GetAuthorizeListByObjectId(string objectId);
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using JNPF.Systems.Entitys.Permission;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.Permission;
|
||||
|
||||
/// <summary>
|
||||
/// 业务契约:部门管理.
|
||||
/// </summary>
|
||||
public interface IDepartmentService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取部门列表.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<OrganizeEntity>> GetListAsync();
|
||||
|
||||
/// <summary>
|
||||
/// 部门名称.
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
string GetDepName(string id);
|
||||
|
||||
/// <summary>
|
||||
/// 公司名称.
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
string GetComName(string id);
|
||||
|
||||
/// <summary>
|
||||
/// 公司结构树.
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
string GetOrganizeNameTree(string id);
|
||||
|
||||
/// <summary>
|
||||
/// 公司id.
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
string GetCompanyId(string id);
|
||||
|
||||
/// <summary>
|
||||
/// 获取公司下所有部门.
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<OrganizeEntity>> GetCompanyAllDep(string id);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using JNPF.Common.Models.User;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.Permission;
|
||||
|
||||
/// <summary>
|
||||
/// 分级管理
|
||||
/// 版 本:V3.2.5
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021.09.27.
|
||||
/// </summary>
|
||||
public interface IOrganizeAdministratorService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取用户数据范围.
|
||||
/// </summary>
|
||||
/// <param name="userId"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<UserDataScopeModel>> GetUserDataScopeModel(string userId);
|
||||
}
|
||||
82
system/Tnb.Systems.Interfaces/Permission/IOrganizeService.cs
Normal file
82
system/Tnb.Systems.Interfaces/Permission/IOrganizeService.cs
Normal file
@@ -0,0 +1,82 @@
|
||||
using JNPF.Systems.Entitys.Dto.Organize;
|
||||
using JNPF.Systems.Entitys.Permission;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.Permission;
|
||||
|
||||
/// <summary>
|
||||
/// 机构管理
|
||||
/// 组织架构:公司》部门》岗位》用户
|
||||
/// 版 本:V3.0.0
|
||||
/// 版 权:拓通智联科技有限公司(http://www.tuotong-tech.com)
|
||||
/// 日 期:2021.06.07.
|
||||
/// </summary>
|
||||
public interface IOrganizeService
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否机构主管.
|
||||
/// </summary>
|
||||
/// <param name="userId">用户ID.</param>
|
||||
/// <returns></returns>
|
||||
Task<bool> GetIsManagerByUserId(string userId);
|
||||
|
||||
/// <summary>
|
||||
/// 获取机构列表
|
||||
/// 提供给其他服务使用.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<OrganizeEntity>> GetListAsync();
|
||||
|
||||
/// <summary>
|
||||
/// 获取公司列表
|
||||
/// 提供给其他服务使用.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<OrganizeEntity>> GetCompanyListAsync();
|
||||
|
||||
/// <summary>
|
||||
/// 下属机构.
|
||||
/// </summary>
|
||||
/// <param name="organizeId">机构ID.</param>
|
||||
/// <param name="isAdmin">是否管理员.</param>
|
||||
/// <returns></returns>
|
||||
Task<string[]> GetSubsidiary(string organizeId, bool isAdmin);
|
||||
|
||||
/// <summary>
|
||||
/// 下属机构.
|
||||
/// </summary>
|
||||
/// <param name="organizeId">组织ID.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<string>> GetSubsidiary(string organizeId);
|
||||
|
||||
/// <summary>
|
||||
/// 根据节点Id获取所有子节点Id集合,包含自己.
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<string>> GetChildIdListWithSelfById(string id);
|
||||
|
||||
/// <summary>
|
||||
/// 获取机构成员列表.
|
||||
/// </summary>
|
||||
/// <param name="organizeId">机构ID</param>
|
||||
/// <returns></returns>
|
||||
Task<List<OrganizeMemberListOutput>> GetOrganizeMemberList(string organizeId);
|
||||
|
||||
/// <summary>
|
||||
/// 部门信息.
|
||||
/// </summary>
|
||||
Task<OrganizeEntity> GetInfoById(string Id);
|
||||
|
||||
/// <summary>
|
||||
/// 处理组织树 名称.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
List<OrganizeEntity> GetOrgListTreeName();
|
||||
|
||||
/// <summary>
|
||||
/// 获取组织下所有子组织.
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<string>> GetChildOrgId(string id);
|
||||
}
|
||||
29
system/Tnb.Systems.Interfaces/Permission/IPositionService.cs
Normal file
29
system/Tnb.Systems.Interfaces/Permission/IPositionService.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using JNPF.Systems.Entitys.Permission;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.Permission;
|
||||
|
||||
/// <summary>
|
||||
/// 业务契约:岗位管理.
|
||||
/// </summary>
|
||||
public interface IPositionService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取信息.
|
||||
/// </summary>
|
||||
/// <param name="id">主键值.</param>
|
||||
/// <returns></returns>
|
||||
Task<PositionEntity> GetInfoById(string id);
|
||||
|
||||
/// <summary>
|
||||
/// 获取岗位列表.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<PositionEntity>> GetListAsync();
|
||||
|
||||
/// <summary>
|
||||
/// 获取名称.
|
||||
/// </summary>
|
||||
/// <param name="ids"></param>
|
||||
/// <returns></returns>
|
||||
string GetName(string ids);
|
||||
}
|
||||
8
system/Tnb.Systems.Interfaces/Permission/IRoleService.cs
Normal file
8
system/Tnb.Systems.Interfaces/Permission/IRoleService.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace JNPF.Systems.Interfaces.Permission;
|
||||
|
||||
/// <summary>
|
||||
/// 业务契约:角色信息.
|
||||
/// </summary>
|
||||
public interface IRoleService
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using JNPF.Extras.CollectiveOAuth.Models;
|
||||
using JNPF.Extras.CollectiveOAuth.Request;
|
||||
using JNPF.Systems.Entitys.Dto.Socials;
|
||||
using JNPF.Systems.Entitys.Model.Permission.SocialsUser;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.Permission;
|
||||
|
||||
/// <summary>
|
||||
/// 业务契约:第三方登录.
|
||||
/// </summary>
|
||||
public interface ISocialsUserService
|
||||
{
|
||||
AuthCallbackNew SetAuthCallback(string code, string state);
|
||||
|
||||
IAuthRequest GetAuthRequest(string authSource, string userId, bool isLogin, string ticket, string tenantId);
|
||||
|
||||
List<SocialsUserListOutput> GetLoginList(string ticket);
|
||||
|
||||
Task<string> Binding([FromQuery] SocialsUserInputModel model);
|
||||
|
||||
Task<dynamic> GetSocialsUserInfo([FromQuery] SocialsUserInputModel model);
|
||||
|
||||
Task<SocialsUserInfo> GetUserInfo(string source, string uuid, string socialName);
|
||||
|
||||
string GetSocialUuid(AuthResponse res);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace JNPF.Systems.Interfaces.Permission;
|
||||
|
||||
/// <summary>
|
||||
/// 业务契约:用户分组管理.
|
||||
/// </summary>
|
||||
public interface IUserGroupService
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
using JNPF.Common.Filter;
|
||||
using JNPF.Systems.Entitys.Dto.User;
|
||||
using JNPF.Systems.Entitys.Permission;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.Permission;
|
||||
|
||||
/// <summary>
|
||||
/// 业务契约:用户关系.
|
||||
/// </summary>
|
||||
public interface IUserRelationService
|
||||
{
|
||||
/// <summary>
|
||||
/// 删除.
|
||||
/// </summary>
|
||||
/// <param name="id">用户ID.</param>
|
||||
/// <returns></returns>
|
||||
Task Delete(string id);
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户关系.
|
||||
/// </summary>
|
||||
/// <param name="userId">用户ID.</param>
|
||||
/// <param name="ids">对象ID组.</param>
|
||||
/// <param name="relationType">关系类型(岗位-Position;角色-Role;组织-Organize;分组-Group;).</param>
|
||||
/// <returns></returns>
|
||||
List<UserRelationEntity> CreateUserRelation(string userId, string ids, string relationType);
|
||||
|
||||
/// <summary>
|
||||
/// 创建用户关系.
|
||||
/// </summary>
|
||||
/// <param name="input">新增数据.</param>
|
||||
/// <returns></returns>
|
||||
Task Create(List<UserRelationEntity> input);
|
||||
|
||||
/// <summary>
|
||||
/// 根据用户主键获取列表.
|
||||
/// </summary>
|
||||
/// <param name="userId">用户主键.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<UserRelationEntity>> GetListByUserId(string userId);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户.
|
||||
/// </summary>
|
||||
/// <param name="type">关系类型.</param>
|
||||
/// <param name="objId">对象ID.</param>
|
||||
/// <returns></returns>
|
||||
List<string> GetUserId(string type, string objId);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户.
|
||||
/// </summary>
|
||||
/// <param name="type">关系类型.</param>
|
||||
/// <param name="objId">对象ID.</param>
|
||||
/// <returns></returns>
|
||||
List<string> GetUserId(List<string> objId, string type = null);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户(分页).
|
||||
/// </summary>
|
||||
/// <param name="userIds">用户ID组.</param>
|
||||
/// <param name="objIds">对象ID组.</param>
|
||||
/// <param name="pageInputBase">分页参数.</param>
|
||||
/// <returns></returns>
|
||||
dynamic GetUserPage(UserConditionInput input, ref bool hasCandidates);
|
||||
|
||||
/// <summary>
|
||||
/// 新用户组件获取人员.
|
||||
/// </summary>
|
||||
/// <param name="Ids"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<string>> GetUserId(List<string> Ids);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace JNPF.Systems.Interfaces.Permission;
|
||||
|
||||
/// <summary>
|
||||
/// 业务契约:个人资料管理.
|
||||
/// </summary>
|
||||
public interface IUsersCurrentService
|
||||
{
|
||||
}
|
||||
89
system/Tnb.Systems.Interfaces/Permission/IUsersService.cs
Normal file
89
system/Tnb.Systems.Interfaces/Permission/IUsersService.cs
Normal file
@@ -0,0 +1,89 @@
|
||||
using JNPF.Common.Models.User;
|
||||
using JNPF.Systems.Entitys.Permission;
|
||||
using System.Linq.Expressions;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.Permission;
|
||||
|
||||
/// <summary>
|
||||
/// 业务契约:用户信息.
|
||||
/// </summary>
|
||||
public interface IUsersService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取用户信息 根据用户ID.
|
||||
/// </summary>
|
||||
/// <param name="userId">用户ID.</param>
|
||||
/// <returns></returns>
|
||||
UserEntity GetInfoByUserId(string userId);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户信息 根据用户ID.
|
||||
/// </summary>
|
||||
/// <param name="userId">用户ID.</param>
|
||||
/// <returns></returns>
|
||||
Task<UserEntity> GetInfoByUserIdAsync(string userId);
|
||||
|
||||
/// <summary>
|
||||
/// 根据用户账户.
|
||||
/// </summary>
|
||||
/// <param name="account">用户账户.</param>
|
||||
/// <returns></returns>
|
||||
Task<UserEntity> GetInfoByAccount(string account);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户信息 根据登录信息.
|
||||
/// </summary>
|
||||
/// <param name="account">用户账户.</param>
|
||||
/// <param name="password">用户密码.</param>
|
||||
/// <returns></returns>
|
||||
Task<UserEntity> GetInfoByLogin(string account, string password);
|
||||
|
||||
/// <summary>
|
||||
/// 根据用户姓名获取用户ID.
|
||||
/// </summary>
|
||||
/// <param name="realName">用户姓名.</param>
|
||||
/// <returns></returns>
|
||||
Task<string> GetUserIdByRealName(string realName);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户名.
|
||||
/// </summary>
|
||||
/// <param name="userId">用户id.</param>
|
||||
/// <param name="isAccount">是否显示账号.</param>
|
||||
/// <returns></returns>
|
||||
Task<string> GetUserName(string userId, bool isAccount = true);
|
||||
|
||||
/// <summary>
|
||||
/// 获取用户列表.
|
||||
/// </summary>
|
||||
Task<List<UserEntity>> GetList();
|
||||
|
||||
/// <summary>
|
||||
/// 用户岗位.
|
||||
/// </summary>
|
||||
/// <param name="PositionIds"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<PositionInfoModel>> GetPosition(string PositionIds);
|
||||
|
||||
/// <summary>
|
||||
/// 表达式获取用户.
|
||||
/// </summary>
|
||||
/// <param name="expression">where 条件表达式.</param>
|
||||
/// <returns></returns>
|
||||
Task<UserEntity> GetUserByExp(Expression<Func<UserEntity, bool>> expression);
|
||||
|
||||
/// <summary>
|
||||
/// 表达式获取用户列表.
|
||||
/// </summary>
|
||||
/// <param name="expression">where 条件表达式.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<UserEntity>> GetUserListByExp(Expression<Func<UserEntity, bool>> expression);
|
||||
|
||||
/// <summary>
|
||||
/// 表达式获取指定字段的用户列表.
|
||||
/// </summary>
|
||||
/// <param name="expression">where 条件表达式.</param>
|
||||
/// <param name="select">select 选择字段表达式.</param>
|
||||
/// <returns></returns>
|
||||
Task<List<UserEntity>> GetUserListByExp(Expression<Func<UserEntity, bool>> expression, Expression<Func<UserEntity, UserEntity>> select);
|
||||
}
|
||||
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();
|
||||
}
|
||||
16
system/Tnb.Systems.Interfaces/Tnb.Systems.Interfaces.csproj
Normal file
16
system/Tnb.Systems.Interfaces/Tnb.Systems.Interfaces.csproj
Normal file
@@ -0,0 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Import Project="$(SolutionDir)\common.props" />
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<GenerateDocumentationFile>False</GenerateDocumentationFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\app\Tnb.Apps.Entitys\Tnb.Apps.Entitys.csproj" />
|
||||
<ProjectReference Include="..\Tnb.Systems.Entitys\Tnb.Systems.Entitys.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user