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.

56 lines
1.4 KiB
C#

using CommonModel;
using Dapr.Actors.Runtime;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhongLianInterface;
using ZhongLianModel;
namespace ZhongLianService
{
/// <summary>
/// 安装单Actor
/// </summary>
public class InstallActor : Actor, IInstallActor
{
public InstallActor(ActorHost host, IInstallService installService) : base(host)
{
InstallService = installService;
}
private readonly IInstallService InstallService;
/// <summary>
/// 创建
/// </summary>
/// <param name="install">安装单</param>
/// <returns></returns>
public async Task<InstallDO> Insert(InstallDO install)
{
return await InstallService.InserDO(install);
}
/// <summary>
/// 更新
/// </summary>
/// <param name="install">安装单</param>
/// <returns></returns>
public async Task<InstallDO> Update(InstallDO install)
{
return await InstallService.UpdateDO(install);
}
/// <summary>
/// 删除
/// </summary>
/// <param name="ids">编号数组</param>
/// <returns></returns>
public async Task Delete(string[] ids)
{
await InstallService.DeleteDO(ids);
}
}
}