This commit is contained in:
2025-10-09 19:45:14 +08:00
parent e6ced14040
commit 2a93522bcf
15 changed files with 2158 additions and 1 deletions

View File

@@ -0,0 +1,319 @@
package com.ruoyi.jarvis.domain.request;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* 批量发品请求对象
*
* @author ruoyi
* @date 2025-01-10
*/
public class BatchPublishRequest {
/** 任务名称 */
private String taskName;
/** 原始线报消息 */
private String originalMessage;
/** 选中的商品列表 */
@NotEmpty(message = "商品列表不能为空")
private List<ProductItem> products;
/** 目标ERP账号列表 */
@NotEmpty(message = "目标账号不能为空")
private List<String> targetAccounts;
/** 通用参数 */
@NotNull(message = "通用参数不能为空")
private CommonParams commonParams;
/** 延迟上架时间默认3秒 */
private Integer delaySeconds = 3;
public static class ProductItem {
/** SKUID */
@NotBlank(message = "SKUID不能为空")
private String skuid;
/** 商品名称 */
private String productName;
/** 商品价格(元) */
private Double price;
/** 商品图片 */
private String productImage;
/** 店铺名称 */
private String shopName;
/** 店铺ID */
private String shopId;
/** 佣金比例 */
private String commissionInfo;
public String getSkuid() {
return skuid;
}
public void setSkuid(String skuid) {
this.skuid = skuid;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
public String getProductImage() {
return productImage;
}
public void setProductImage(String productImage) {
this.productImage = productImage;
}
public String getShopName() {
return shopName;
}
public void setShopName(String shopName) {
this.shopName = shopName;
}
public String getShopId() {
return shopId;
}
public void setShopId(String shopId) {
this.shopId = shopId;
}
public String getCommissionInfo() {
return commissionInfo;
}
public void setCommissionInfo(String commissionInfo) {
this.commissionInfo = commissionInfo;
}
}
public static class CommonParams {
/** 会员名 */
@NotBlank(message = "会员名不能为空")
private String userName;
/** 省 */
@NotNull(message = "省不能为空")
private Integer province;
/** 市 */
@NotNull(message = "市不能为空")
private Integer city;
/** 区 */
@NotNull(message = "区不能为空")
private Integer district;
/** 商品类型 */
@NotNull(message = "商品类型不能为空")
private Integer itemBizType;
/** 行业类型 */
@NotNull(message = "行业类型不能为空")
private Integer spBizType;
/** 类目ID */
@NotBlank(message = "类目ID不能为空")
private String channelCatId;
/** 邮费(元) */
@NotNull(message = "邮费不能为空")
private Double expressFee;
/** 库存 */
@NotNull(message = "库存不能为空")
private Integer stock;
/** 成色 */
private Integer stuffStatus;
/** 服务支持(逗号分隔) */
private String serviceSupport;
/** 商品属性JSON */
private String channelPv;
/** 白底图链接 */
private String whiteImages;
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public Integer getProvince() {
return province;
}
public void setProvince(Integer province) {
this.province = province;
}
public Integer getCity() {
return city;
}
public void setCity(Integer city) {
this.city = city;
}
public Integer getDistrict() {
return district;
}
public void setDistrict(Integer district) {
this.district = district;
}
public Integer getItemBizType() {
return itemBizType;
}
public void setItemBizType(Integer itemBizType) {
this.itemBizType = itemBizType;
}
public Integer getSpBizType() {
return spBizType;
}
public void setSpBizType(Integer spBizType) {
this.spBizType = spBizType;
}
public String getChannelCatId() {
return channelCatId;
}
public void setChannelCatId(String channelCatId) {
this.channelCatId = channelCatId;
}
public Double getExpressFee() {
return expressFee;
}
public void setExpressFee(Double expressFee) {
this.expressFee = expressFee;
}
public Integer getStock() {
return stock;
}
public void setStock(Integer stock) {
this.stock = stock;
}
public Integer getStuffStatus() {
return stuffStatus;
}
public void setStuffStatus(Integer stuffStatus) {
this.stuffStatus = stuffStatus;
}
public String getServiceSupport() {
return serviceSupport;
}
public void setServiceSupport(String serviceSupport) {
this.serviceSupport = serviceSupport;
}
public String getChannelPv() {
return channelPv;
}
public void setChannelPv(String channelPv) {
this.channelPv = channelPv;
}
public String getWhiteImages() {
return whiteImages;
}
public void setWhiteImages(String whiteImages) {
this.whiteImages = whiteImages;
}
}
public String getTaskName() {
return taskName;
}
public void setTaskName(String taskName) {
this.taskName = taskName;
}
public String getOriginalMessage() {
return originalMessage;
}
public void setOriginalMessage(String originalMessage) {
this.originalMessage = originalMessage;
}
public List<ProductItem> getProducts() {
return products;
}
public void setProducts(List<ProductItem> products) {
this.products = products;
}
public List<String> getTargetAccounts() {
return targetAccounts;
}
public void setTargetAccounts(List<String> targetAccounts) {
this.targetAccounts = targetAccounts;
}
public CommonParams getCommonParams() {
return commonParams;
}
public void setCommonParams(CommonParams commonParams) {
this.commonParams = commonParams;
}
public Integer getDelaySeconds() {
return delaySeconds;
}
public void setDelaySeconds(Integer delaySeconds) {
this.delaySeconds = delaySeconds;
}
}

View File

@@ -0,0 +1,25 @@
package com.ruoyi.jarvis.domain.request;
import javax.validation.constraints.NotBlank;
/**
* 解析线报消息请求对象
*
* @author ruoyi
* @date 2025-01-10
*/
public class ParseLineReportRequest {
/** 线报消息内容 */
@NotBlank(message = "线报消息不能为空")
private String message;
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}