package com.bonus.common.entity.bracelet.vo;

import com.bonus.common.core.annotation.Excel;
import com.bonus.common.core.annotation.Excel.ColumnType;
import com.bonus.common.security.utils.SecurityUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.Api;
import lombok.Data;

import java.util.Date;


@Api("DeviceVo")
@Data
public class DeviceVo
{

    /** 设备id */
    @Excel(name = "设备id")
    private int deviceId;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 设备类型名称 */
    @Excel(name = "设备类型名称")
    private String deviceTypeName;

    /** 设备下标 */
    @Excel(name = "设备下标")
    private Integer deviceIndex;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceCode;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private Integer deviceStatus;

    /** 领用人id */
    @Excel(name = "领用人id")
    private int lyId;

    /** 领用人类型 */
    @Excel(name = "领用人类型")
    private int lyType;

    /** 领用人名称 */
    @Excel(name = "领用人名称")
    private String lyName;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Date createTime = new Date();
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Date updateTime = new Date();
    /**
     * 创建人
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Long createUser = SecurityUtils.getUserId();
    /**
     * 修改人
     */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Long updateUser = SecurityUtils.getUserId();
}
