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.
60 lines
1.6 KiB
60 lines
1.6 KiB
9 months ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace RoadFlow.Data.Interface
|
||
|
{
|
||
|
public interface IWorkFlowDelegation
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 新增
|
||
|
/// </summary>
|
||
|
int Add(RoadFlow.Data.Model.WorkFlowDelegation model);
|
||
|
|
||
|
/// <summary>
|
||
|
/// 更新
|
||
|
/// </summary>
|
||
|
int Update(RoadFlow.Data.Model.WorkFlowDelegation model);
|
||
|
|
||
|
/// <summary>
|
||
|
/// 查询所有记录
|
||
|
/// </summary>
|
||
|
List<RoadFlow.Data.Model.WorkFlowDelegation> GetAll();
|
||
|
|
||
|
/// <summary>
|
||
|
/// 查询单条记录
|
||
|
/// </summary>
|
||
|
Model.WorkFlowDelegation Get(Guid id);
|
||
|
|
||
|
/// <summary>
|
||
|
/// 删除
|
||
|
/// </summary>
|
||
|
int Delete(Guid id);
|
||
|
|
||
|
/// <summary>
|
||
|
/// 查询记录条数
|
||
|
/// </summary>
|
||
|
long GetCount();
|
||
|
|
||
|
/// <summary>
|
||
|
/// 查询一个用户所有记录
|
||
|
/// </summary>
|
||
|
List<RoadFlow.Data.Model.WorkFlowDelegation> GetByUserID(Guid userID);
|
||
|
|
||
|
/// <summary>
|
||
|
/// 得到一页数据
|
||
|
/// </summary>
|
||
|
/// <param name="pager"></param>
|
||
|
/// <param name="query"></param>
|
||
|
/// <param name="userID"></param>
|
||
|
/// <param name="startTime"></param>
|
||
|
/// <param name="endTime"></param>
|
||
|
/// <returns></returns>
|
||
|
List<RoadFlow.Data.Model.WorkFlowDelegation> GetPagerData(out string pager, string query = "", string userID = "", string startTime = "", string endTime = "");
|
||
|
|
||
|
/// <summary>
|
||
|
/// 得到未过期的委托
|
||
|
/// </summary>
|
||
|
List<RoadFlow.Data.Model.WorkFlowDelegation> GetNoExpiredList();
|
||
|
}
|
||
|
}
|