package com.red.circle.other.infra.database.rds.dao.dynamic;


import com.red.circle.framework.mybatis.dao.BaseDAO;
import com.red.circle.other.infra.database.rds.entity.dynamic.DynamicLike;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 动态-朋友圈点赞 Mapper 接口.
 * </p>
 *
 * @author pengshigang
 * @since 2022-04-11
 */
public interface DynamicLikeDAO extends BaseDAO<DynamicLike> {

  /**
   * 根据内容id获得点赞数量
   *
   * @param dynamicContentId 内容id
   * @return 数量
   */
  Long getLikeQuantity(@Param("dynamicContentId") Long dynamicContentId);

}
