Skip to content

Commit

Permalink
🔧 refactoring start
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelProgrammer committed Nov 15, 2024
1 parent 25ea395 commit b6f6d2b
Show file tree
Hide file tree
Showing 62 changed files with 395 additions and 1,346 deletions.
16 changes: 16 additions & 0 deletions .idea/checkstyle-idea.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/checkstyleidea-libs/readme.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

379 changes: 154 additions & 225 deletions .idea/workspace.xml

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions k8s/neighborfood-application-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ spec:
- name: neighborfood-app-container
image: migprogrammer/neighborfood-v2:v4
ports:
- containerPort: 80
- containerPort: 8080

envFrom:
- configMapRef:
name: app-neighborfood-configmap


#fim
name: app-neighborfood-configmap
6 changes: 6 additions & 0 deletions neighborfood-pagamento.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="CheckStyle-IDEA-Module" serialisationVersion="2">
<option name="activeLocationsIds" />
</component>
</module>
6 changes: 6 additions & 0 deletions neighborfood.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="CheckStyle-IDEA-Module" serialisationVersion="2">
<option name="activeLocationsIds" />
</component>
</module>
37 changes: 8 additions & 29 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>br.com.techchallenge.fiap</groupId>
<artifactId>neighborfood</artifactId>
<artifactId>neighborfood-pagamento</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>neighborfood</name>
<description>neighborfood</description>
<name>neighborfood-pagamento</name>
<description>neighborfood-pagamento</description>
<properties>
<maven.compiler.release>17</maven.compiler.release>
</properties>
Expand All @@ -21,6 +21,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>3.2.5</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -137,30 +138,7 @@
</typeMappings>
</configuration>
</execution>-->
<execution>
<id>api-clientes</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>
${project.basedir}/src/main/resources/api/resource_clientes.yml
</inputSpec>
<generatorName>spring</generatorName>
<modelPackage>br.com.techchallenge.fiap.neighborfood.core.domain.dto</modelPackage>
<apiPackage>$generated-sources/swagger/clientes</apiPackage>
<configOptions>
<sourceFolder>src/main/java/</sourceFolder>
<delegatePattern>false</delegatePattern>
<interfaceOnly>true</interfaceOnly>
<useJakartaEe>true</useJakartaEe>
<validateSpec>true</validateSpec>
</configOptions>
<typeMappings>
<typeMapping>Double=java.math.BigDecimal</typeMapping>
</typeMappings>
</configuration>
</execution>

<execution>
<id>api-estoque</id>
<goals>
Expand Down Expand Up @@ -284,10 +262,10 @@

</executions>
</plugin>
<plugin>
<!-- <plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version> <!-- Use the latest version available -->
<version>0.8.8</version> Use the latest version available -
<executions>
<execution>
<goals>
Expand All @@ -303,6 +281,7 @@
</execution>
</executions>
</plugin>
-->
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public class NeighborfoodApplication {

public static void main(String[] args) {
SpringApplication.run(NeighborfoodApplication.class, args);
System.out.println("_______________ Lanchonete NeighborFood _______________");
System.out.println("_______________ - PAGAMENT0 - Lanchonete NeighborFood _______________");
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
import org.springframework.stereotype.Component;

@Component
public class PagamentoControllerDomain {
public class Pagamento {

private final PagamentoUseCase pagamentoUseCase;

public PagamentoControllerDomain(PagamentoUseCase pagamentoUseCase) {
public Pagamento(PagamentoUseCase pagamentoUseCase) {
this.pagamentoUseCase = pagamentoUseCase;
}

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,9 @@ public AdmUseCase confiBeanAdmin(PedidoGateway pedidoGateway, UserGateway userGa

@Bean
public PedidoUseCase configBeanPedido(PedidoGateway pedidoGateway, EstoqueGateway produtoGateway,
NotificacaoGateway notificacaoGateway,
AcompanhamentoGateway acompanhamentoGateway,
UserGateway userGateway) {
return new PedidoUseCase(pedidoGateway,produtoGateway,
notificacaoGateway, acompanhamentoGateway,
return new PedidoUseCase(pedidoGateway,produtoGateway, acompanhamentoGateway,
userGateway);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package br.com.techchallenge.fiap.neighborfood.core.domain.acompanhamento;
/*
* Copyright (c) 2024. MiguelProgrammer
*/

package br.com.techchallenge.fiap.neighborfood.core.domain.acompanhamento;

import br.com.techchallenge.fiap.neighborfood.infrastructure.persistence.notification.entities.MimoEntity;

public class Mimo {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package br.com.techchallenge.fiap.neighborfood.core.domain.acompanhamento;
/*
* Copyright (c) 2024. MiguelProgrammer
*/

package br.com.techchallenge.fiap.neighborfood.core.domain.acompanhamento;


import br.com.techchallenge.fiap.neighborfood.infrastructure.persistence.notification.entities.NotificacaoEntity;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
*/


import br.com.techchallenge.fiap.neighborfood.infrastructure.persistence.order.entities.PagamentoEntity;

public class Pagamento {

private Long id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (c) 2024. MiguelProgrammer
*/

package br.com.techchallenge.fiap.neighborfood.core.domain.pedido;/*
* Copyright (c) 2024. MiguelProgrammer
*/
Expand Down
Loading

0 comments on commit b6f6d2b

Please sign in to comment.