package com.whyc.service;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.whyc.dto.Response;
|
import com.whyc.mapper.GroupMapper;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
@Service
|
public class GroupService {
|
@Autowired(required = false)
|
private GroupMapper mapper;
|
|
//查询所有的权限组
|
public Response getAllGroup() {
|
List list=mapper.getAllGroup();
|
return new Response().setII(1,list.size()>0?true:false,list,"权限组信息");
|
}
|
}
|