商品规格的迁移
This commit is contained in:
@@ -76,9 +76,9 @@ public interface ProductAttrRpc {
|
||||
/**
|
||||
* 获得商品规格值列表
|
||||
*
|
||||
* @param productAttrValueIds 商品规格值编号列表
|
||||
* @param queryDTO 商品规格值的列表查询条件 DTO
|
||||
* @return 商品规格值列表
|
||||
*/
|
||||
CommonResult<List<ProductAttrValueRespDTO>> listProductAttrValues(List<Integer> productAttrValueIds);
|
||||
CommonResult<List<ProductAttrValueRespDTO>> listProductAttrValues(ProductAttrValueListQueryRequestDTO queryDTO);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package cn.iocoder.mall.productservice.rpc.attr.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品规格值的列表查询条件 Request DTO
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class ProductAttrValueListQueryRequestDTO implements Serializable {
|
||||
|
||||
/**
|
||||
* 商品规格值编号列表
|
||||
*/
|
||||
private List<Integer> productAttrValueIds;
|
||||
|
||||
/**
|
||||
* 商品规格键编号
|
||||
*/
|
||||
private Integer productAttrKeyId;
|
||||
|
||||
}
|
||||
@@ -2,16 +2,13 @@ package cn.iocoder.mall.productservice.rpc.attr.dto;
|
||||
|
||||
import cn.iocoder.common.framework.enums.CommonStatusEnum;
|
||||
import cn.iocoder.common.framework.validator.InEnum;
|
||||
import lombok.*;
|
||||
import lombok.experimental.*;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import io.swagger.annotations.*;
|
||||
|
||||
import java.util.*;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
/**
|
||||
* 商品规格值更新 Request DTO
|
||||
*/
|
||||
@@ -24,11 +21,6 @@ public class ProductAttrValueUpdateReqDTO implements Serializable {
|
||||
*/
|
||||
@NotNull(message = "规格值编号不能为空")
|
||||
private Integer id;
|
||||
/**
|
||||
* 规格键编号
|
||||
*/
|
||||
@NotNull(message = "规格键编号不能为空")
|
||||
private Integer attrKeyId;
|
||||
/**
|
||||
* 规格值名字
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user