library-picturebook-activity/java-backend/src/main/java/com/lesingle/creation/service/InteractionService.java
2026-04-01 19:30:33 +08:00

24 lines
767 B
Java

package com.lesingle.creation.service;
import com.lesingle.creation.vo.publicwork.InteractionStatusVO;
import com.lesingle.creation.vo.publicwork.MyFavoritesVO;
import com.lesingle.creation.vo.publicwork.ToggleFavoriteVO;
import com.lesingle.creation.vo.publicwork.ToggleLikeVO;
import java.util.Map;
import java.util.List;
public interface InteractionService {
ToggleLikeVO toggleLike(Long userId, Long workId);
ToggleFavoriteVO toggleFavorite(Long userId, Long workId);
InteractionStatusVO getInteractionStatus(Long userId, Long workId);
MyFavoritesVO getMyFavorites(Long tenantId, Long userId, Integer page, Integer pageSize);
Map<Long, InteractionStatusVO> batchGetInteractionStatus(Long tenantId, Long userId, List<Long> workIds);
}