erp-java/services/sku-match-service/README.md

61 lines
2.1 KiB
Markdown

# SkuMatch Service
商品SKU匹配服务 - 平台商品管理、SKU匹配规则、AI匹配、匹配历史
## 基本信息
- **服务端口**: 8084
- **服务名称**: sku-match-service
- **模块分支**: 业务域/功能模块
- **数据库**: erp_db
## 功能清单
1. SKU匹配
2. 平台商品对接
3. 自动匹配规则
## API接口
| 方法 | 路径 | 描述 |
|------|------|------|
| GET | /sku-match/list | SkuMatchController接口 |
| GET | /sku-match/unmatched | SkuMatchController接口 |
| GET | /sku-match/erp-skus | SkuMatchController接口 |
| GET | /sku-match/rules | SkuMatchController接口 |
| GET | /sku-match/ai-config | SkuMatchController接口 |
| GET | /sku-match/export | SkuMatchController接口 |
| POST | /sku-match/manual | SkuMatchController接口 |
| POST | /sku-match/batch | SkuMatchController接口 |
| POST | /sku-match/rules | SkuMatchController接口 |
| POST | /sku-match/rules/execute | SkuMatchController接口 |
| POST | /sku-match/ai/execute | SkuMatchController接口 |
| PUT | /sku-match/rules/{id} | SkuMatchController接口 |
| PUT | /sku-match/rules/{id}/toggle | SkuMatchController接口 |
| PUT | /sku-match/ai-config | SkuMatchController接口 |
| DELETE | /sku-match/unmatch/{platformSkuId} | SkuMatchController接口 |
| DELETE | /sku-match/rules/{id} | SkuMatchController接口 |
| GET | /platform-goods/platform-shop/tree | PlatformGoodsController接口 |
| GET | /platform-goods/shops-by-platform | PlatformGoodsController接口 |
| GET | /platform-goods/list | PlatformGoodsController接口 |
| POST | /platform-goods/download | PlatformGoodsController接口 |
| POST | /platform-goods/bind | PlatformGoodsController接口 |
## 数据库表
| 表名 | 说明 |
|------|------|
| shop | Shop |
| platform_info | PlatformInfo |
| erp_sku | ErpSku |
| sku_match_rule | SkuMatchRule |
| ai_match_config | AiMatchConfig |
| platform_sku | PlatformSku |
| sku_match_record | SkuMatchRecord |
| sku_match_task | SkuMatchTask |
| platform_spu | PlatformSpu |
## 配置文件
- application.yml: 应用配置
## 启动方式
```bash
mvn clean package
java -jar target/sku-match-service.jar
```