package com.xhpc.common.api;

import com.xhpc.common.api.factory.CardFallbackFactory;
import com.xhpc.common.core.constant.ServiceNameConstants;
import com.xhpc.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 卡订单
 * @author yuyang
 * @date 2022/1/19 16:56
 */
@FeignClient(contextId ="cardService",value = ServiceNameConstants.XHPC_CARD, fallbackFactory = CardFallbackFactory.class)
public interface CardService {

    /**
     * 卡启动判断接口
     * @param cardno        卡编号
     * @param serialNumber  终端编码
     * @return
     */
    @GetMapping("/card/cardStartup")
    R cardStartup(@RequestParam(value = "cardno") String cardno, @RequestParam(value = "serialNumber") String serialNumber, @RequestParam(value = "rateModelId") String rateModelId);
}
