FIX Structure of Project
This commit is contained in:
parent
c013aed58f
commit
758e71ad5e
@ -1,39 +0,0 @@
|
||||
-- === Companies ===
|
||||
INSERT INTO company_entity (id, name, country)
|
||||
VALUES
|
||||
(1, 'Global Logistics', 'France'),
|
||||
(2, 'TransWorld Exports', 'Germany');
|
||||
|
||||
-- === Users ===
|
||||
INSERT INTO user_entity (id, username, first_name, last_name, email, password, role, enabled, company_id)
|
||||
VALUES
|
||||
(1, 'admin1', 'Alice', 'Martin', 'alice@globallogistics.com', '$2a$10$hash1', 'ADMIN', true, 1),
|
||||
(2, 'user1', 'Bob', 'Dupont', 'bob@globallogistics.com', '$2a$10$hash2', 'USER', true, 1),
|
||||
(3, 'admin2', 'Eva', 'Schmidt', 'eva@transworld.com', '$2a$10$hash3', 'ADMIN', true, 2);
|
||||
|
||||
-- === Licenses ===
|
||||
INSERT INTO license_entity (id, license_key, expiration_date, active, user_id)
|
||||
VALUES
|
||||
(1, 'LIC-GL-A', '2025-12-31', true, 1),
|
||||
(2, 'LIC-GL-B', '2025-12-31', true, 2),
|
||||
(3, 'LIC-TW-A', '2025-11-30', true, 3);
|
||||
|
||||
-- === Quotes ===
|
||||
INSERT INTO quote_entity (id, reference, status, estimated_amount, created_at, user_id, company_id)
|
||||
VALUES
|
||||
('550e8400-e29b-41d4-a716-446655440000', 'QT-GL-001', 'PENDING', 1200.50, CURRENT_TIMESTAMP, 1, 1),
|
||||
('550e8400-e29b-41d4-a716-446655440001', 'QT-GL-002', 'VALIDATED', 2300.75, CURRENT_TIMESTAMP, 2, 1),
|
||||
('550e8400-e29b-41d4-a716-446655440002', 'QT-TW-001', 'VALIDATED', 1950.00, CURRENT_TIMESTAMP, 3, 2);
|
||||
|
||||
-- === Export Folders ===
|
||||
INSERT INTO export_folder_entity (id, reference, validation_date, company_id, quote_id)
|
||||
VALUES
|
||||
(1, 'EXP-GL-002', CURRENT_TIMESTAMP, 1, '550e8400-e29b-41d4-a716-446655440001'),
|
||||
(2, 'EXP-TW-001', CURRENT_TIMESTAMP, 2, '550e8400-e29b-41d4-a716-446655440002');
|
||||
|
||||
-- === Tokens ===
|
||||
INSERT INTO token (id, token, token_type, revoked, expired, user_id)
|
||||
VALUES
|
||||
(1, 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9-admin1', 'BEARER', false, false, 1),
|
||||
(2, 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9-user1', 'BEARER', false, false, 2),
|
||||
(3, 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9-admin2', 'BEARER', false, false, 3);
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface AddressService {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface CompanyService {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface DimensionService {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface DocumentService {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface ExportFolderService {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public class LicenseService {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface NotificationService {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface QuoteDetailsService {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface QuoteService {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface ShipmentTrackingService {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface VesselScheduleService {
|
||||
}
|
||||
@ -1,22 +0,0 @@
|
||||
package com.dh7789dev.xpeditis.dto;
|
||||
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class Quote {
|
||||
private Long id;
|
||||
private String reference;
|
||||
private String status;
|
||||
private BigDecimal estimatedAmount;
|
||||
private LocalDateTime createdAt = LocalDateTime.now();
|
||||
private UserAccount user;
|
||||
private Company company;
|
||||
private ExportFolder exportFile;
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dto.app;
|
||||
|
||||
public class Address {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dto;
|
||||
|
||||
public class Dimension {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dto.app;
|
||||
|
||||
public class Document {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dto.app;
|
||||
|
||||
public class Notification {
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
package com.dh7789dev.xpeditis.dto;
|
||||
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class Quote {
|
||||
|
||||
private Long id;
|
||||
private String packager;
|
||||
private String customsImportExport;
|
||||
private Boolean eur1;
|
||||
private String packagingType;
|
||||
private List<QuoteDetail> details;
|
||||
private Boolean dangerousGoods;
|
||||
private Boolean tailgate;
|
||||
private Boolean straps;
|
||||
private Boolean thermalCover;
|
||||
private Boolean regulatedProducts;
|
||||
private Boolean appointmentRequired;
|
||||
private Boolean t1;
|
||||
private Boolean customsStop;
|
||||
private Boolean exportAssistance;
|
||||
private Boolean insurance;
|
||||
private String operationType;
|
||||
private String incoterm;
|
||||
private String departurePostalCode;
|
||||
private String departureCity;
|
||||
private LocalDate pickupDate;
|
||||
private String arrivalPostalCode;
|
||||
private String arrivalCity;
|
||||
private LocalDate deliveryDate;
|
||||
private UserAccount user;
|
||||
private Company company;
|
||||
private ExportFolder exportFile;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
package com.dh7789dev.xpeditis.dto;
|
||||
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class QuoteDetail {
|
||||
private Long id;
|
||||
private Integer quantity;
|
||||
private DimensionDTO dimension;
|
||||
private Double weight;
|
||||
private boolean stackable;
|
||||
private Long quoteId;
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dto.app;
|
||||
|
||||
public class ShipmentTracking {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dto.app;
|
||||
|
||||
public class VesselSchedule {
|
||||
}
|
||||
@ -31,7 +31,11 @@ public class RegisterRequest {
|
||||
String password;
|
||||
|
||||
@NotBlank
|
||||
String role; // Should be "USER" or "ADMIN"
|
||||
String phone;
|
||||
|
||||
String company_uuid = "";
|
||||
|
||||
String company_name;
|
||||
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package com.dh7789dev.xpeditis.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.AllArgsConstructor;
|
||||
@ -15,6 +16,7 @@ import java.util.Date;
|
||||
@NoArgsConstructor
|
||||
@FieldDefaults(level = AccessLevel.PRIVATE)
|
||||
@Accessors(chain = true)
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class AuthenticationResponse {
|
||||
|
||||
@JsonProperty("access_token")
|
||||
@ -28,4 +30,7 @@ public class AuthenticationResponse {
|
||||
|
||||
@JsonProperty("expires_at")
|
||||
Date expiresAt;
|
||||
|
||||
@JsonProperty("error_message")
|
||||
String error;
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dto;
|
||||
package com.dh7789dev.xpeditis.dto.app;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import lombok.AccessLevel;
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public class AddressServiceImpl {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public class CompanyServiceImpl {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public class DimensionServiceImpl {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public class DocumentServiceImpl {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public class ExportFolderServiceImpl {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public class LicenseServiceImpl {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public class NotificationServiceImpl {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public class QuoteDetailsServiceImpl {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public class QuoteServiceImpl {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public class ShipmentTrackingServiceImpl {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public class VesselScheduleServiceImpl {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface AddressRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface CompanyRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface DimensionRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface DocumentRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface ExportFolderRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface LicenseRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface NotificationRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface QuoteDetailsRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface QuoteRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface ShipmentTrackingRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis;
|
||||
|
||||
public interface VesselScheduleRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dao;
|
||||
|
||||
public interface Address {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dao;
|
||||
|
||||
public interface DimensionDao {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dao;
|
||||
|
||||
public interface DocumentDao {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dao;
|
||||
|
||||
public class NotificationDao {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dao;
|
||||
|
||||
public interface QuoteDetailDao {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dao;
|
||||
|
||||
public class ShipmentTrackingDao {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.dao;
|
||||
|
||||
public class VesselScheduleDao {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.entity;
|
||||
|
||||
public class AddressEntity {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.entity;
|
||||
|
||||
public enum AdresseType {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.entity;
|
||||
|
||||
public class DimensionEntity {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.entity;
|
||||
|
||||
public class DocumentEntity {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.entity;
|
||||
|
||||
public class NotificationEntity {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.entity;
|
||||
|
||||
public class NotificationType {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.entity;
|
||||
|
||||
public class QuoteDetailEntity {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.entity;
|
||||
|
||||
public class ShipmentTrackingEntity {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.entity;
|
||||
|
||||
public class VesselScheduleEntity {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.mapper;
|
||||
|
||||
public class DimensionMapper {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.mapper;
|
||||
|
||||
public interface DocumentMapper {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.mapper;
|
||||
|
||||
public interface NotificationMapper {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.mapper;
|
||||
|
||||
public interface QuoteDetailMapper {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.mapper;
|
||||
|
||||
public interface ShipmentTrackingMapper {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.mapper;
|
||||
|
||||
public interface VesselScheduleMapper {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.repository;
|
||||
|
||||
public class AddressJpaRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.repository;
|
||||
|
||||
public class CompanyJpaRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.repository;
|
||||
|
||||
public class DimensionJpaRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.repository;
|
||||
|
||||
public class DocumentJpaRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.repository;
|
||||
|
||||
public class ExportFolderJpaRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.repository;
|
||||
|
||||
public class LicenseJpaRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.repository;
|
||||
|
||||
public class NotificationJpaRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.repository;
|
||||
|
||||
public class QuoteDetailsJpaRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.repository;
|
||||
|
||||
public class QuoteJpaRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.repository;
|
||||
|
||||
public class ShipmentTrackingJpaRepository {
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
package com.dh7789dev.xpeditis.repository;
|
||||
|
||||
public class VesselScheduleJpaRepository {
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user