14 lines
415 B
Java
14 lines
415 B
Java
package io.spring.application.article;
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Mapper
|
|
@Component
|
|
public interface ArticleFavoritesQueryService {
|
|
boolean isUserFavorite(@Param("userId") String userId, @Param("articleId") String articleId);
|
|
|
|
int articleFavoriteCount(@Param("articleId") String articleId);
|
|
}
|