package com.sonic.frog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sonic.frog.domain.entity.Liked;
import com.sonic.frog.domain.input.AiUserLikeOrCancelInput;

/**
 * 点赞业务接口
 */
public interface LikedService extends IService<Liked> {
    /**
     * ai用户点赞、取消点赞
     *
     * @param userId
     * @param input
     */
    void aiUserLikeOrCancel(Long userId, AiUserLikeOrCancelInput input);

    /**
     * 判断用户是否点赞过bizId
     *
     * @param userId
     * @param bizId
     * @param bizType
     * @return
     */
    Boolean isLiked(Long userId, Long bizId, Liked.BizType bizType);
}