RemoteReceiptPreferenceService.java
747 Bytes
package com.huaheng.config.api;
import com.huaheng.common.core.constant.ServiceNameConstants;
import com.huaheng.config.api.domain.ReceiptPreference;
import com.huaheng.config.api.factory.RemoteReceiptPreferenceFallFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
@FeignClient(contextId = "RemoteReceiptPreferenceService", value = ServiceNameConstants.CONFIG_SERVICE, fallbackFactory = RemoteReceiptPreferenceFallFactory.class)
public interface RemoteReceiptPreferenceService {
@GetMapping("/config/receiptPreference/getByCode")
ReceiptPreference getByCode(String code);
@GetMapping("/config/receiptPreference/getByCode")
ReceiptPreference getOne();
}