222
parent
c003b4f1c3
commit
001e2bd4be
|
@ -0,0 +1,21 @@
|
||||||
|
# 拼团策略功能划分
|
||||||
|
# 1 拼团列表
|
||||||
|
策略列表:
|
||||||
|
5人团
|
||||||
|
百人团
|
||||||
|
团长免单团
|
||||||
|
# 2. 点击拼团 进入商品列表
|
||||||
|
# 3. 拼团详情
|
||||||
|
# 4. 拼团成功
|
||||||
|
# 5 支付订单
|
||||||
|
# 6. 拼团失败
|
||||||
|
# 7 重新加入拼团
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# 商品列表
|
||||||
|
# 参团列表
|
||||||
|
# 购买
|
||||||
|
# 评论
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
package com.muyu.marketing.domain.model;
|
||||||
|
|
||||||
|
import com.muyu.marketing.domain.ActivityTeamProductSkuInfo;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.SuperBuilder;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName ActivityTeamAddSkuInfo
|
||||||
|
* @Description 描述
|
||||||
|
* @Author zhen_xiong_feng
|
||||||
|
* @Date 2024/11/27 20:30
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@SuperBuilder
|
||||||
|
public class ActivityTeamAddSkuInfo {
|
||||||
|
// "添加商品规格List": [
|
||||||
|
// "商品SKU": "String",
|
||||||
|
// "商品价格": "BigDecimal",
|
||||||
|
// "拼团价格": "BigDecimal",
|
||||||
|
// "拼团库存": "Long"
|
||||||
|
// ]
|
||||||
|
/**
|
||||||
|
* 商品SKU
|
||||||
|
*/
|
||||||
|
private String productSku;
|
||||||
|
/**
|
||||||
|
* 拼团价格
|
||||||
|
*/
|
||||||
|
private BigDecimal teamPrice;
|
||||||
|
/**
|
||||||
|
* 拼团库存
|
||||||
|
*/
|
||||||
|
private Long teamStock;
|
||||||
|
|
||||||
|
public static ActivityTeamAddSkuInfo addSkuInfo(ActivityTeamProductSkuInfo activityTeamProductSkuInfo){
|
||||||
|
return ActivityTeamAddSkuInfo.builder()
|
||||||
|
.productSku(activityTeamProductSkuInfo.getProductSku())
|
||||||
|
.teamPrice(activityTeamProductSkuInfo.getTeamPrice())
|
||||||
|
.teamStock(activityTeamProductSkuInfo.getTeamStock())
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
}
|
|
@ -82,7 +82,6 @@ public class ActivityTeamInfoSaveModel {
|
||||||
.unit(activityTeamInfoAddModel.getUnit())
|
.unit(activityTeamInfoAddModel.getUnit())
|
||||||
.imageList(activityTeamInfoAddModel.getImageList())
|
.imageList(activityTeamInfoAddModel.getImageList())
|
||||||
.endTime(activityTeamInfoAddModel.getEndTime())
|
.endTime(activityTeamInfoAddModel.getEndTime())
|
||||||
.sort(activityTeamInfoAddModel.getSort())
|
|
||||||
.content(activityTeamInfoAddModel.getContent())
|
.content(activityTeamInfoAddModel.getContent())
|
||||||
.status(activityTeamInfoAddModel.getStatus())
|
.status(activityTeamInfoAddModel.getStatus())
|
||||||
.strategyType(activityTeamInfoAddModel.getStrategyType())
|
.strategyType(activityTeamInfoAddModel.getStrategyType())
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.muyu.marketing.domain.model;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.experimental.SuperBuilder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName ActivityTeamProductSkuDelModel
|
||||||
|
* @Description 描述
|
||||||
|
* @Author zhen_xiong_feng
|
||||||
|
* @Date 2024/11/27 19:00
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@SuperBuilder
|
||||||
|
public class ActivityTeamProductSkuDelModel {
|
||||||
|
/**
|
||||||
|
* 活动id
|
||||||
|
*/
|
||||||
|
private Integer productSkuId;
|
||||||
|
}
|
|
@ -0,0 +1,81 @@
|
||||||
|
package com.muyu.marketing.domain.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import org.apache.commons.math3.stat.descriptive.summary.Product;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName ActivityTeamUpdModel
|
||||||
|
* @Description 描述
|
||||||
|
* @Author zhen_xiong_feng
|
||||||
|
* @Date 2024/11/27 22:22
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Builder
|
||||||
|
public class ActivityTeamUpdModel {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 拼团名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
/**
|
||||||
|
* 商品ID
|
||||||
|
*/
|
||||||
|
private Long productId;
|
||||||
|
/**
|
||||||
|
* 商品活动图
|
||||||
|
*/
|
||||||
|
private String productImage;
|
||||||
|
/**
|
||||||
|
* 活动简介
|
||||||
|
*/
|
||||||
|
private String introduction;
|
||||||
|
/**
|
||||||
|
* 单位
|
||||||
|
*/
|
||||||
|
|
||||||
|
private String unit;
|
||||||
|
/**
|
||||||
|
* 轮播图
|
||||||
|
*/
|
||||||
|
|
||||||
|
private String imageList;
|
||||||
|
/**
|
||||||
|
* 活动结束时间
|
||||||
|
*/
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
|
||||||
|
private Date endTime;
|
||||||
|
/**
|
||||||
|
* 活动排序
|
||||||
|
*/
|
||||||
|
private Integer sort;
|
||||||
|
/**
|
||||||
|
* 商品SkU对象
|
||||||
|
*/
|
||||||
|
private ProductSkuModel productSkuModel;
|
||||||
|
/**
|
||||||
|
* 活动详情
|
||||||
|
*/
|
||||||
|
private String content;
|
||||||
|
/**
|
||||||
|
* 活动状态
|
||||||
|
*/
|
||||||
|
private String status;
|
||||||
|
/**
|
||||||
|
* 策略类型
|
||||||
|
*/
|
||||||
|
private String strategyType;
|
||||||
|
/**
|
||||||
|
* 策略ID
|
||||||
|
*/
|
||||||
|
private Long strategyId;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
package com.muyu.marketing.domain.model;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName ProductSkuModel
|
||||||
|
* @Description 描述
|
||||||
|
* @Author zhen_xiong_feng
|
||||||
|
* @Date 2024/11/27 22:24
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Builder
|
||||||
|
public class ProductSkuModel {
|
||||||
|
/**
|
||||||
|
* 修改商品规格List
|
||||||
|
*/
|
||||||
|
private List<ActivityTeamProductSkuUpdModel> activityTeamProductSkuUpdModelList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*删除商品规格IdList
|
||||||
|
*/
|
||||||
|
private List<Long> productIdList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加商品规格List
|
||||||
|
*/
|
||||||
|
private List<ActivityTeamProductSkuAddModel> activityTeamProductSkuAddModelList;
|
||||||
|
}
|
|
@ -2,7 +2,6 @@ package com.muyu.marketing.domain.resp;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.muyu.marketing.domain.model.ActivityTeamDetailModel;
|
import com.muyu.marketing.domain.model.ActivityTeamDetailModel;
|
||||||
import com.muyu.marketing.domain.req.ProjectSkuInfoAddReq;
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
Loading…
Reference in New Issue