package com.softwarebr.nunu.json.api.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 订单
 * @author lilin
 * @date 2020-03-13 10:16:00
 */
@Data
@ApiModel
public class OrderParam {

    @ApiModelProperty(value = "活动id", required = true, example = "")
    @NotNull(message = "活动id不能为空")
    private Long activityId;

    @ApiModelProperty(value = "订单数量", required = true, example = "")
    @NotNull(message = "订单数量不能为空")
    private Integer orderAmount;

    @ApiModelProperty(value = "订单号", required = true, example = "")
    @NotEmpty(message = "订单号不能为空")
    private String orderNo;
}
