package com.tashow.cloud.productapi.api.product;

import com.tashow.cloud.productapi.api.product.dto.CategoryDO;
import com.tashow.cloud.productapi.api.product.dto.ShopDetailDO;
import com.tashow.cloud.productapi.enums.ApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = ApiConstants.NAME) // TODO 芋艿：fallbackFactory =
/** RPC 服务 - 参数配置 */
public interface ShopDetailApi {

  String PREFIX = ApiConstants.PREFIX + "/shop";

  @GetMapping(PREFIX + "/getShopInfo")
  ShopDetailDO getShopInfo(@RequestParam(value = "id", required = false) Long id);

}
