|
|
using Myshipping.Core;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
namespace Myshipping.Application
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 服务流程
|
|
|
/// </summary>
|
|
|
internal interface IServiceWorkFlowBaseService
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 保存
|
|
|
/// </summary>
|
|
|
/// <param name="info">服务流程详情</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> Save(ServiceWorkFlowBaseDto info);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 保存并启用
|
|
|
/// </summary>
|
|
|
/// <param name="info">服务流程详情</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> SaveAndEnable(ServiceWorkFlowBaseDto info);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 启用
|
|
|
/// </summary>
|
|
|
/// <param name="pkId">服务流程主键</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> SetEnable(string pkId);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 取消启用
|
|
|
/// </summary>
|
|
|
/// <param name="pkId">服务流程主键</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> SetUnEnable(string pkId);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 删除
|
|
|
/// </summary>
|
|
|
/// <param name="pkId">服务流程主键</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> Delete(string pkId);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 复制
|
|
|
/// </summary>
|
|
|
/// <param name="pkId">服务流程主键</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> Copy(string pkId);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 获取服务流程详情
|
|
|
/// </summary>
|
|
|
/// <param name="pkId">服务流程主键</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> GetInfo(string pkId);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 检索服务流程列表
|
|
|
/// </summary>
|
|
|
/// <param name="queryItem">检索值</param>
|
|
|
/// <param name="topNum">最大返回行数(默认15)</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> QueryList(string queryItem, int topNum = 15);
|
|
|
|
|
|
/// <summary>
|
|
|
/// 服务流程台账查询
|
|
|
/// </summary>
|
|
|
/// <param name="QuerySearch">服务流程台账查询请求</param>
|
|
|
/// <returns>返回结果</returns>
|
|
|
Task<SqlSugarPagedList<ServiceWorkFlowBasePageDto>> GetPageAsync(QueryServiceWorkFlowBaseDto QuerySearch);
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 发布服务流程
|
|
|
/// </summary>
|
|
|
/// <param name="pkId">服务流程主键</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> PublishRelease(string pkId);
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 获取展示服务流程时间轴列表
|
|
|
/// </summary>
|
|
|
/// <param name="pkId">服务流程主键</param>
|
|
|
/// <returns>返回回执</returns>
|
|
|
Task<TaskManageOrderResultDto> GetShowTimeLine(string pkId);
|
|
|
}
|
|
|
}
|