微信小程序主页完成
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>service-product-client</module>
|
||||
<module>service-user-client</module>
|
||||
<module>service-search-client</module>
|
||||
</modules>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
@@ -21,7 +21,6 @@ import java.util.List;
|
||||
public interface ProductFeignClient {
|
||||
/**
|
||||
* 根据分类id获取分类信息
|
||||
* \
|
||||
*
|
||||
* @param categoryId
|
||||
* @return
|
||||
@@ -64,4 +63,20 @@ public interface ProductFeignClient {
|
||||
*/
|
||||
@PostMapping("/api/product/inner/findCategoryList")
|
||||
List<Category> findCategoryList(@RequestBody List<Long> categoryIdList);
|
||||
|
||||
/**
|
||||
* 获取所有分类
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/api/product/inner/findAllCategoryList")
|
||||
public List<Category> findAllCategoryList();
|
||||
|
||||
/**
|
||||
* 获取新人优惠
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/api/product/inner/findNewPersonSkuInfoList")
|
||||
public List<SkuInfo> findNewPersonSkuInfoList();
|
||||
}
|
||||
|
@@ -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-search-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,21 @@
|
||||
package com.atguigu.ssyx.client.search;
|
||||
|
||||
import com.atguigu.ssyx.model.search.SkuEs;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ClassName: SkuFeignClient
|
||||
* Package: com.atguigu.ssyx.client.search
|
||||
*
|
||||
* @author yovinchen
|
||||
* @Create 2023/9/25 22:44
|
||||
*/
|
||||
@FeignClient("service-search")
|
||||
public interface SkuFeignClient {
|
||||
|
||||
@GetMapping("/api/search/sku/inner/findHotSkuList")
|
||||
public List<SkuEs> findHotSkuList();
|
||||
}
|
20
guigu-ssyx-parent/service-client/service-user-client/pom.xml
Normal file
20
guigu-ssyx-parent/service-client/service-user-client/pom.xml
Normal file
@@ -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-user-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,26 @@
|
||||
package com.atguigu.ssyx.client.user;
|
||||
|
||||
import com.atguigu.ssyx.vo.user.LeaderAddressVo;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
|
||||
/**
|
||||
* ClassName: UserFeignClient
|
||||
* Package: com.atguigu.ssyx.client.user
|
||||
*
|
||||
* @author yovinchen
|
||||
* @Create 2023/9/25 12:27
|
||||
*/
|
||||
@FeignClient(value = "service-user")
|
||||
public interface UserFeignClient {
|
||||
|
||||
/**
|
||||
* 提货点地址信息
|
||||
*
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/api/user/leader/inner/getUserAddressByUserId/{userId}")
|
||||
LeaderAddressVo getUserAddressByUserId(@PathVariable(value = "userId") Long userId);
|
||||
}
|
Reference in New Issue
Block a user