| | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.CategoryMapper; |
| | | import com.whyc.pojo.Category; |
| | | import com.whyc.util.ActionUtil; |
| | | import org.apache.poi.hssf.usermodel.*; |
| | | import org.apache.poi.hssf.util.HSSFColor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.swing.*; |
| | | import java.awt.*; |
| | | import java.io.FileOutputStream; |
| | | import java.io.IOException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Random; |
| | | |
| | | @Service |
| | | public class CategoryService { |
| | |
| | | //查询所有的权限 |
| | | public Response getAllPermit() { |
| | | List<Category> list=mapper.getAllPermit(); |
| | | return new Response().setII(1,list.size()>0?true:false,list,"权限信息"); |
| | | return new Response().setII(1,list.size()>0,list,"权限信息"); |
| | | } |
| | | } |