Skip to content

Commit

Permalink
Refactor package structure in messaging component
Browse files Browse the repository at this point in the history
This commit involves a major refactor of the package structure in the messaging component. Packages previously named 'event_sourcing.producer' have been renamed to either 'messaging' or 'rest' for clarity and better organization. This aligns more directly with the architecture and purpose of the respective classes within these packages.
  • Loading branch information
nawaphonOHM committed Mar 16, 2024
1 parent d06f1ae commit 53205bf
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package nawaphon.microservices.messaging.event_sourcing.producer.controllers;
package nawaphon.microservices.messaging.controllers;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import nawaphon.microservices.messaging.event_sourcing.producer.pojo.Message;
import nawaphon.microservices.messaging.event_sourcing.producer.pojo.ResponseMessage;
import nawaphon.microservices.messaging.pojo.Message;
import nawaphon.microservices.messaging.pojo.ResponseMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package nawaphon.microservices.messaging.event_sourcing.producer.pojo;
package nawaphon.microservices.messaging.pojo;

import java.util.UUID;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package nawaphon.microservices.messaging.event_sourcing.producer.pojo;
package nawaphon.microservices.messaging.pojo;

import java.util.UUID;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package nawaphon.microservices.messaging.event_sourcing.producer.pojo;
package nawaphon.microservices.messaging.pojo;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package nawaphon.microservices.messaging.event_sourcing.producer.pojo;
package nawaphon.microservices.messaging.pojo;

public class ResponseMessage<A> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package nawaphon.microservices.messaging.event_sourcing.producer;
package nawaphon.microservices.messaging.rest;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package nawaphon.microservices.messaging.event_sourcing.producer.components;
package nawaphon.microservices.messaging.rest.components;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import nawaphon.microservices.messaging.event_sourcing.producer.pojo.Customer;
import nawaphon.microservices.messaging.event_sourcing.producer.pojo.CustomerDetail;
import nawaphon.microservices.messaging.rest.pojo.Customer;
import nawaphon.microservices.messaging.rest.pojo.CustomerDetail;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Component;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package nawaphon.microservices.messaging.event_sourcing.producer.controllers;
package nawaphon.microservices.messaging.rest.controllers;

import nawaphon.microservices.messaging.event_sourcing.producer.pojo.Customer;
import nawaphon.microservices.messaging.event_sourcing.producer.pojo.CustomerDetail;
import nawaphon.microservices.messaging.event_sourcing.producer.pojo.ResponseMessage;
import nawaphon.microservices.messaging.event_sourcing.producer.components.FakeDatabaseComponent;
import nawaphon.microservices.messaging.rest.pojo.Customer;
import nawaphon.microservices.messaging.rest.pojo.CustomerDetail;
import nawaphon.microservices.messaging.rest.pojo.ResponseMessage;
import nawaphon.microservices.messaging.rest.components.FakeDatabaseComponent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package nawaphon.microservices.messaging.event_sourcing.producer.pojo;
package nawaphon.microservices.messaging.rest.pojo;

import java.util.UUID;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package nawaphon.microservices.messaging.event_sourcing.producer.pojo;
package nawaphon.microservices.messaging.rest.pojo;

import java.util.UUID;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package nawaphon.microservices.messaging.event_sourcing.producer.pojo;
package nawaphon.microservices.messaging.rest.pojo;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package nawaphon.microservices.messaging.event_sourcing.producer.pojo;
package nawaphon.microservices.messaging.rest.pojo;

public class ResponseMessage<A> {

Expand Down

0 comments on commit 53205bf

Please sign in to comment.