2017-08-18 16:08:27 +07:00
|
|
|
package io.spring.infrastructure.mybatis.readservice;
|
2017-08-15 15:36:07 +07:00
|
|
|
|
2021-03-19 14:23:37 +07:00
|
|
|
import io.spring.application.CursorPageParameter;
|
2017-08-18 16:08:27 +07:00
|
|
|
import io.spring.application.data.CommentData;
|
2021-03-19 14:23:37 +07:00
|
|
|
import java.util.List;
|
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;
|
2021-03-23 14:54:04 +07:00
|
|
|
import org.joda.time.DateTime;
|
2017-08-15 15:36:07 +07:00
|
|
|
|
|
|
|
@Mapper
|
|
|
|
public interface CommentReadService {
|
2021-03-19 14:23:37 +07:00
|
|
|
CommentData findById(@Param("id") String id);
|
|
|
|
|
|
|
|
List<CommentData> findByArticleId(@Param("articleId") String articleId);
|
2017-08-18 11:09:07 +07:00
|
|
|
|
2021-03-19 14:23:37 +07:00
|
|
|
List<CommentData> findByArticleIdWithCursor(
|
2021-03-23 14:54:04 +07:00
|
|
|
@Param("articleId") String articleId, @Param("page") CursorPageParameter<DateTime> page);
|
2017-08-15 15:36:07 +07:00
|
|
|
}
|