店铺信息
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
|
||||
}
|
||||
@@ -17,7 +17,7 @@ public class ApiConstants {
|
||||
*/
|
||||
public static final String NAME = "product-server";
|
||||
|
||||
public static final String PREFIX = RpcConstants.RPC_API_PREFIX + "/infra";
|
||||
public static final String PREFIX = RpcConstants.RPC_API_PREFIX + "/product";
|
||||
|
||||
public static final String VERSION = "1.0.0";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user