package com.starry.admin.modules.order.module.vo;

import com.starry.common.domain.BasePageEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 订单查询对象
 *
 * @author admin
 * @since 2024-03-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class PlayOrderRefundAddVo extends BasePageEntity {


    /**
     * uuid
     */
    @NotNull(message = "orderId不能为空")
    private String orderId;


    /**
     * 退款金额
     */
    @NotNull(message = "退款金额不能为空")
    private BigDecimal refundAmount;

    /**
     * 退款原因
     */
    @NotNull(message = "退款原因不能为空")
    @Length(min = 1, max = 100, message = "退款原因必须在1-100个字符之间")
    private String refundReason;


}