|
@@ -0,0 +1,45 @@
|
|
|
+using System;
|
|
|
+using WingServerCommon.Service;
|
|
|
+using WingInterfaceLibrary.OpLog;
|
|
|
+using System.Threading.Tasks;
|
|
|
+using System.Collections.Generic;
|
|
|
+using WingInterfaceLibrary.Interface.DBInterface;
|
|
|
+
|
|
|
+namespace src.InteractionCenter
|
|
|
+{
|
|
|
+ public class MasterInteractionCenterService : InteractionCenterService, IMasterInteractionCenterService
|
|
|
+ {
|
|
|
+ protected IOpLogDBService OpLogDBService;
|
|
|
+ public override void Load(JsonRpcClientPool jsonRpcClientPool)
|
|
|
+ {
|
|
|
+ base.Load(jsonRpcClientPool);
|
|
|
+ OpLogDBService = GetProxy<IOpLogDBService>();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Get op logs from master server
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="request"></param>
|
|
|
+ /// <returns>The op log list</returns>
|
|
|
+ public async Task<List<OperationLogDTO>> GetOpLogsFromMaster(GetOpLogsFormMasterRequest request)
|
|
|
+ {
|
|
|
+ return await OpLogDBService.GetOpLog(request);
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Synchronize op log to master server
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="request"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public async Task<bool> SyncOpLogToMaster(SyncOpLogToMasterRequest request)
|
|
|
+ {
|
|
|
+ return await OpLogDBService.SyncOpLog(request);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public class SlaveInteractionCenterService : InteractionCenterService, ISlaveInteractionCenterService
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+}
|