using Kean.Application.Query.ViewModels;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Kean.Application.Query.Interfaces
{
///
/// 表示订单信息查询服务
///
public interface IOrderService
{
///
/// 获取订单类型
///
/// 结果视图
Task> GetTypeList();
///
/// 获取系统行为
///
/// 结果视图
Task> GetActionList();
///
/// 获取工作流
///
/// 结果视图
Task> GetFlowList();
///
/// 获取实例数量
///
/// 类型
/// 工作流
/// 节点
/// 单号
/// 制单人
/// 创建时间头
/// 创建时间尾
/// 结果
Task GetOrderCount(
int? type,
int? flow,
int? node,
string no,
string creater,
DateTime? createFrom,
DateTime? createTo);
///
/// 获取实例列表
///
/// 类型
/// 工作流
/// 节点
/// 单号
/// 制单人
/// 创建时间头
/// 创建时间尾
/// 排序
/// 偏移
/// 限制
/// 结果视图
Task> GetOrderList(
int? type,
int? flow,
int? node,
string no,
string creater,
DateTime? createFrom,
DateTime? createTo,
string sort,
int? offset,
int? limit);
///
/// 获取行数量
///
/// 订单
/// 结果
Task GetLineCount(
int? id);
///
/// 获取行列表
///
/// 订单
/// 排序
/// 偏移
/// 限制
/// 结果视图
Task> GetLineList(
int? id,
string sort,
int? offset,
int? limit);
}
}