lxw
2022-09-01 0bd7d8d4bf1927e435795ac781bf490dcaf2d0d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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,"权限组信息");
    }
}