You've already forked FrameTour-BE
feat(price): 新增根据商品类型查询简化商品列表接口
- 在 PriceBiz 中新增 listSimpleGoodsByScenic 方法,支持按 productType 查询不同数据源 - 新增对多种商品类型的处理逻辑,包括 VLOG_VIDEO、PHOTO、PHOTO_SET 等 - 为兼容旧逻辑,增加 listAllSimpleGoods 方法轮询所有启用的商品类型 - 在 PriceConfigController 中修改 goodsList 接口,支持 productType 参数并返回简化商品列表 - 引入 SimpleGoodsRespVO 用于简化商品信息响应结构 - 注入 PuzzleTemplateMapper 和 IProductTypeCapabilityManagementService 依赖以支持新功能
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package com.ycwl.basic.model.pc.price.resp;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 简化的商品响应VO - 仅包含商品ID和名称
|
||||
*/
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Data
|
||||
public class SimpleGoodsRespVO {
|
||||
/**
|
||||
* 商品ID(模板ID或固定值)
|
||||
*/
|
||||
private Long goodsId;
|
||||
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
private String goodsName;
|
||||
|
||||
/**
|
||||
* 商品类型
|
||||
*/
|
||||
private String productType;
|
||||
}
|
||||
Reference in New Issue
Block a user