package com.cf.imes.module.system.dal.dataobject.machinetemplate;

import com.cf.imes.framework.es.core.dal.ESDocument;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author there
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class DrillTemplateMachineDO extends ESDocument {

    @Schema(description = "机台模板id")
    private Long templateId;
    @Schema(description = "编码名称")
    private String encodingName;
    @Schema(description = "正面文件名称")
    private String fileA;
    @Schema(description = "反面文件名称")
    private String fileB;
    @Schema(description = "文件创建类型")
    private String fileCreateType;
    @Schema(description = "代码内容")
    private String codeContent;
    @Schema(description = "备注")
    private String remark;
    private CncConfigBean cncConfig;
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    @Data
    public static class CncConfigBean {
        @Schema(description = "压缩包名称")
        private String zipFileName;
        @Schema(description = "文件名")
        private String filename;
        @Schema(description = "默认false，自动贴标函数文件编码方式")
        private boolean gb2312;
        private boolean groupByPM;
        private boolean showTitle;
        private String fn_Filter;
        private String fn_row;
    }

}
