20 lines
452 B
Java
20 lines
452 B
Java
package io.spring.application;
|
|
|
|
import io.spring.infrastructure.mybatis.readservice.TagReadService;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import java.util.List;
|
|
|
|
@Service
|
|
public class TagsQueryService {
|
|
private TagReadService tagReadService;
|
|
|
|
public TagsQueryService(TagReadService tagReadService) {
|
|
this.tagReadService = tagReadService;
|
|
}
|
|
|
|
public List<String> allTags() {
|
|
return tagReadService.all();
|
|
}
|
|
}
|