lxw
2022-09-02 3c2d74253bf5b2cc20d55e71a609d93418c8af05
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.whyc.service;
 
import com.whyc.dto.Response;
import com.whyc.mapper.CategoryMapper;
import com.whyc.pojo.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service
public class CategoryService {
 
    @Autowired(required = false)
    private CategoryMapper mapper;
 
    //查询所有的权限
    public Response getAllPermit() {
        List<Category> list=mapper.getAllPermit();
        return  new Response().setII(1,list.size()>0,list,"权限信息");
    }
}