package com.zcloud.personnel.positioning.dto.clientobject;

import com.alibaba.cola.dto.ClientObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * web-client
 *
 * @Author fangjiakai
 * @Date 2026-07-07
 */
@Data
public class TerminalBindCO extends ClientObject {
    @ApiModelProperty(value = "主键", name = "id")
    private Long id;

    @ApiModelProperty(value = "人员身份证号，关联资质库人员视图", name = "idCardNo")
    private String idCardNo;

    @ApiModelProperty(value = "终端id", name = "terminalId")
    private Long terminalId;

    @ApiModelProperty(value = "终端号", name = "terminalNo")
    private String terminalNo;

    @ApiModelProperty(value = "设备类型 CARD定位卡 APP手机APP TERMINAL终端 OTHER其他", name = "deviceType")
    private String deviceType;

    @ApiModelProperty(value = "企业id/公司id（公司及子公司数据隔离）", name = "corpinfoId")
    private String corpinfoId;

    @ApiModelProperty(value = "企业名称/公司名称", name = "corpinfoName")
    private String corpinfoName;

    @ApiModelProperty(value = "追踪对象类型 STAFF人员 CAR车辆", name = "trackType")
    private String trackType;

    @ApiModelProperty(value = "校验码", name = "checkCode")
    private String checkCode;

    @ApiModelProperty(value = "绑定状态 BOUND已绑定 UNBOUND已解绑", name = "bindStatus")
    private String bindStatus;

    @ApiModelProperty(value = "绑定时间", name = "bindTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime bindTime;

    @ApiModelProperty(value = "解绑时间", name = "unbindTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime unbindTime;

    @ApiModelProperty(value = "FindS追踪对象id", name = "findsTrackId")
    private Long findsTrackId;

    @ApiModelProperty(value = "FindS终端id", name = "findsTerminalId")
    private Long findsTerminalId;

    @ApiModelProperty(value = "同步状态 SUCCESS/FAIL/WAIT", name = "syncStatus")
    private String syncStatus;

    @ApiModelProperty(value = "最后同步时间", name = "lastSyncTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastSyncTime;

    @ApiModelProperty(value = "删除标识 TRUE/FALSE", name = "deleteEnum")
    private String deleteEnum;

    @ApiModelProperty(value = "备注", name = "remarks")
    private String remarks;

    @ApiModelProperty(value = "创建人姓名", name = "createName")
    private String createName;

    @ApiModelProperty(value = "更新人姓名", name = "updateName")
    private String updateName;

    @ApiModelProperty(value = "租户id", name = "tenantId")
    private Long tenantId;

    @ApiModelProperty(value = "单位id", name = "orgId")
    private Long orgId;

    @ApiModelProperty(value = "环境", name = "env")
    private String env;

    @ApiModelProperty(value = "版本", name = "version")
    private Integer version;

    @ApiModelProperty(value = "创建时间", name = "createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间", name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人id", name = "createId")
    private Long createId;

    @ApiModelProperty(value = "更新人id", name = "updateId")
    private Long updateId;
}
