yanghui
2022-11-28 42521c9b51c1bd9a40036f18fd610cd46601222d
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/RoleApi.java
@@ -4,6 +4,7 @@
import javax.annotation.Resource;
import com.panzhihua.common.controller.BaseController;
import org.springframework.web.bind.annotation.*;
import com.panzhihua.common.model.vos.MenuVO;
@@ -20,7 +21,7 @@
 **/
@RestController
@RequestMapping("/role/")
public class RoleApi {
public class RoleApi extends BaseController {
    @Resource
    private RoleService roleService;
@@ -66,8 +67,8 @@
     * @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);
    }
    /**
@@ -103,7 +104,7 @@
     */
    @PostMapping("listmenubackstage")
    public R listMenuBackstage(@RequestParam("communityId") Long communityId) {
        return roleService.listMenuBackstage(communityId);
        return roleService.listMenuBackstage(communityId,this.getAppId());
    }
    /**