Skip to content

Project Structure

Jair Avilés edited this page Feb 5, 2024 · 2 revisions

Project Structure

User Fraud Checker module is a code project built on top of Java 21, Gradle and Springboot 3. It is organized in packages by layer as there is just one domain (User) with a single responsibility (Check user record)

/controller package

This package contains the classes that serve the role of controller handling the HTTP requests to the REST API.

/exception package

This package contains the classes for custom exceptions that could be thrown during run time.

/model package

This package contains the classes that serve the role of model containing the immutable classes for the entities.

/service package

This package contains the classes that serve the role of service containing the business logic.

/util package

This package contains utility classes, mostly static functions and enum used by the business logic layer.

package_by_layer

Clone this wiki locally