From 0f0c16f07f1ea65feb1245cb302e594d8baf872e Mon Sep 17 00:00:00 2001 From: pikaqiudeshujia Date: Tue, 7 May 2024 17:02:27 +0800 Subject: [PATCH] =?UTF-8?q?release-=20=E6=96=B0=E5=A2=9E=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/constants/Constants.java | 2 + .../src/main/java/dto/MallProduct.java | 150 ++++++++++++++++++ .../java/dto/MallProductAttributeValue.java | 32 ++++ luoo_music/src/main/resources/bootstrap.yml | 14 +- 4 files changed, 197 insertions(+), 1 deletion(-) create mode 100644 luoo_common/src/main/java/dto/MallProduct.java create mode 100644 luoo_common/src/main/java/dto/MallProductAttributeValue.java diff --git a/luoo_common/src/main/java/constants/Constants.java b/luoo_common/src/main/java/constants/Constants.java index e6da96c..b5a400d 100644 --- a/luoo_common/src/main/java/constants/Constants.java +++ b/luoo_common/src/main/java/constants/Constants.java @@ -38,6 +38,8 @@ public class Constants { public static final String RABBIT_MESSAGE_CLEAN_JOURANL_QUERY_PAGE = "clean_journal_query_page"; public static final String RABBIT_MESSAGE_USER_COLLECT_JOURNAL = "user_collect_journal"; + public static final String RABBIT_MALL_PRODUCT_ADD = "luoo_mall_product_add"; + public static final String TOKEN_PREFIX = "Bearer "; public static final int TOKEN_PREFIX_LENGTH = TOKEN_PREFIX.length(); diff --git a/luoo_common/src/main/java/dto/MallProduct.java b/luoo_common/src/main/java/dto/MallProduct.java new file mode 100644 index 0000000..bf9464f --- /dev/null +++ b/luoo_common/src/main/java/dto/MallProduct.java @@ -0,0 +1,150 @@ +package dto; + +import io.swagger.annotations.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.math.BigDecimal; + +/** + * @Author: yawei.huang + * @Package: dto + * @Project: luoo_parent + * @Date: 2024/5/7 16:31 + * @Filename: MallProduct + * @Describe: 商城的商品实体类 + */ +@Data +@Builder +@AllArgsConstructor +@NoArgsConstructor +public class MallProduct implements Serializable { + + // 品牌,固定雀乐 + private Long brandId; + + // 分类,固定歌曲 + private Long productCategoryId; + + // 产品属性分类表,固定歌曲 + private Long productAttributeCategoryId; + + // 商品名称,取歌曲名称 + private String name; + + // 商品图片,取歌曲图片image + private String pic; + + // 排序,取歌曲排序 + @ApiModelProperty(value = "排序") + private Integer sort; + + // 价格 + private BigDecimal price; + + // 副标题取标题 + @ApiModelProperty(value = "副标题") + private String subTitle; +// +// +// @ApiModelProperty(value = "销量") +// private Integer sale; +// +// @ApiModelProperty(value = "促销价格") +// private BigDecimal promotionPrice; +// +// @ApiModelProperty(value = "赠送的成长值") +// private Integer giftGrowth; +// +// @ApiModelProperty(value = "赠送的积分") +// private Integer giftPoint; +// +// @ApiModelProperty(value = "限制使用的积分数") +// private Integer usePointLimit; + + +// @ApiModelProperty(value = "市场价") +// private BigDecimal originalPrice; +// +// @ApiModelProperty(value = "库存") +// private Integer stock; +// +// @ApiModelProperty(value = "库存预警值") +// private Integer lowStock; +// +// @ApiModelProperty(value = "单位") +// private String unit; + +// @ApiModelProperty(value = "商品重量,默认为克") +// private BigDecimal weight; +// +// @ApiModelProperty(value = "是否为预告商品:0->不是;1->是") +// private Integer previewStatus; +// +// @ApiModelProperty(value = "以逗号分割的产品服务:1->无忧退货;2->快速退款;3->免费包邮") +// private String serviceIds; +// +// private String keywords; +// +// private String note; +// +// @ApiModelProperty(value = "画册图片,连产品图片限制为5张,以逗号分割") +// private String albumPics; +// +// private String detailTitle; +// +// @ApiModelProperty(value = "促销开始时间") +// private Date promotionStartTime; +// +// @ApiModelProperty(value = "促销结束时间") +// private Date promotionEndTime; +// +// @ApiModelProperty(value = "活动限购数量") +// private Integer promotionPerLimit; +// +// @ApiModelProperty(value = "促销类型:0->没有促销使用原价;1->使用促销价;2->使用会员价;3->使用阶梯价格;4->使用满减价格;5->限时购") +// private Integer promotionType; +// +// @ApiModelProperty(value = "品牌名称") +// private String brandName; +// +// @ApiModelProperty(value = "商品分类名称") +// private String productCategoryName; +// +// @ApiModelProperty(value = "商品描述") +// private String description; +// +// private String detailDesc; +// +// @ApiModelProperty(value = "产品详情网页内容") +// private String detailHtml; +// +// @ApiModelProperty(value = "移动端网页详情") +// private String detailMobileHtml; +// +// @ApiModelProperty(value = "货号") +// private String productSn; +// +// @ApiModelProperty(value = "删除状态:0->未删除;1->已删除") +// private Integer deleteStatus; +// +// @ApiModelProperty(value = "上架状态:0->下架;1->上架") +// private Integer publishStatus; +// +// @ApiModelProperty(value = "新品状态:0->不是新品;1->新品") +// private Integer newStatus; +// +// @ApiModelProperty(value = "推荐状态;0->不推荐;1->推荐") +// private Integer recommandStatus; +// +// @ApiModelProperty(value = "审核状态:0->未审核;1->审核通过") +// private Integer verifyStatus; + + + + + +} diff --git a/luoo_common/src/main/java/dto/MallProductAttributeValue.java b/luoo_common/src/main/java/dto/MallProductAttributeValue.java new file mode 100644 index 0000000..a51f9e7 --- /dev/null +++ b/luoo_common/src/main/java/dto/MallProductAttributeValue.java @@ -0,0 +1,32 @@ +package dto; + +import io.swagger.annotations.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * @Author: yawei.huang + * @Package: dto + * @Project: luoo_parent + * @Date: 2024/5/7 16:33 + * @Filename: MallProductAttribute + * @Describe: + */ +@Data +@Builder +@AllArgsConstructor +@NoArgsConstructor +public class MallProductAttributeValue implements Serializable { + + + // 商品属性id + private Long productAttributeId; + + @ApiModelProperty(value = "手动添加规格或参数的值,参数单值,规格有多个时以逗号隔开") + private String value; + +} diff --git a/luoo_music/src/main/resources/bootstrap.yml b/luoo_music/src/main/resources/bootstrap.yml index fad3b06..d58b2de 100644 --- a/luoo_music/src/main/resources/bootstrap.yml +++ b/luoo_music/src/main/resources/bootstrap.yml @@ -55,4 +55,16 @@ caffeine: spring: cache: # 一级缓存使用caffeine - type: caffeine \ No newline at end of file + type: caffeine + +mall: + product: + brandId: 60 + productCategoryId: 57 + productAttributeCategoryId: 16 + attribute: + artistId: 74 + artistName: 75 + albumId: 76 + albumName: 77 + songId: 78