1
This commit is contained in:
@@ -23,9 +23,9 @@ public class BatchPublishRequest {
|
||||
@NotEmpty(message = "商品列表不能为空")
|
||||
private List<ProductItem> products;
|
||||
|
||||
/** 目标ERP账号列表 */
|
||||
@NotEmpty(message = "目标账号不能为空")
|
||||
private List<String> targetAccounts;
|
||||
/** 账号配置列表(包含多个主账号及其子账号) */
|
||||
@NotEmpty(message = "账号配置不能为空")
|
||||
private List<AccountConfig> accountConfigs;
|
||||
|
||||
/** 通用参数 */
|
||||
@NotNull(message = "通用参数不能为空")
|
||||
@@ -34,6 +34,35 @@ public class BatchPublishRequest {
|
||||
/** 延迟上架时间(秒),默认3秒 */
|
||||
private Integer delaySeconds = 3;
|
||||
|
||||
/**
|
||||
* 账号配置(主账号+子账号列表)
|
||||
*/
|
||||
public static class AccountConfig {
|
||||
/** 目标ERP账号(appid) */
|
||||
@NotBlank(message = "目标账号不能为空")
|
||||
private String targetAccount;
|
||||
|
||||
/** 该账号下的子账号列表 */
|
||||
@NotEmpty(message = "子账号不能为空")
|
||||
private List<String> subAccounts;
|
||||
|
||||
public String getTargetAccount() {
|
||||
return targetAccount;
|
||||
}
|
||||
|
||||
public void setTargetAccount(String targetAccount) {
|
||||
this.targetAccount = targetAccount;
|
||||
}
|
||||
|
||||
public List<String> getSubAccounts() {
|
||||
return subAccounts;
|
||||
}
|
||||
|
||||
public void setSubAccounts(List<String> subAccounts) {
|
||||
this.subAccounts = subAccounts;
|
||||
}
|
||||
}
|
||||
|
||||
public static class ProductItem {
|
||||
/** SKUID */
|
||||
@NotBlank(message = "SKUID不能为空")
|
||||
@@ -292,12 +321,12 @@ public class BatchPublishRequest {
|
||||
this.products = products;
|
||||
}
|
||||
|
||||
public List<String> getTargetAccounts() {
|
||||
return targetAccounts;
|
||||
public List<AccountConfig> getAccountConfigs() {
|
||||
return accountConfigs;
|
||||
}
|
||||
|
||||
public void setTargetAccounts(List<String> targetAccounts) {
|
||||
this.targetAccounts = targetAccounts;
|
||||
public void setAccountConfigs(List<AccountConfig> accountConfigs) {
|
||||
this.accountConfigs = accountConfigs;
|
||||
}
|
||||
|
||||
public CommonParams getCommonParams() {
|
||||
|
||||
Reference in New Issue
Block a user