layui table 數據請求controller map返回格式

List<User> userAll = userMapper.selectAll();
        Map<String, Object> resultMap = new HashMap<>();
        resultMap.put("data", userAll);
        resultMap.put("code", "0");
        resultMap.put("msg", "");
        resultMap.put("count", "1");
        return resultMap;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章