RemoteReceiptPreferenceService.java
982 Bytes
package com.huaheng.config.api;
import com.huaheng.common.core.config.FeignTokenInterceptor;
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;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(contextId = "RemoteReceiptPreferenceService", value = ServiceNameConstants.CONFIG_SERVICE, fallbackFactory = RemoteReceiptPreferenceFallFactory.class, configuration = FeignTokenInterceptor.class)
public interface RemoteReceiptPreferenceService {
@GetMapping("/receiptPreference/getByCode")
ReceiptPreference getByCode(@RequestParam("code") String code);
@GetMapping("/receiptPreference/getByCode")
ReceiptPreference getOne();
}