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));
}
}