package net.northking.cctp.debuger.feign;

import net.northking.cctp.common.feign.FeignCctpConfig;
import net.northking.cctp.common.http.ResultWrapper;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(name = "cctp-device-mgr", path = "/cctp-device-mgr", configuration = {FeignCctpConfig.class})
public interface DeviceFeignClient {

    @GetMapping("/pub/device/info/{token}")
    ResultWrapper<Map<String,Object>> getDeviceInfoByToken(@PathVariable("token")String deviceToken);

    @GetMapping("/pub/device/release/{token}")
    ResultWrapper<Boolean> exitDeviceUsage(@PathVariable("token")String deviceToken);

    @GetMapping("/pub/find/engine/{proId}")
    ResultWrapper<Map<String,Object>> getUsageEngine(@PathVariable("proId") String proId);
}
