package com.wzj.soopin.order.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "商城售后订单处理操作请求体")
public class DealWithAftersaleForm {
    @Schema(name = "orderId", description = "订单id", required = true, implementation = Long.class)
    @NotBlank(message = "订单id不能为空")
    private Long orderId;

    @Schema(name = "optType", description = "操作类型 1同意  2拒绝 3确认收货", required = true, implementation = Integer.class)
    @NotNull(message = "操作类型不能为空")
    private Integer optType;

    @Schema(name = "remark", description = "拒绝理由 操作类型为2时必填", required = true, implementation = String.class)
    private String remark;
}
