package com.ylx.massage.domain.dto;

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

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@ApiModel(description = "售后订单费用批量添加请求")
public class AfterSaleOrderFeeBatchDTO {

    @ApiModelProperty("售后单ID")
    private Long afterSaleOrderId;

    @NotEmpty(message = "费用明细不能为空")
    @Valid // 开启嵌套校验
    @ApiModelProperty("费用明细列表")
    private List<AfterSaleOrderFeeDTO> feeList;
}
