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
{
///
/// 安装单Actor
///
public class InstallActor : Actor, IInstallActor
{
public InstallActor(ActorHost host, IInstallService installService) : base(host)
{
InstallService = installService;
}
private readonly IInstallService InstallService;
///
/// 创建
///
/// 安装单
///
public async Task Insert(InstallDO install)
{
return await InstallService.InserDO(install);
}
///
/// 更新
///
/// 安装单
///
public async Task Update(InstallDO install)
{
return await InstallService.UpdateDO(install);
}
///
/// 删除
///
/// 编号数组
///
public async Task Delete(string[] ids)
{
await InstallService.DeleteDO(ids);
}
}
}