package com.yc.ship.module.trade.api.dto;

import com.yc.ship.framework.common.validation.IntEnum;
import com.yc.ship.module.trade.enums.TradeOrderBindEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;


@Schema(description = "订单审核请求DTO")
@Data
@Accessors(chain = true)
public class TradeBindOrderReqDTO {

    @Schema(description = "订单ID", example = "")
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @Schema(description = "绑定ID", example = "")
    @NotNull(message = "绑定ID不能为空")
    private Long bindId;

    @Schema(description = "绑定类型", example = "")
    @NotNull(message = "类型不能为空")
    @IntEnum(value = TradeOrderBindEnum.class,message = "绑定类型不正确")
    private Integer type;
}

