| 1234567891011121314151617181920212223242526272829 |
- package com.goafanti.permission.controller;
- import javax.annotation.Resource;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestMethod;
- import org.springframework.web.bind.annotation.RestController;
- import com.goafanti.common.bo.Result;
- import com.goafanti.common.controller.BaseApiController;
- import com.goafanti.common.model.Role;
- import com.goafanti.permission.service.NewRoleService;
- @RestController
- @RequestMapping("open/api/admin/role")
- public class NewRoleApiController extends BaseApiController{
- @Resource
- private NewRoleService newRoleService;
-
-
- @RequestMapping(value = "/roles", method = RequestMethod.POST)
- public Result roles(Role role, Integer pageNo,
- Integer pageSize) {
- Result res = new Result();
- res.setData(newRoleService.findRoles(role,pageNo,pageSize));
- return res;
- }
- }
|