package com.yc.ship.module.product.controller.admin.voyagestockdistributeNew.vo;

import com.yc.ship.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Schema(description = "管理后台 - 航次库存分配保存 Request VO")
@Data
public class VoyageStockDistributeNewPageReqVO extends PageParam {

    @Schema(description = "航次名称", example = "1")
    private String voyageName;

    @Schema(description = "船ID",  example = "1")
    private Long shipId;

    @Schema(description = "分销商ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long distributorId;

    @Schema(description = "分销商或者门店ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "分销商或者门店ID不能为空")
    private Long objectId;

    @Schema(description = "1分销商 2门店", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "分销商或者门店类型不能为空")
    private Integer type;

    @Schema(description = "是否启用共享库存", example = "1")
    private Integer enableShare;

    @Schema(description = "航次ID", example = "1")
    private List<Long> voyageIds;

    @Schema(description = "航次时间")
    private String[] voyageTime;







}
