package com.ruoyi.mall.domain.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * app-线下订单商品对象 MallAppOrderGoodsDTO
 *
 * @author ruoyi
 * @date 2024-06-29
 */
@Setter
@Getter
@ToString
public class MallAppOrderGoodsDTO implements Serializable
{
    private static final long serialVersionUID = 1L;

    public interface addMallAppOrderGoodsDTO{}
    public interface updateMallAppOrderGoodsDTO{}
    public interface deleteMallAppOrderGoodsDTO{}

    /** 线下订单商品主键ID */
    private Long id;

    /** 商品名称 */
    @NotBlank(message = "请输入商品名称",groups = {addMallAppOrderGoodsDTO.class})
    private String goodsName;

    /** 商品规格 */
    @NotBlank(message = "请输入商品规格",groups = {addMallAppOrderGoodsDTO.class})
    private String goodsProduct;

    /** 商品单位 */
    @NotBlank(message = "请输入商品单位",groups = {addMallAppOrderGoodsDTO.class})
    private String goodsUnit;

    /** 商品单价 */
    @NotBlank(message = "请输入商品单价",groups = {addMallAppOrderGoodsDTO.class})
    private BigDecimal goodsPrice;

    /** 商品数量 */
    @NotNull(message = "请输入商品数量",groups = {addMallAppOrderGoodsDTO.class})
    private Integer goodsTotal;

    /** 总金额 */
    private BigDecimal totalPrice;

    /** 提成（元） */
    private BigDecimal commissionPrice;

    /** 备注 */
    private String remarks;

}
