SysRolesController.java 1.12 KB
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
package com.lyms.cm.controller.sys;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.baomidou.mybatisplus.plugins.Page;
import com.lyms.cm.entity.sys.SysRoles;
import com.lyms.cm.service.sys.SysRolesService;
import com.lyms.web.controller.BaseController;

/**
* <p>
* 角色表 前端控制器
* </p>
*
* @author maliang
* @since 2017-03-02
*/
@Controller
@RequestMapping("/sysRoles")
public class SysRolesController extends BaseController {
@Autowired
private SysRolesService sysRolesService;
@RequestMapping("/toList")
public String list() {
return "/role/role_list";
}

@RequestMapping(value = "/getRoleList", method = { RequestMethod.POST })
@ResponseBody
public java.util.Map<String, Object> getRoleList(){
Page<SysRoles> page = getPage();
return toGridData(sysRolesService.selectPage(page));
}
}