package cn.lihongjie.coal.deviceCategory.dto;

import cn.lihongjie.coal.base.dto.OrgCommonDto;
import cn.lihongjie.coal.base.dto.SimpleDto;
import cn.lihongjie.coal.common.DictCode;
import cn.lihongjie.coal.pojoProcessor.DictTranslate;

import lombok.Data;

import org.hibernate.annotations.Comment;

import java.util.List;

@Data
public class DeviceCategoryTreeDto extends OrgCommonDto {

    private List<SimpleDto> users;
    private List<String> allDeviceIds;

    private List<String> childrenDeviceIds;

    private List<String> selfDeviceIds;
    private List<DeviceCategoryTreeDto> children;

    private String parent;

    @Comment("设备编码生成规则")
    private String deviceCodeGenRule;


    private Integer codeLength;

    private String codePrefix;
    @DictTranslate(dictKey =  DictCode.DEVICE_CATEGORY_DEVICECODEGENRULE)
    private String deviceCodeGenRuleName;

}
