package com.fdkanfang.service.backend.impl;

import com.fdkanfang.dao.backend.IBaseMapper;
import com.fdkanfang.dao.backend.RoleMapper;
import com.fdkanfang.domain.backend.RoleEntity;
import com.fdkanfang.domain.response.UserResponse;
import com.fdkanfang.service.BaseMapperServiceImpl;
import com.fdkanfang.service.backend.RoleService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by owen on 2020/3/11 0011 16:16
 */
@Service
public class RoleServiceImpl2 extends BaseMapperServiceImpl<RoleEntity, Long> implements RoleService2 {

    @Autowired
    private RoleMapper entityMapper;

    @Override
    public IBaseMapper<RoleEntity, Long> getBaseMapper() {
        return this.entityMapper;
    }


    @Override
    public List<UserResponse> findUserByRoleKey(String roleKey) {
        return entityMapper.findUserByRoleKey(roleKey);
    }
}
