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);
|
}
|