com.github.xujiaji.mk.security.service.impl.MkSecPermissionServiceImpl Maven / Gradle / Ivy
package com.github.xujiaji.mk.security.service.impl;
import com.github.xujiaji.mk.common.base.BaseServiceImpl;
import com.github.xujiaji.mk.security.entity.MkSecPermission;
import com.github.xujiaji.mk.security.mapper.MkSecPermissionMapper;
import com.github.xujiaji.mk.security.service.IMkSecPermissionService;
import org.springframework.stereotype.Service;
import java.util.List;
/**
*
* 权限表 服务实现类
*
*
* @author xujiaji
* @since 2020-10-23
*/
@Service
public class MkSecPermissionServiceImpl extends BaseServiceImpl implements IMkSecPermissionService {
@Override
public void deletePermissions(List ids) {
baseMapper.deleteByIdsParentIds(ids);
}
@Override
public List userPermissions(Long secUserId) {
return baseMapper.selectPermissionsBySecUserId(secUserId);
}
}