# 接口变更记录 — 2026-04-01 17:45

> **提交** `8bd5229e` · **作者** wx · **时间** 2026-04-01 17:45:27 +0800
>
> feat: 小程序全接口Redis缓存+管理端实时清除

## 变更总览

- **小程序聚合服务**
  - 🆕 InternalCache (+2 接口)

---

## 小程序聚合服务

### 🆕 新增: InternalCache

> 📖 **接口文档**: [http://192.168.100.236:8086/doc.html](http://192.168.100.236:8086/doc.html) → 标签 **「内部 - 缓存管理」**

### 📌 `POST` /internal/mp/cache/evict — 按前缀清除缓存

**请求体** `EvictRequest`

**响应** `Result<Void>`

### 📌 `DELETE` /internal/mp/cache/{resourceType} — 按资源类型清除缓存

**参数**

  - `{resourceType}` (`String`) — 路径参数：资源类型: product/scenic/hotel/activity/restaurant/wiki/explore/designer/review/dict/config/common/home/banner

**响应** `Result<Void>`

---

<details>
<summary>📁 全部变更文件 (点击展开)</summary>

```
A	hl-common/hl-common-redis/src/main/java/com/hulalv/common/redis/MpCacheEvict.java
A	hl-mp-service/src/main/java/com/hulalv/mp/annotation/MpCache.java
A	hl-mp-service/src/main/java/com/hulalv/mp/aspect/MpCacheAspect.java
A	hl-mp-service/src/main/java/com/hulalv/mp/constant/CacheKeys.java
A	hl-mp-service/src/main/java/com/hulalv/mp/controller/InternalCacheController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpActivityController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpBannerController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpCommonController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpConfigController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpDesignerController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpDictController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpExploreController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpHotelController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpProductController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpRestaurantController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpReviewController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpScenicController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpSearchController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpWikiController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/service/CacheService.java
M	hl-product-service/src/main/java/com/hulalv/product/service/ProductService.java
M	hl-product-service/src/main/java/com/hulalv/product/service/ProductStatusService.java
M	hl-product-service/src/test/java/com/hulalv/product/service/MpProductServiceTest.java
M	hl-product-service/src/test/java/com/hulalv/product/service/ProductServiceTest.java
M	hl-product-service/src/test/java/com/hulalv/product/service/ProductStatusServiceTest.java
M	hl-resource-service/src/main/java/com/hulalv/resource/activity/service/ActivityService.java
M	hl-resource-service/src/main/java/com/hulalv/resource/hotel/service/HotelService.java
M	hl-resource-service/src/main/java/com/hulalv/resource/restaurant/service/RestaurantService.java
M	hl-resource-service/src/main/java/com/hulalv/resource/scenic/service/ScenicSpotService.java
M	hl-resource-service/src/test/java/com/hulalv/resource/activity/service/ActivityServiceTest.java
M	hl-resource-service/src/test/java/com/hulalv/resource/hotel/service/HotelServiceTest.java
M	hl-resource-service/src/test/java/com/hulalv/resource/restaurant/service/RestaurantServiceTest.java
M	hl-resource-service/src/test/java/com/hulalv/resource/scenic/service/ScenicSpotServiceTest.java
M	hl-user-service/src/main/java/com/hulalv/user/service/BannerService.java
M	hl-user-service/src/main/java/com/hulalv/user/service/FrontendConfigService.java
M	hl-user-service/src/main/java/com/hulalv/user/service/SysDictService.java
M	hl-user-service/src/test/java/com/hulalv/user/service/BannerServiceTest.java
M	hl-user-service/src/test/java/com/hulalv/user/service/FrontendConfigServiceFullTest.java
M	hl-user-service/src/test/java/com/hulalv/user/service/FrontendConfigServiceTest.java
```
</details>