package com.kcim.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kcim.dao.model.UserReportRight;
import com.kcim.vo.DictDataVo;
import com.kcim.vo.UserReportRightVO;

import java.util.List;


/**
 *
 * @author Administrator
 */
public interface UserReportRightService extends IService<UserReportRight> {

    /**
     * 获取用户有权限的损益报表
     * @return
     */
    DictDataVo getUserReports();

    /**
     * 获取用户列表
     * @param userName
     * @return
     */
    Object getUserList(Integer current, Integer pageSize,String userName);


    /**
     * 获取用户有权限的损益报表列表
     * @param reportName
     * @param hideFlag
     * @param userId
     * @return
     */
    List<UserReportRightVO> getUserReportRights(Long userId,String reportName, Integer hideFlag);

    /**
     * 修改指定用户的损益报表权限
     * @param userId
     * @param reportCode
     * @param status
     */
    void editUserReportRight(Long userId, String reportCode, Integer status);

    /**
     * 编辑用户损益报表权限
     * @param userReportRightVO
     */
    public void editUserReportRight(UserReportRightVO userReportRightVO);
}

