/**
|
* Copyright (c) 2016-2019 人人开源 All rights reserved.
|
*
|
* https://www.machine.io
|
*
|
* 版权所有,侵权必究!
|
*/
|
|
package api.service.impl;
|
|
|
import api.bean.SysUserRoleEntity;
|
import api.dao.SysUserRoleDao;
|
import api.service.SysUserRoleService;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import org.springframework.stereotype.Service;
|
|
|
/**
|
* 用户与角色对应关系
|
*
|
* @author Mark sunlightcs@gmail.com
|
*/
|
@Service("sysUserRoleService")
|
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleDao, SysUserRoleEntity> implements SysUserRoleService {
|
|
|
|
@Override
|
public int deleteBatch(Long[] roleIds){
|
return baseMapper.deleteBatch(roleIds);
|
}
|
|
@Override
|
public Long queryRoleId(Long userId) {
|
return baseMapper.queryRoleId(userId);
|
}
|
}
|