package com.red.circle.other.infra.database.mongo.service.dynamic;

import com.red.circle.other.infra.database.mongo.entity.dynamic.DynamicPopular;
import java.util.List;

/**
 * <p>
 * 热门权重分.
 * </p>
 *
 * @author pengshigang
 * @since 2022-04-25
 */
public interface DynamicPopularService {

  /**
   * 分页热门动态记录.
   *
   * @param sysOrigin  系统
   * @param pageNumber 页码
   * @param pageSize   每页大小
   * @return ignore
   */
  List<DynamicPopular> pageDynamic(String sysOrigin, Integer pageNumber, Integer pageSize,
      String region);

  /**
   * 修改热门动态评分.
   */
  void updateScore(Long dynamicId, Integer score, String sysOrigin, String region);

  /**
   * 删除该热门动态记录.
   */
  void removeByDynamicId(Long dynamicId);

}
