package com.bjtdba.userCenter.dto.request;

import lombok.Data;
import javax.validation.constraints.*;
import java.math.BigDecimal;

@Data
public class ModifyPVRequest {
    private Integer uid;

    @NotNull(message = "pv值不能为空")
    @DecimalMin(value = "0.00", message = "pv值不能为负数")
    private BigDecimal pv;

    @Min(value = -1, message = "状态值错误")
    @Max(value = 1,message = "状态值错误")
    private Integer status; // pv状态1-有效 0-失效 -1待确认

    private String mark;
    private String orderId;

    @NotBlank(message = "订单类型不能为空")
    @Size(max = 255, message = "订单类型长度超限")
    private String orderType;

}
