package com.czg.account.param;

import com.czg.validator.group.DefaultGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 积分订单支付入参
 *
 * @author tankaikai
 * @since 2025-02-26 10:03
 */
@Data
public class PointsOrderPayParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 订单id(积分兑换记录id)
     */
    @NotNull(message = "订单id不能为空", groups = DefaultGroup.class)
    private Long id;
    /**
     * 支付类型 POINTS-积分 WECHAT-微信 ALIPAY-支付宝 UNIONPAY-银联云闪付
     */
    @NotBlank(message = "支付类型不能为空", groups = DefaultGroup.class)
    private String payType;
    /**
     * 微信openId/支付完userId
     */
    @NotBlank(message = "openId不能为空", groups = DefaultGroup.class)
    private String openId;
}
