package com.ylx.massage.domain.dto;

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

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

@Data
@ApiModel("售后费用详情dto")
public class AfterSaleOrderFeeDTO {

    @ApiModelProperty("费用ID（新增不传，更新传）")
    private Long id;

    @NotBlank(message = "费用类型不能为空")
    @ApiModelProperty("费用类型")
    private String type;

    @NotNull(message = "金额不能为空")
    @Positive(message = "金额必须大于0")
    @ApiModelProperty("金额")
    private BigDecimal fee;

    @ApiModelProperty("描述")
    private String remark;
}
