dev add complaint all info with pagination
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-05-25 18:31:41 +07:00
parent b87a4aff39
commit 31d257c9bb
2 changed files with 4 additions and 4 deletions
@@ -132,16 +132,16 @@ public class ApiController {
public ResponseEntity<?> handleInternalPostRequest(@RequestBody BaseRequest request) {
Integer msgId = request.getMsgId();
BaseResponse response;
RequestHandler handler = internalHandlers.get(msgId);
RequestHandler internalHandler = internalHandlers.get(msgId);
try {
if (handler == null) {
if (internalHandler == null) {
response = new BaseResponse(msgId,
MessageCode.MSG_ID_NOT_FOUND.getCode(),
MessageCode.MSG_ID_NOT_FOUND.getDescription(),
new HashMap<>());
} else {
response = handler.handle(request);
response = internalHandler.handle(request);
}
return ResponseEntity.ok().body(response);
@@ -33,7 +33,7 @@ public class ControlComplaintHandler implements RequestHandler{
public BaseResponse handle(BaseRequest request) throws Exception {
ComplaintRequest complaintRequest = objectMapper.convertValue(request.getMessageBody(), ComplaintRequest.class);
Integer msgId = request.getMsgId();
log.info("start create complaint!");
try {
return switch (complaintRequest.getAction()) {
case "update_status" -> updateStatus(msgId, complaintRequest);