package org.dromara.member.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.member.domain.AppDevice;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * App端设备信息视图对象 app_device
 *
 * @author pengles
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AppDevice.class)
public class AppDeviceVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 设备ID
     */
    @ExcelProperty(value = "设备ID")
    private Long deviceId;

    /**
     * App用户ID
     */
    @ExcelProperty(value = "App用户ID")
    private Long userId;

    /**
     * 设备类型（ios android h5）
     */
    @ExcelProperty(value = "设备类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "app_device_type")
    private String deviceType;

    /**
     * 设备名称
     */
    @ExcelProperty(value = "设备名称")
    private String deviceName;

    /**
     * 设备型号
     */
    @ExcelProperty(value = "设备型号")
    private String deviceModel;

    /**
     * 设备品牌
     */
    @ExcelProperty(value = "设备品牌")
    private String deviceBrand;

    /**
     * 操作系统版本
     */
    @ExcelProperty(value = "操作系统版本")
    private String osVersion;

    /**
     * App版本
     */
    @ExcelProperty(value = "App版本")
    private String appVersion;

    /**
     * 推送令牌
     */
    @ExcelProperty(value = "推送令牌")
    private String pushToken;

    /**
     * 是否活跃（0否 1是）
     */
    @ExcelProperty(value = "是否活跃", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    private String isActive;

    /**
     * 最后活跃时间
     */
    @ExcelProperty(value = "最后活跃时间")
    private LocalDateTime lastActiveTime;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private LocalDateTime updateTime;

}