package com.iailab.module.data.channel.opcua.vo; import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; import com.alibaba.excel.annotation.ExcelProperty; import com.iailab.framework.excel.core.annotations.DictFormat; import com.iailab.framework.excel.core.annotations.ExcelColumnSelect; import com.iailab.framework.excel.core.convert.DictConvert; import com.iailab.framework.excel.core.function.ExcelColumnSelectFunction; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import org.springframework.stereotype.Component; import java.util.List; /** * @author PanZhibao * @Description * @createTime 2024年08月22日 */ @Schema(description = "导出 - Tag信息") @Data @ExcelIgnoreUnannotated @Component public class OpcUaTagExportExcelVO implements ExcelColumnSelectFunction { @Schema(description = "Tag名称") @ExcelProperty(value = "Tag名称") private String tagName; @Schema(description = "数据类型") @ExcelProperty(value = "数据类型", converter = DictConvert.class) @ExcelColumnSelect(dictType = "tag_data_type") @DictFormat("tag_data_type") private String dataType; @Schema(description = "地址") @ExcelProperty(value = "地址") private String address; @Schema(description = "采集频率") @ExcelProperty(value = "采集频率") private Integer samplingRate; @Schema(description = "是否启用") @ExcelProperty(value = "是否启用", converter = DictConvert.class) @ExcelColumnSelect(dictType = "com_is_int") @DictFormat("com_is_int") private Integer enabled; @Override public String getName() { return null; } @Override public List getOptions() { return null; } }