Commit 0dc54b87 authored by Imalka L.A.'s avatar Imalka L.A.

get solution list issue fixed

parent 3bd44d83
......@@ -30,7 +30,7 @@ public class SolutionController {
SolutionsResponse response=solutionService.getSolutionList(page,limit,disease);
BaseResponse<SolutionsResponse> baseResponse = new BaseResponse<>(ApplicationStatus.GET_SOLUTION_LIST_SUCCESS, response);
BaseResponse<SolutionsResponse> baseResponse = new BaseResponse<>(ApplicationStatus.TOKEN_GENERATION_SUCCESS, response);
return new ResponseEntity<>(baseResponse, HttpStatus.OK);
}
......
......@@ -7,7 +7,7 @@ import lombok.Data;
public class SolutionResponse {
@JsonProperty("solution_id")
private Long solutionId;
private String solutionId;
@JsonProperty("solution_code")
private String solutionCode;
......@@ -22,5 +22,5 @@ public class SolutionResponse {
private Integer rateScore;
@JsonProperty("solution_type")
private String solutionType;
private Integer solutionType;
}
......@@ -6,7 +6,7 @@ import lombok.Getter;
public enum ApplicationStatus {
GET_SOLUTION_LIST_SUCCESS("S-000", "Solution List For the disease."),
TOKEN_GENERATION_SUCCESS("S-000", "New user token generated."),
TOKEN_GENERATION_FAILED("F-000", "User token generation failed."),
USER_REGISTRATION_SUCCESS("S-001", "New user has been successfully created."),
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