package com.ssm.manage.service.impl;

import com.ssm.core.service.impl.BaseServiceImpl;
import com.ssm.manage.dao.SsmSysRolePowerDao;
import com.ssm.manage.entity.SysRole;
import com.ssm.manage.entity.SysRolePower;
import com.ssm.manage.entity.SysRoleUser;
import com.ssm.manage.query.RolePowerRequest;
import com.ssm.manage.query.RoleRequest;
import com.ssm.manage.response.UserResponse;
import com.ssm.manage.service.SsmSysRolePowerService;
import com.ssm.util.RedisClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.ArrayList;
import java.util.List;

@Service
public class SsmSysRolePowerServiceImpl extends BaseServiceImpl<SysRolePower> implements SsmSysRolePowerService {
    @Autowired
    private SsmSysRolePowerDao dao;
    @Autowired
    private RedisClient<UserResponse> redisClient;

    @Override
    public SsmSysRolePowerDao getDao() {
        return dao;
    }



    @Override
    public int addRolePower(RolePowerRequest rolePowerRequest) {
        return dao.addRolePower(rolePowerRequest);
    }
}
