ntminer 5 years ago
parent
commit
a92f6d9c4c

+ 1 - 1
src/NTMiner.Controllers/INTMinerWalletController.cs

@@ -6,6 +6,6 @@ namespace NTMiner.Controllers {
     public interface INTMinerWalletController {
         ResponseBase AddOrUpdateNTMinerWallet(DataRequest<NTMinerWalletData> request);
         ResponseBase RemoveNTMinerWallet(DataRequest<Guid> request);
-        DataResponse<List<NTMinerWalletData>> NTMinerWallets(NTMinerWalletsRequest request);
+        DataResponse<List<NTMinerWalletData>> NTMinerWallets();
     }
 }

+ 0 - 5
src/NTMinerDataSchemas/Core/MinerServer/NTMinerWalletsRequest.cs

@@ -1,5 +0,0 @@
-namespace NTMiner.Core.MinerServer {
-    public class NTMinerWalletsRequest {
-        public NTMinerWalletsRequest() { }
-    }
-}

+ 0 - 1
src/NTMinerDataSchemas/NTMinerDataSchemas.csproj

@@ -148,7 +148,6 @@
     <Compile Include="Core\MinerServer\KernelOutputKeywordsRequest.cs" />
     <Compile Include="Core\MinerServer\KernelOutputKeywordsResponse.cs" />
     <Compile Include="Core\MinerServer\NTMinerWalletData.cs" />
-    <Compile Include="Core\MinerServer\NTMinerWalletsRequest.cs" />
     <Compile Include="Core\LocalMessageChannel.cs" />
     <Compile Include="Core\MinerServer\ReportResponse.cs" />
     <Compile Include="Core\MinerServer\ServerMessageData.cs" />

+ 1 - 2
src/NTMinerRpcClient/Services/Official/NTMinerWalletService.cs

@@ -12,8 +12,7 @@ namespace NTMiner.Services.Official {
 
         #region GetNTMinerWalletsAsync
         public void GetNTMinerWalletsAsync(Action<DataResponse<List<NTMinerWalletData>>, Exception> callback) {
-            NTMinerWalletsRequest request = new NTMinerWalletsRequest();
-            RpcRoot.PostAsync(RpcRoot.OfficialServerHost, RpcRoot.OfficialServerPort, _controllerName, nameof(INTMinerWalletController.NTMinerWallets), request, callback);
+            RpcRoot.PostAsync(RpcRoot.OfficialServerHost, RpcRoot.OfficialServerPort, _controllerName, nameof(INTMinerWalletController.NTMinerWallets), null, callback);
         }
         #endregion
 

+ 1 - 1
src/WebApiServer/Controllers/NTMinerWalletController.cs

@@ -47,7 +47,7 @@ namespace NTMiner.Controllers {
 
         #region NTMinerWallets
         [HttpPost]
-        public DataResponse<List<NTMinerWalletData>> NTMinerWallets([FromBody]NTMinerWalletsRequest request) {
+        public DataResponse<List<NTMinerWalletData>> NTMinerWallets() {
             try {
                 var data = WebApiRoot.NTMinerWalletSet.GetAll();
                 return DataResponse<List<NTMinerWalletData>>.Ok(data);