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

112 lines
3.0 KiB
C#

using CommonModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhongLianModel;
namespace ZhongLianInterface
{
public interface IInstallService
{
/// <summary>
/// 创建
/// </summary>
/// <param name="install">安装单</param>
/// <returns></returns>
Task<InstallDO> Insert(InstallDO install);
/// <summary>
/// 创建数据
/// </summary>
/// <param name="install">安装单</param>
/// <returns></returns>
Task<InstallDO> InserDO(InstallDO install);
/// <summary>
/// 创建校验
/// </summary>
/// <param name="install">安装单</param>
/// <returns></returns>
string InsertCheck(InstallDO install);
/// <summary>
/// 更新
/// </summary>
/// <param name="install">安装单</param>
/// <returns></returns>
Task<InstallDO> Update(InstallDO install);
/// <summary>
/// 更新数据
/// </summary>
/// <param name="install">安装单</param>
/// <returns></returns>
Task<InstallDO> UpdateDO(InstallDO install);
/// <summary>
/// 更新校验
/// </summary>
/// <param name="install">安装单</param>
/// <returns></returns>
string UpdateCheck(InstallDO install);
/// <summary>
/// 删除
/// </summary>
/// <param name="ids">编号数组</param>
/// <returns></returns>
Task Delete(string[] ids);
/// <summary>
/// 删除数据
/// </summary>
/// <param name="ids"></param>
/// <returns></returns>
Task DeleteDO(string[] ids);
/// <summary>
/// 查询列表
/// </summary>
/// <param name="pageSearch">查询条件</param>
/// <returns></returns>
Task<PageData<InstallDO>> List(PageYearSearch<InstallDO> pageSearch);
/// <summary>
/// 查询列表数据
/// </summary>
/// <param name="pageSearch">查询条件</param>
/// <returns></returns>
Task<PageData<InstallDO>> ListDO(PageYearSearch<InstallDO> pageSearch);
/// <summary>
/// 查询详情
/// </summary>
/// <param name="id">编号</param>
/// <returns></returns>
Task<InstallDO> Get(string id);
/// <summary>
/// 查询详情数据
/// </summary>
/// <param name="id">编号</param>
/// <returns></returns>
Task<InstallDO> GetDO(string id);
/// <summary>
/// 查询步骤
/// </summary>
/// <param name="installId">编号</param>
/// <returns></returns>
Task<InstallStepDO[]> GetSteps(string installId);
/// <summary>
/// 查询步骤数据
/// </summary>
/// <param name="installId">编号</param>
/// <returns></returns>
Task<InstallStepDO[]> GetStepsDO(string installId);
}
}