package cn.ey.biz.module.system.api.permission;

import cn.ey.biz.common.pojo.R;
import cn.ey.biz.module.system.api.permission.dto.MenuDTO;
import cn.ey.biz.module.system.enums.ApiConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = ApiConstants.NAME)
@Api(tags = "RPC 服务 - 菜单")
public interface MenuApi {

    String PREFIX = ApiConstants.PREFIX + "/menu";

    @PostMapping(PREFIX + "/import")
    @ApiOperation("批量导入菜单项")
    R<?> importMenus(@RequestBody List<MenuDTO> menus);
}
