Commit 3bd44d83 authored by Ashini Imalka's avatar Ashini Imalka

get solution list issue fixed

parent 2954323c
...@@ -30,7 +30,7 @@ public class SolutionController { ...@@ -30,7 +30,7 @@ public class SolutionController {
SolutionsResponse response=solutionService.getSolutionList(page,limit,disease); SolutionsResponse response=solutionService.getSolutionList(page,limit,disease);
BaseResponse<SolutionsResponse> baseResponse = new BaseResponse<>(ApplicationStatus.TOKEN_GENERATION_SUCCESS, response); BaseResponse<SolutionsResponse> baseResponse = new BaseResponse<>(ApplicationStatus.GET_SOLUTION_LIST_SUCCESS, response);
return new ResponseEntity<>(baseResponse, HttpStatus.OK); return new ResponseEntity<>(baseResponse, HttpStatus.OK);
} }
......
...@@ -7,7 +7,7 @@ import lombok.Data; ...@@ -7,7 +7,7 @@ import lombok.Data;
public class SolutionResponse { public class SolutionResponse {
@JsonProperty("solution_id") @JsonProperty("solution_id")
private String solutionId; private Long solutionId;
@JsonProperty("solution_code") @JsonProperty("solution_code")
private String solutionCode; private String solutionCode;
...@@ -22,5 +22,5 @@ public class SolutionResponse { ...@@ -22,5 +22,5 @@ public class SolutionResponse {
private Integer rateScore; private Integer rateScore;
@JsonProperty("solution_type") @JsonProperty("solution_type")
private Integer solutionType; private String solutionType;
} }
...@@ -6,7 +6,7 @@ import lombok.Getter; ...@@ -6,7 +6,7 @@ import lombok.Getter;
public enum ApplicationStatus { public enum ApplicationStatus {
TOKEN_GENERATION_SUCCESS("S-000", "New user token generated."), GET_SOLUTION_LIST_SUCCESS("S-000", "Solution List For the disease."),
TOKEN_GENERATION_FAILED("F-000", "User token generation failed."), TOKEN_GENERATION_FAILED("F-000", "User token generation failed."),
USER_REGISTRATION_SUCCESS("S-001", "New user has been successfully created."), USER_REGISTRATION_SUCCESS("S-001", "New user has been successfully created."),
USER_REGISTRATION_FAILED("F-001", "User registration failed."); USER_REGISTRATION_FAILED("F-001", "User registration failed.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment