package com.ruoyi.bst.vipOrder.domain.dto;

import javax.validation.constraints.NotNull;

import com.ruoyi.bst.vip.domain.VipVO;
import com.ruoyi.common.core.interfaces.LogBizParam;

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

@Data
public class VipOrderCreateDTO implements LogBizParam {
    
    @ApiModelProperty("下单用户ID")
    private Long userId;
    
    @ApiModelProperty("支付渠道ID")
    @NotNull(message = "支付渠道ID不能为空")
    private Long channelId;

    @ApiModelProperty("APP ID")
    @NotNull(message = "APP ID不能为空")
    private Long appId;

    @ApiModelProperty("卡券ID")
    @NotNull(message = "卡券ID不能为空")
    private Long vipId;
    
    @ApiModelProperty("卡券信息")
    @NotNull(message = "卡券信息不能为空")
    private VipVO vip;
 
    @Override
    public Object logBizId() {
        return vipId;
    }
}
