package com.inspect.patrol.service;

import com.alibaba.fastjson.JSONObject;
import com.inspect.base.core.web.domain.AjaxResult;
import com.inspect.base.core.web.page.TableDataInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("inspect-metadata")
public interface BasedataChannelService {
    @GetMapping({"/eqpbook/channel/{channelId}"})
    AjaxResult queryById(@PathVariable("channelId") String channelId);


    @GetMapping({"/eqpbook/channel/channelCode/{channelCode}"})
    AjaxResult queryEqpBookChannelByChannelCode(@PathVariable("channelCode") String channelCode);

    @GetMapping({"/eqpbook/channel/list"})
    TableDataInfo queryChannelList(@RequestParam("basedataEqpbookChannel") JSONObject jsonObject);
}
