package com.gxwebsoft.shop.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 更新订单支付状态请求DTO
 *
 * @author 科技小王子
 * @since 2025-08-30
 */
@Data
@Schema(name = "UpdatePaymentStatusRequest", description = "更新订单支付状态请求")
public class UpdatePaymentStatusRequest {

    @Schema(description = "订单号", required = true)
    @NotBlank(message = "订单号不能为空")
    private String orderNo;

    @Schema(description = "支付状态：1=支付成功，0=支付失败", required = true)
    @NotNull(message = "支付状态不能为空")
    private Integer paymentStatus;

    @Schema(description = "微信交易号")
    private String transactionId;

    @Schema(description = "支付时间，格式：yyyy-MM-dd HH:mm:ss")
    private String payTime;
}
