package cc.mrbird.febs.dapp.dto;
|
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import javax.validation.constraints.NotNull;
|
|
@Data
|
@ApiModel(value = "AddOrderDto", description = "新增订单接口参数接收类")
|
public class AddOrderDto {
|
|
@NotNull(message = "参数不能为空")
|
@ApiModelProperty(value = "商品ID", example = "1")
|
private Long goodsId;
|
|
|
@NotNull(message = "参数不能为空")
|
@ApiModelProperty(value = "数量", example = "1")
|
private Integer goodsCnt;
|
|
}
|