package com.elephant.framework.galaxy.aroad.module.info.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.elephant.framework.galaxy.aroad.module.info.dto.InfoDto;
import com.elephant.framework.galaxy.aroad.module.info.dto.InfoInformationsDto;
import com.elephant.framework.galaxy.aroad.module.info.entity.InfoInformations;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 信息表
 *
 * @author songwenjie
 * @date 2019-04-28 10:34:46
 */
public interface InfoInformationsService extends IService<InfoInformations> {

    /** 
    * @Description: 新增上报信息 
    * @Param: [info] 
    * @return: java.lang.Boolean 
    * @Author: songwenjie 
    * @Date: 2019/5/5 
    */ 
    Boolean saveInformations(InfoInformationsDto info);

    /**
     * @Description:  分页查询报给我的信息
     * @Param: [page, receiverId]
     * @return: java.util.List<com.elephant.framework.galaxy.aroad.module.info.dto.InfoDto>
     * @Author: songwenjie
     * @Date: 2019/5/5
     */
    public IPage<InfoDto> getReportedToMe (Page page, Integer receiverId);

    /**
     * @Description:  分页查询我上报的信息
     * @Param: [page, reporterId]
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.elephant.framework.galaxy.aroad.module.info.dto.InfoDto>
     * @Author: songwenjie
     * @Date: 2019/5/6
     */
    public IPage<InfoDto> getIReported (Page page, Integer reporterId);
}
