整合es、rabbitmq、redis完成上下架修改es
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.atguigu</groupId>
|
||||
<artifactId>service-client</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>service-product-client</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
</project>
|
@@ -0,0 +1,24 @@
|
||||
package com.atguigu.ssyx.client.product;
|
||||
|
||||
import com.atguigu.ssyx.model.product.Category;
|
||||
import com.atguigu.ssyx.model.product.SkuInfo;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
|
||||
/**
|
||||
* ClassName: ProductFeignClient
|
||||
* Package: com.atguigu.ssyx.client.product
|
||||
*
|
||||
* @author yovinchen
|
||||
* @Create 2023/9/16 17:45
|
||||
*/
|
||||
@FeignClient(value = "service-product")
|
||||
public interface ProductFeignClient {
|
||||
|
||||
@GetMapping("/api/product/inner/getCategory/{categoryId}")
|
||||
Category getCategory(@PathVariable("categoryId") Long categoryId);
|
||||
|
||||
@GetMapping("/api/product/inner/getSkuInfo/{skuId}")
|
||||
SkuInfo getSkuInfo(@PathVariable("skuId") Long skuId);
|
||||
}
|
Reference in New Issue
Block a user