feat : get tagList Controller, Service, Repository Implement. Refactoring
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user