package com.lf.server.service.all;
|
|
import com.lf.server.entity.all.MenusAuthEntity;
|
import com.lf.server.entity.all.PermsAuthEntity;
|
import com.lf.server.entity.all.ResAuthEntity;
|
import com.lf.server.helper.StringHelper;
|
import com.lf.server.mapper.all.PermsMapper;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* 授权服务
|
* @author WWW
|
*/
|
@Service
|
public class PermsService implements PermsMapper {
|
@Autowired
|
PermsMapper permsMapper;
|
|
@Override
|
public List<ResAuthEntity> selectRes(String uid) {
|
if (StringHelper.isEmpty(uid)) {
|
return null;
|
}
|
|
return permsMapper.selectRes(uid);
|
}
|
|
@Override
|
public List<MenusAuthEntity> selectMenus(String uid) {
|
if (StringHelper.isEmpty(uid)) {
|
return null;
|
}
|
|
return permsMapper.selectMenus(uid);
|
}
|
|
@Override
|
public List<PermsAuthEntity> selectPerms(String uid) {
|
if (StringHelper.isEmpty(uid)) {
|
return null;
|
}
|
|
return permsMapper.selectPerms(uid);
|
}
|
|
@Override
|
public List<String> selectPerms2(String uid) {
|
if (StringHelper.isEmpty(uid)) {
|
return null;
|
}
|
|
return permsMapper.selectPerms2(uid);
|
}
|
}
|