序列化
This commit is contained in:
@@ -1,10 +1,25 @@
|
||||
package com.czg.product.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 产品库存VO
|
||||
* @author ww
|
||||
*/
|
||||
public record ProductStockVO(Long productId, BigDecimal number) {
|
||||
@Data
|
||||
public class ProductStockVO implements Serializable {
|
||||
|
||||
private Long productId;
|
||||
private BigDecimal number;
|
||||
|
||||
public ProductStockVO() {
|
||||
}
|
||||
|
||||
public ProductStockVO(Long productId, BigDecimal number) {
|
||||
this.productId = productId;
|
||||
this.number = number;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user