puzhibing
2026-04-01 4dbdb4bc373f0cb20c7aa374d8cbcadfa7c56c97
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.xiaopeng.api.feignClient.account;
 
 
import com.xiaopeng.api.factory.account.SysRoleMenuClientFallbackFactory;
import com.xiaopeng.common.core.domain.R;
import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
 
@FeignClient(contextId = "SysRoleMenuClient",
        value = ServiceNameConstantsEnum.XP_ACCOUNT_SERVICE,
        fallbackFactory = SysRoleMenuClientFallbackFactory.class)
public interface SysRoleMenuClient {
 
 
    /**
     * 检查菜单是否已分配给角色
     * @param menuId 菜单ID
     * @return 是否已分配
     */
    @PostMapping("/inner/sysRoleMenu/checkMenuExistRole")
    R<Boolean> checkMenuExistRole(Long menuId);
}