feat : get tagList Controller, Service, Repository Implement. Refactoring

This commit is contained in:
kms
2022-10-31 22:35:43 +09:00
parent 9465325b05
commit 19d270fcad
3 changed files with 5 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ public class TagController {
//Todo Response tags: {} ~
@GetMapping
public List<String> getTags(){
return tagService.getTags();
public TagResponse getTags(){
return TagResponse.builder().tags(tagService.getTags()).build();
}
}

View File

@@ -6,9 +6,11 @@ import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import java.util.List;
@Getter
@AllArgsConstructor
@Builder
public class TagResponse {
private String tagName;
private List<String> tags;
}

View File

@@ -10,7 +10,6 @@ spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto=create
spring.jpa.properties.hibernate.format_sql=true
spring.jpq.show-sql=true
#secret
real-world.token.expiry=3000000