package com.zhiqiyun.open.service.impl;

import com.zhiqiyun.open.mapper.AuthorityInfoMapper;
import com.zhiqiyun.open.models.AuthorityInfo;
import com.zhiqiyun.open.service.AuthorityInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jtoms
 */
@Service
public class OauthAuthorityInfoServiceImpl implements AuthorityInfoService {

    @Autowired
    private AuthorityInfoMapper authorityInfoMapper;

    @Override
    public List<AuthorityInfo> findChildren(Long parentId) {
        return authorityInfoMapper.findChildren(parentId);
    }
}
