package org.dromara.inspection.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.format.DateTimeFormat;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.inspection.domain.ArPoint;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * 巡检点位视图对象 ar_point
 *
 * @author Lion Li
 * @date 2025-01-13
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ArPoint.class)
public class ArPointVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 点位ID
     */
    @ExcelProperty(value = "点位ID")
    private Long id;

    /**
     * 所属区域ID
     */
    @ExcelProperty(value = "所属区域ID")
    private Long regionId;

    /**
     * 点位名称
     */
    @ExcelProperty(value = "点位名称")
    private String pointName;

    /**
     * 点位编码
     */
    @ExcelProperty(value = "点位编码")
    private String pointCode;

    /**
     * 点位业务数据(包含坐标、预设等)
     */
    private Map<String, Object> positionData;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 创建人
     */
    private Long createBy;

    /**
     * 创建人账号
     */
    @Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "createBy")
    @ExcelProperty(value = "创建人")
    private String createByName;

}
