package com.yhy.module.core.controller.admin.workbench.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 工料机汇总更新 Request VO
 *
 * @author yhy
 */
@Schema(description = "工作台 - 工料机汇总更新 Request VO")
@Data
public class WbResourceSummaryUpdateReqVO {

    @Schema(description = "项目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "项目ID不能为空")
    private Long projectId;

    @Schema(description = "资源唯一键", requiredMode = Schema.RequiredMode.REQUIRED, example = "abc123")
    @NotBlank(message = "资源唯一键不能为空")
    private String resourceKey;

    @Schema(description = "是否打印", example = "true")
    private Boolean isPrint;

    @Schema(description = "是否评标指定材料", example = "true")
    private Boolean isBidMaterial;

    @Schema(description = "价格来源", example = "信息价")
    private String priceSource;

    @Schema(description = "备注", example = "")
    private String remark;

    @Schema(description = "新编码（修改编码时使用，会同步到工作台工料机）", example = "C002")
    private String newCode;
}
