From 9a55fd723b90ba09575272a9a15088b249893278 Mon Sep 17 00:00:00 2001 From: Administrator <15274802129@163.com> Date: Tue, 20 May 2025 14:41:24 +0800 Subject: [PATCH] refactor(mall): 优化余额和积分描述的格式化方式 - 使用 Hutool 工具库的 StrUtil.format() 方法替代 String.format() - 提高代码的可读性和性能 --- src/main/java/cc/mrbird/febs/mall/vo/MallGoodsDetailsVo.java | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/vo/MallGoodsDetailsVo.java b/src/main/java/cc/mrbird/febs/mall/vo/MallGoodsDetailsVo.java index 0dcaacd..deb8872 100644 --- a/src/main/java/cc/mrbird/febs/mall/vo/MallGoodsDetailsVo.java +++ b/src/main/java/cc/mrbird/febs/mall/vo/MallGoodsDetailsVo.java @@ -18,6 +18,9 @@ @ApiModelProperty(value = "id") private Long id; + @ApiModelProperty(value = "商品主图") + private String thumb; + @ApiModelProperty(value = "商品编号") private String goodsNo; @@ -35,6 +38,9 @@ @ApiModelProperty(value = "原价") private String originalPrice; + + @ApiModelProperty(value = "积分价格") + private String staticPropPrice; @ApiModelProperty(value = "现价") private String presentPrice; @@ -90,4 +96,19 @@ @ApiModelProperty(value = "单位") private String unit; + + @ApiModelProperty(value = "1级代理价格") + private BigDecimal levelOnePrice; + + @ApiModelProperty(value = "2级代理价格") + private BigDecimal levelTwoPrice; + + @ApiModelProperty(value = "3级代理价格") + private BigDecimal levelThreePrice; + + @ApiModelProperty(value = "是否收藏") + private Integer hasCollect; + + @ApiModelProperty(value = "商品主图") + private String mainImage; } -- Gitblit v1.9.1