Skip to content

Commit

Permalink
Update NodesService
Browse files Browse the repository at this point in the history
  • Loading branch information
leej1012 committed Mar 12, 2024
1 parent 69de6d9 commit 21a2047
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public ResponseBean getNodesInspireByPublicKey(
return new ResponseBean(ErrorInfo.SUCCESS.code(), ErrorInfo.SUCCESS.desc(), response);
}

@ApiOperation(value = "calculation node inspire")
@ApiOperation(value = "get calculation node inspire info")
@GetMapping(value = "/node-incentives/calculation-info")
public ResponseBean getCalculationNodeIncentivesInfo() {
CalculationInspireInfoDto response = nodesService.getCalculationNodeIncentivesInfo();
Expand All @@ -353,7 +353,7 @@ public ResponseBean calculationUserIncentives(@RequestBody UserInspireCalculatio
return new ResponseBean(ErrorInfo.SUCCESS.code(), ErrorInfo.SUCCESS.desc(), response);
}

@ApiOperation(value = "get all node cycle history ")
@ApiOperation(value = "get all node cycle history")
@GetMapping(value = "/node-cycle-data/all")
public ResponseBean getNodeCycleHistoryData(@RequestParam(value = "page_number") @Min(value = 1, message = "Invalid page number") Integer pageNum,
@RequestParam(value = "page_size") @Min(value = 1, message = "Invalid page size") @Max(value = 50, message = "Invalid page size") Integer pageSize) {
Expand All @@ -371,7 +371,7 @@ public ResponseBean getNodeCycleHistoryDataByPubKey(@RequestParam("public_key")
return new ResponseBean(ErrorInfo.SUCCESS.code(), ErrorInfo.SUCCESS.desc(), response);
}

@ApiOperation(value = "query nodes by filter ")
@ApiOperation(value = "query nodes by filter")
@PostMapping(value = "/get-nodes")
public ResponseBean getNodes(@RequestBody NodesInfoDto dto) {
PageResponseBean response = nodesService.getNodesByFilter(dto);
Expand Down

0 comments on commit 21a2047

Please sign in to comment.