package com.xunhong.erp.turbo.api.biz.dto.cmd;

import com.xunhong.erp.turbo.api.biz.dto.common.OrderDealer;
import com.xunhong.erp.turbo.api.biz.dto.common.OrderVehicle;
import com.xunhong.erp.turbo.api.biz.dto.enums.PurchaseOrderTypeEnum;
import com.xunhong.erp.turbo.base.dto.Command;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "采购订单第一步：车辆信息和经销商信息保存")
@EqualsAndHashCode(callSuper = true)
public class PurchaseOrderStep1Cmd extends Command {

	/**
	 * 订单ID（更新时使用）
	 */
	@Schema(title = "采购订单ID", type = "string")
	private Long orderId;

	/**
	 * 步骤标识
	 */
	@Schema(title = "步骤标识")
	private Integer active;

	/**
	 * 采购类型：1_产地采购；2_市场采购；
	 */
	@Schema(title = "采购类型：1_产地采购；2_市场采购；")
	private PurchaseOrderTypeEnum type;

	/**
	 * 车辆信息
	 */
	@Schema(title = "车辆信息", requiredMode = Schema.RequiredMode.REQUIRED)
	private OrderVehicle orderVehicle;

	/**
	 * 经销商信息
	 */
	@Schema(title = "经销商信息", requiredMode = Schema.RequiredMode.REQUIRED)
	private OrderDealer orderDealer;
}
