You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.4 KiB

3 years ago
using ce.autofac.extension;
using learun.util;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace learun.iapplication
{
/// <summary>
/// 版 本 EasyCode EC管理后台
/// Copyright (c) 2019-present EC管理有限公司
/// 创建人:tobin
/// 日 期:2019.11.01
/// 描 述:任务计划模板信息
/// </summary>
public interface TSSchemeIBLL : IBLL
{
#region 获取数据
/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="pagination">分页参数</param>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
Task<IEnumerable<TSSchemeInfoEntity>> GetPageList(Pagination pagination, string queryJson);
/// <summary>
/// 获取列表数据
/// </summary>
/// <returns></returns>
Task<IEnumerable<TSSchemeInfoEntity>> GetList();
/// <summary>
/// 获取表实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
Task<TSSchemeInfoEntity> GetSchemeInfoEntity(string keyValue);
#endregion 获取数据
#region 提交数据
/// <summary>
/// 删除实体数据
/// </summary>
/// <param name="keyValue">主键</param>
/// <returns></returns>
Task DeleteEntity(string keyValue);
/// <summary>
/// 保存实体数据(新增、修改)
/// </summary>
/// <param name="keyValue">主键</param>
/// <param name="schemeInfoEntity">实体</param>
/// <returns></returns>
Task SaveEntity(string keyValue, TSSchemeInfoEntity schemeInfoEntity);
#endregion 提交数据
#region 扩展应用
/// <summary>
/// 暂停任务
/// </summary>
/// <param name="keyValue">任务主键</param>
Task PauseJob(string keyValue);
/// <summary>
/// 启动任务
/// </summary>
/// <param name="keyValue">任务进程主键</param>
Task EnAbleJob(string keyValue);
#endregion 扩展应用
#region 执行sql语句和存储过程
/// <summary>
/// 执行sql语句
/// </summary>
/// <param name="code">数据库编码</param>
/// <param name="sql">sql语句</param>
/// <returns></returns>
Task ExecuteBySql(string code, string sql);
/// <summary>
/// 执行存储过程
/// </summary>
/// <param name="code">数据库编码</param>
/// <param name="name">名称</param>
/// <returns></returns>
Task ExecuteProc(string code, string name);
#endregion 执行sql语句和存储过程
}
}