Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
21_22-J 39 - backend service-plant-threat-identifier
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Imalka L.A.
21_22-J 39 - backend service-plant-threat-identifier
Commits
0dc54b87
Commit
0dc54b87
authored
Feb 10, 2022
by
Imalka L.A.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get solution list issue fixed
parent
3bd44d83
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/main/java/com/ceyloneagro/ceyloneagrobackendservice/controller/SolutionController.java
...loneagrobackendservice/controller/SolutionController.java
+1
-1
src/main/java/com/ceyloneagro/ceyloneagrobackendservice/dto/response/SolutionResponse.java
...loneagrobackendservice/dto/response/SolutionResponse.java
+2
-2
src/main/java/com/ceyloneagro/ceyloneagrobackendservice/enumeration/ApplicationStatus.java
...loneagrobackendservice/enumeration/ApplicationStatus.java
+1
-1
No files found.
src/main/java/com/ceyloneagro/ceyloneagrobackendservice/controller/SolutionController.java
View file @
0dc54b87
...
@@ -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
.
GET_SOLUTION_LIST
_SUCCESS
,
response
);
BaseResponse
<
SolutionsResponse
>
baseResponse
=
new
BaseResponse
<>(
ApplicationStatus
.
TOKEN_GENERATION
_SUCCESS
,
response
);
return
new
ResponseEntity
<>(
baseResponse
,
HttpStatus
.
OK
);
return
new
ResponseEntity
<>(
baseResponse
,
HttpStatus
.
OK
);
}
}
...
...
src/main/java/com/ceyloneagro/ceyloneagrobackendservice/dto/response/SolutionResponse.java
View file @
0dc54b87
...
@@ -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
Lo
ng
solutionId
;
private
Stri
ng
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
String
solutionType
;
private
Integer
solutionType
;
}
}
src/main/java/com/ceyloneagro/ceyloneagrobackendservice/enumeration/ApplicationStatus.java
View file @
0dc54b87
...
@@ -6,7 +6,7 @@ import lombok.Getter;
...
@@ -6,7 +6,7 @@ import lombok.Getter;
public
enum
ApplicationStatus
{
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."
),
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."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment