package com.zcxk.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zcxk.entity.DeviceEntity;
import com.zcxk.model.ProgramItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @description
 * @auto wangli
 * @data 2020-11-16 11:47
 */
@Data
@ApiModel("设备信息")
public class DeviceDto extends DeviceEntity {

    private static final long serialVersionUID = 7372833323037926558L;

    @ApiModelProperty("设备编号或名称")
    private String condition;
    @ApiModelProperty("场景名称")
    private String sceneName;
    @ApiModelProperty("厂商名称")
    private String manufacturerName;
    @ApiModelProperty("厂商id")
    private String manufacturerId;
    @ApiModelProperty("设备类型")
    private String deviceType;
    @ApiModelProperty("设备型号")
    private String deviceMode;
    @ApiModelProperty(value = "所属公司")
    private String companyOrgName;
    @ApiModelProperty(value = "所属部门")
    private String deptOrgName;
    @ApiModelProperty(value = "查询类型")
    @TableField(exist = false)
    @JsonIgnore
    private Integer searchType;

    @ApiModelProperty(value = "场景ids" ,hidden = true )
    private List<Long> sceneIds;

    @ApiModelProperty(value ="权限",hidden = true)
    @JsonIgnore
    private List<ProgramItem> programItems;

    @ApiModelProperty(value="用户权限类型",hidden = true)
    @JsonIgnore
    private Integer permissonType;

    /** 用户类型 */
    @ApiModelProperty(value = "用户类型(-9999 超管 -999普通用户 2普通用户)",hidden = true)
    @JsonIgnore
    private String userType;

    /** 用户类型 */
    @ApiModelProperty(value = "用户类型ID",hidden = true)
    @JsonIgnore
    private Integer userId;

    @ApiModelProperty(value = "是否已经勾选")
    private Integer isCheck;

}



