修正项目

This commit is contained in:
2024-01-07 01:10:08 +08:00
parent 2f29241806
commit b22014e976
943 changed files with 27699 additions and 28227 deletions

View 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.yovinchen</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>

View File

@@ -0,0 +1,96 @@
package com.yovinchen.xlcs.client.product;
import com.yovinchen.xlcs.model.product.Category;
import com.yovinchen.xlcs.model.product.SkuInfo;
import com.yovinchen.xlcs.vo.product.SkuInfoVo;
import com.yovinchen.xlcs.vo.product.SkuStockLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;
/**
* ClassName: ProductFeignClient
* Package: com.yovinchen.xlcs.client.product
*
* @author yovinchen
* @Create 2023/9/16 17:45
*/
@FeignClient(value = "service-product")
public interface ProductFeignClient {
/**
* 根据分类id获取分类信息
*
* @param categoryId
* @return
*/
@GetMapping("/api/product/inner/getCategory/{categoryId}")
Category getCategory(@PathVariable("categoryId") Long categoryId);
/**
* 根据skuId获取sku信息
*
* @param skuId
* @return
*/
@GetMapping("/api/product/inner/getSkuInfo/{skuId}")
SkuInfo getSkuInfo(@PathVariable("skuId") Long skuId);
/**
* 根据关键字匹配sku列表
*
* @param keyword
* @return
*/
@GetMapping("/api/product/inner/findSkuInfoByKeyword/{keyword}")
List<SkuInfo> findSkuInfoByKeyword(@PathVariable("keyword") String keyword);
/**
* 根据skuid列表得到sku信息列表
*
* @param skuIdList
* @return
*/
@PostMapping("/api/product/inner/findSkuInfoList")
List<SkuInfo> findSkuInfoList(@RequestBody List<Long> skuIdList);
/**
* 批量获取分类信息
*
* @param categoryIdList
* @return
*/
@PostMapping("/api/product/inner/findCategoryList")
List<Category> findCategoryList(@RequestBody List<Long> categoryIdList);
/**
* 获取所有分类
*
* @return
*/
@GetMapping("/api/product/inner/findAllCategoryList")
List<Category> findAllCategoryList();
/**
* 获取新人优惠
*
* @return
*/
@GetMapping("/api/product/inner/findNewPersonSkuInfoList")
List<SkuInfo> findNewPersonSkuInfoList();
/**
* 根据skuId获取sku信息
*
* @param skuId
* @return
*/
@GetMapping("/api/product/inner/getSkuInfoVo/{skuId}")
SkuInfoVo getSkuInfoVo(@PathVariable Long skuId);
@PostMapping("/api/product/inner/checkAndLock/{orderNo}")
Boolean checkAndLock(@RequestBody List<SkuStockLockVo> commonStockLockVoList, @PathVariable("orderNo") String orderNo);
}