Compare commits

..

5 Commits

Author SHA1 Message Date
bd6f979f76 Merge pull request 'Adicionado uma nova coluna de link no banco de dados.' (#5) from develop into master
All checks were successful
Build e Deploy / build-and-deploy (push) Successful in 1m12s
Reviewed-on: #5
2026-06-03 00:56:26 +00:00
3e558576ac Merge pull request 'Atualizado o link do webhook para um secret do gitea.' (#4) from develop into master
All checks were successful
Build e Deploy / build-and-deploy (push) Successful in 1s
Reviewed-on: #4
2026-05-31 02:59:15 +00:00
c667bfc35a Merge pull request 'Implementado workflows para o gitea.' (#3) from develop into master
All checks were successful
Build e Deploy / build-and-deploy (push) Successful in 1m5s
Reviewed-on: #3
2026-05-31 02:53:06 +00:00
f9bbe50bb7 Merge pull request 'feature: logs no discord.' (#2) from develop into master
Reviewed-on: #2
2026-05-31 02:43:42 +00:00
d618858629 Merge pull request 'Adicionado verificacao se o preco que esta vindo do produe menor do que o que ja esta salvo no banco."' (#1) from develop into master
Reviewed-on: #1
2026-05-30 01:40:11 +00:00
7 changed files with 1 additions and 93 deletions

11
pom.xml
View File

@@ -43,17 +43,6 @@
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>

View File

@@ -1,23 +0,0 @@
package br.com.stackpanel.duck_api.config;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import static br.com.stackpanel.duck_api.entity.enums.QueueNames.QUEUE_NOTIFICATION_CAD;
import static br.com.stackpanel.duck_api.entity.enums.QueueNames.QUEUE_NOTIFICATION_ERROR;
@Configuration
public class RabbitConfig {
@Bean
public Queue queueNotificationError() {
return new Queue(QUEUE_NOTIFICATION_ERROR.label, true);
}
@Bean
public Queue queueNotificationCad() {
return new Queue(QUEUE_NOTIFICATION_CAD.label, true);
}
}

View File

@@ -1,15 +0,0 @@
package br.com.stackpanel.duck_api.entity.enums;
public enum QueueNames {
QUEUE_NOTIFICATION_ERROR("QUEUE_NOTIFICATION_ERROR"),
QUEUE_NOTIFICATION_CAD("QUEUE_NOTIFICATION_CAD");
public final String label;
private QueueNames(String label) {
this.label = label;
}
}

View File

@@ -1,7 +0,0 @@
package br.com.stackpanel.duck_api.service;
public interface RabbitPublisherService {
void sendNotificationCad(String notificationCad);
}

View File

@@ -1,24 +0,0 @@
package br.com.stackpanel.duck_api.service.impl;
import br.com.stackpanel.duck_api.service.RabbitPublisherService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import static br.com.stackpanel.duck_api.entity.enums.QueueNames.QUEUE_NOTIFICATION_ERROR;
public class RabbitPublisherServiceImpl implements RabbitPublisherService {
private static final Logger log = LoggerFactory.getLogger(RabbitPublisherServiceImpl.class);
private final RabbitTemplate rabbitTemplate;
public RabbitPublisherServiceImpl(RabbitTemplate rabbitTemplate) {
this.rabbitTemplate = rabbitTemplate;
}
@Override
public void sendNotificationCad(String notificationCad) {
log.info("Sending notification Cad: {}", notificationCad);
rabbitTemplate.convertAndSend(QUEUE_NOTIFICATION_ERROR.label, notificationCad);
}
}

View File

@@ -5,10 +5,4 @@ spring.datasource.password=${db_pass}
spring.datasource.username=${db_user}
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.rabbitmq.host=rabbit.stackpanel.com.br
spring.rabbitmq.port=5672
spring.rabbitmq.username=${rabbit_username}
spring.rabbitmq.password=${rabbit_password}
spring.jpa.show-sql=true

View File

@@ -4,9 +4,3 @@ spring.datasource.url=${db_host:jdbc:postgresql://db.stackpanel.com.br:5432/nexu
spring.datasource.password=${db_pass}
spring.datasource.username=${db_user}
spring.datasource.driver-class-name=org.postgresql.Driver
spring.rabbitmq.host=rabbit.stackpanel.com.br
spring.rabbitmq.port=5672
spring.rabbitmq.username=${rabbit_username}
spring.rabbitmq.password=${rabbit_password}