package com.objecteye.controller; import com.alibaba.fastjson.JSONObject; import com.objecteye.service.RoleServices; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @CrossOrigin @RestController @RequestMapping("/vehicle/role") public class RoleController { @Autowired public RoleServices roleServices; /** * 角色列表分页展示 * * @param currentpage * @param pagevolume * @return */ @RequestMapping("/rolePage") public JSONObject rolePage(@RequestParam int currentpage, @RequestParam int pagevolume) { JSONObject rolePageInfo = roleServices.rolePage(currentpage, pagevolume); return rolePageInfo; } /** * 角色下拉列表展示 * * @return */ @RequestMapping("/roleDis") public JSONObject roleDis() { return roleServices.roleDis(); } }