package com.seer.teach.mall.request;

import com.seer.teach.common.enums.AfterSaleWayEnum;
import com.seer.teach.common.validation.InEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "用户交易售后创建 Request")
@Data
public class AppAfterSaleCreateReq {

    @Schema(name = "订单编号", example = "1024")
    @NotNull(message = "订单编号不能为空")
    private Integer orderId;

    @Schema(name = "订单编号", example = "1024")
    @NotNull(message = "子订单编号不能为空")
    private Integer childOrderId;

    @Schema(description = "商品SKU编号")
    @NotNull(message = "商品SKU编号不能为空")
    private Integer skuId;

    @Schema(name = "售后方式", example = "1")
    @NotNull(message = "售后方式不能为空")
    @InEnum(value = AfterSaleWayEnum.class, message = "售后方式必须是 {value}")
    private Integer way;

    @Schema(name = "申请原因", example = "1")
    @NotNull(message = "申请原因不能为空")
    private String applyReason;

    @Schema(name = "补充描述", example = "商品质量不好")
    private String applyDescription;

    @Schema(name = "补充凭证图片")
    private List<String> applyPicUrls;
}