lxw
2022-09-01 742f00e9798bda7f8e34f6879e580785e94dba70
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?true:false,list,"权限信息");
    }
}