package com.fuyuanshen.equipment.domain.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fuyuanshen.equipment.domain.DeviceGroup;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fuyuanshen.common.excel.annotation.ExcelDictFormat;
import com.fuyuanshen.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

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


/**
 * 设备分组视图对象 device_group
 *
 * @author Lion Li
 * @date 2025-08-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = DeviceGroup.class)
public class DeviceGroupVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 分组名称
     */
    @ExcelProperty(value = "分组名称")
    private String groupName;

    /**
     * 状态：0-禁用，1-正常
     */
    @ExcelProperty(value = "状态：0-禁用，1-正常")
    private String status;

    /**
     * 父分组ID
     */
    @ExcelProperty(value = "父分组ID")
    private Long parentId;

    /**
     * 完整分组路径
     */
    @ExcelProperty(value = "完整分组路径")
    private String fullPath;

    /**
     * 删除标记：0-未删除，1-已删除
     */
    @ExcelProperty(value = "删除标记：0-未删除，1-已删除")
    private Long isDeleted;

    /**
     * 嵌套子分组
     */
    private List<DeviceGroupVo> children;

    /**
     * 创建时间
     */
    private String createTime;

}
