package com.ruoyi.cai.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.cai.domain.GuardTotal;
import com.ruoyi.cai.dto.app.dto.GuardNum;
import com.ruoyi.cai.dto.app.query.GiveGuardReq;
import com.ruoyi.cai.dto.app.vo.index.GuardIndexVo;
import com.ruoyi.cai.dto.app.vo.index.GuardListPageVo;
import com.ruoyi.common.core.domain.PageQuery;

/**
 * 守护用户累计Service接口
 *
 * @author 77
 * @date 2023-12-23
 */
public interface GuardTotalService extends IService<GuardTotal> {

    GuardIndexVo guardInfoVo(Long fromUserId,Long toUserId, Integer limit);

    boolean giveGuard(GiveGuardReq query);

    GuardNum getGuardNum(Long fromUserId, Long toUserId);

    Page<GuardListPageVo> userGuardPage(PageQuery pageQuery, Long toUserId);
}
