package com.xinelu.applet.dto.appletlogin;


import com.xinelu.common.custominterface.Insert;
import com.xinelu.common.custominterface.Update;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

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

/**
 * @Description 预约订单耗材输入参数实体类
 * @Author 纪寒
 * @Date 2022-09-06 13:57:40
 * @Version 1.0
 */
@Data
public class AppointmentConsumableDTO implements Serializable {
    private static final long serialVersionUID = -9084427575084646478L;

    /**
     * 订单明细表id
     */
    private Long appointOrderDetailsId;

    /**
     * 耗材包code
     */
    private String consumableCode;

    /**
     * 耗材详情
     */
    @NotBlank(message = "耗材名称不能为空", groups = {Insert.class, Update.class})
    @Length(max = 50, message = "耗材名称不能超过50个字符", groups = {Insert.class, Update.class})
    private String consumableDetail;

    /**
     * 耗材包价格
     */
    @NotNull(message = "耗材包价格不能为空", groups = {Insert.class, Update.class})
    private BigDecimal consumablePrice;

    /**
     * 耗材包数量
     */
    @NotNull(message = "耗材包数量不能为空", groups = {Insert.class, Update.class})
    private Integer consumableCount;

    /**
     * 耗材包单位
     */
    @NotBlank(message = "耗材包单位不能为空", groups = {Insert.class, Update.class})
    private String consumableUnit;
}
