package org.jeecg.modules.system.app.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "订单改价表单对象")
public class PriceChangeForm implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private String orderId;

    private BigDecimal price;

    private List<OrderItemForm> orderItemList;


    @Data
    public static class OrderItemForm implements Serializable {
        @Serial
        private static final long serialVersionUID = 1L;

        private String orderProInfoId;

        private BigDecimal originalPrice;
    }
}
