Skip to content

Commit

Permalink
reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
musab.bozkurt committed Feb 4, 2024
1 parent 003a960 commit f38a39d
Show file tree
Hide file tree
Showing 18 changed files with 9 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ public void publishMessage(@RequestBody @Valid ApiQueueRequest apiQueueRequest)
log.info("Received a request to publish a message. publishMessage - ApiQueueRequest: {}.", apiQueueRequest);
producerService.publishMessage(JsonUtils.serialize(apiQueueRequest));
}

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.mb.livedataservice.api.controller;

import com.mb.livedataservice.data.entity.RedisHashData;
import com.mb.livedataservice.data.redis.model.RedisHashData;
import com.mb.livedataservice.service.RedisHashService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,4 @@ public ResponseEntity<List<String>> getAllScoreBoardsInAscendingOrderByModifiedD
log.info("Received a request to get all score boards in ascending order by modified date time. getAllScoreBoardsInAscendingOrderByModifiedDateTime.");
return ResponseEntity.ok(scoreBoardService.getAllScoreBoardsInAscendingOrderByModifiedDateTime());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ public class ApiQueueRequest {
@NotNull
@Schema(example = "Publishing a message")
private String message;

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@
public class KafkaTopics {

private String testTopic;

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@

import java.util.List;

@Setter
@Getter
@Configuration
@ConfigurationProperties(prefix = "swagger.documentation")
@EnableConfigurationProperties({SwaggerConfig.class, SwaggerConfig.SwaggerServices.class})
public class SwaggerConfig {

@Getter
@Setter
public List<SwaggerServices> services;

@Bean
Expand Down Expand Up @@ -64,5 +64,4 @@ public static class SwaggerServices {
private String url;
private String version;
}

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.mb.livedataservice.data.entity;
package com.mb.livedataservice.data.redis.model;

import jakarta.persistence.Id;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.mb.livedataservice.data.repository;

import com.mb.livedataservice.data.entity.RedisHashData;
import com.mb.livedataservice.data.redis.model.RedisHashData;
import org.springframework.data.repository.CrudRepository;

public interface RedisHashDataRepository extends CrudRepository<RedisHashData, String> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ public interface ScoreBoardRepository extends JpaRepository<ScoreBoard, Long> {
Optional<ScoreBoard> findByIdAndDeletedIsFalse(Long id);

List<ScoreBoard> findAllByDeletedIsTrue(Sort sort);

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ public enum LiveDataErrorCode implements Serializable, ErrorCode {
public String getCode() {
return this.name();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
@Mapper(componentModel = "spring")
public interface ScoreBoardMapper {


@Mapping(target = "id", ignore = true)
@Mapping(target = "deleted", ignore = true)
@Mapping(target = "createdDateTime", ignore = true)
Expand All @@ -29,5 +28,4 @@ public interface ScoreBoardMapper {
default Page<ApiScoreBoardResponse> map(Page<ScoreBoard> scoreBoards) {
return scoreBoards.map(this::map);
}

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.mb.livedataservice.queue;

import com.mb.livedataservice.data.entity.RedisHashData;
import com.mb.livedataservice.data.redis.model.RedisHashData;
import com.mb.livedataservice.service.RedisHashService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ public void consumeMessage(String message) {
QueueRequest queueRequest = JsonUtils.deserialize(message, QueueRequest.class);
log.info("QueueRequest is deserialized. consumeMessage - QueueRequest: {}.", queueRequest);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@
public class QueueRequest {

private String message;

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
public interface ProducerService {

void publishMessage(String message);

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.mb.livedataservice.service;

import com.mb.livedataservice.data.entity.RedisHashData;
import com.mb.livedataservice.data.redis.model.RedisHashData;

import java.util.Optional;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.mb.livedataservice.service.impl;

import com.mb.livedataservice.data.entity.RedisHashData;
import com.mb.livedataservice.data.redis.model.RedisHashData;
import com.mb.livedataservice.data.repository.RedisHashDataRepository;
import com.mb.livedataservice.service.RedisHashService;
import lombok.RequiredArgsConstructor;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/play-integrity-credentials.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"token_uri": "token_uri",
"auth_provider_x509_cert_url": "auth_provider_x509_cert_url",
"client_x509_cert_url": "client_x509_cert_url"
}
}

0 comments on commit f38a39d

Please sign in to comment.