package com.xiaopeng.api.feign.operation;
|
|
import com.xiaopeng.api.factory.RemoteMenuFallbackFactory;
|
import com.xiaopeng.api.model.operation.SysMenu;
|
import com.xiaopeng.common.core.constant.SecurityConstants;
|
import com.xiaopeng.common.core.constant.ServiceNameConstants;
|
import com.xiaopeng.common.core.domain.R;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.*;
|
|
import java.util.List;
|
|
/**
|
* 菜单服务
|
*
|
* @author ruoyi
|
*/
|
@FeignClient(contextId = "remoteMenuService", value = ServiceNameConstants.OPERATION_SERVICE, fallbackFactory = RemoteMenuFallbackFactory.class)
|
public interface RemoteMenuService
|
{
|
|
/**
|
* 根据菜单ID列表获取菜单列表
|
*
|
* @param menuIds 菜单ID列表
|
* @return 菜单列表
|
*/
|
@PostMapping("/menu/getMenusByMenuIds")
|
R<List<SysMenu>> getMenusByMenuIds(@RequestBody List<Long> menuIds);
|
|
}
|