using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using YLErp.Abstract; using YLErp.Modules.SwapModule.Interface; namespace YLErp.Modules.SwapModule { public class PushHTService : IPushHTService { private IKafkaProduce kafkaProduceHelper; public PushHTService(IKafkaProduce kafkaProduce) { kafkaProduceHelper = kafkaProduce; } /// /// 推送交易相关 /// public void PushTrade() { SwapPushService pushService = new SwapPushService(OptUserInfo.SystemUser); pushService.SetKafKaProduce(kafkaProduceHelper); pushService.PushTrade(); pushService.PushTradeUpdate(); pushService.PushUnwind(); pushService.PushRepealUnwind(); } /// /// 推送客户信息相关 /// public void PushClient() { SwapPushService pushService = new SwapPushService(OptUserInfo.SystemUser); pushService.SetKafKaProduce(kafkaProduceHelper); pushService.PushClient(); pushService.PushClientBank(); // pushService.PushClientCash(); } /// /// 重推 /// /// public void PushSingle(PushLog pushLog) { SwapPushService pushService = new SwapPushService(OptUserInfo.SystemUser); pushService.SetKafKaProduce(kafkaProduceHelper); pushService.RePushLog( pushLog); } } }