2017-08-18 16:08:27 +07:00
|
|
|
package io.spring.infrastructure.mybatis.readservice;
|
2017-08-15 15:36:07 +07:00
|
|
|
|
2017-08-18 16:08:27 +07:00
|
|
|
import io.spring.application.data.CommentData;
|
2017-08-15 15:36:07 +07:00
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
2017-08-18 11:09:07 +07:00
|
|
|
import org.apache.ibatis.annotations.Param;
|
2017-08-15 15:36:07 +07:00
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
2017-08-18 11:09:07 +07:00
|
|
|
import java.util.List;
|
|
|
|
|
2017-08-15 15:36:07 +07:00
|
|
|
@Component
|
|
|
|
@Mapper
|
|
|
|
public interface CommentReadService {
|
2017-08-18 11:09:07 +07:00
|
|
|
CommentData findById(@Param("id") String id);
|
|
|
|
|
|
|
|
List<CommentData> findByArticleId(@Param("articleId") String articleId);
|
2017-08-15 15:36:07 +07:00
|
|
|
}
|