| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.panzhihua.common.model.vos.MenuVO; |
| | |
| | | **/ |
| | | @RestController |
| | | @RequestMapping("/role/") |
| | | public class RoleApi { |
| | | public class RoleApi extends BaseController { |
| | | @Resource |
| | | private RoleService roleService; |
| | | |
| | |
| | | * @return 角色集合 |
| | | */ |
| | | @PostMapping("listrolebackstage") |
| | | public R listRoleBackstage(@RequestParam("communityId") Long communityId) { |
| | | return roleService.listRoleBackstage(communityId); |
| | | public R listRoleBackstage(@RequestParam("communityId") Long communityId,@RequestParam("pageNum")Integer pageNum,@RequestParam("pageSize")Integer pageSize,@RequestParam("areaCode")String areaCode) { |
| | | return roleService.listRoleBackstage(communityId,pageNum,pageSize,areaCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @PostMapping("listmenubackstage") |
| | | public R listMenuBackstage(@RequestParam("communityId") Long communityId) { |
| | | return roleService.listMenuBackstage(communityId); |
| | | return roleService.listMenuBackstage(communityId,this.getAppId()); |
| | | } |
| | | |
| | | /** |