package com.zd.system.api.chemical;

import com.zd.common.core.constant.ServiceNameConstants;
import com.zd.common.core.domain.R;
import com.zd.system.api.chemical.factory.RemoteCabinetFallbackFactory;
import com.zd.system.api.factory.RemoteExamFallbackFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * 化学品管理Feign调用接口
 */
@FeignClient(contextId = "remoteCabinetService", value = ServiceNameConstants.CHEMICAL_SERVICE, fallbackFactory = RemoteCabinetFallbackFactory.class)
public interface RemoteCabinetService {

    /**
     * 查询返回化学品机柜列表
     */
    @ApiOperation(value = "修改 化学品设备管理状态")
    @PostMapping("/hxpCabinet/getCabinetList")
    R<List <LinkedHashMap <String,String>>> getCabinetList(@RequestBody Map subMap);
}
