package com.ssj.service.conch.conch.service;

import com.ssj.bean.award.dto.VipIntegralDto;
import com.ssj.bean.conch.conch.domain.IntegralDetail;
import com.ssj.framework.core.common.service.BaseService;
import com.ssj.framework.core.util.ResponseEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Map;

/**
 * @author sh
 * @className IntegralInfoService
 * @description 积分明细interface
 * @date 2020/6/2
 */
 public interface IntegralDetailService extends BaseService<IntegralDetail,String> {

    /**
     * 查询今天是否有签到
     * @param vipId
     * @return 1-已签到 2-未签到
     */
    int findTodaySignData(String vipId);


    /**
     * 今日签到
     * @param vipId
     * @return 返回30条列表数据
     */
    ResponseEntity signToday(String vipId) throws Exception;

   /**
    * 查询这周周报是否被分享
    * @param vipId
    * @param beginTime
    * @return
    */
    int findThisWeekShare(String vipId, String beginTime,String subject);

   /**
    * 查询本月月报是否被分享
    * @param vipId
    * @param month
    * @return
    */
    int findThisMonthShare(String vipId,String month);

   /**
    * 查询中奖信息是否被分享
    * @param vipId
    * @param detailCategory 中奖码
    * @return
    */
   int findPrizeShare(String vipId,String detailCategory);


    Page<VipIntegralDto> userIntegralList(Map<String, Object> params, Pageable pageable);

    /**
     * 服务过期60天，积分清0
     * @return 清理的vip数
     */
    int clearTowMonthIntegral();
}
