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 SyncLogCO extends ClientObject {
    @ApiModelProperty(value = "主键", name = "id")
    private Long id;

    @ApiModelProperty(value = "链路追踪id", name = "traceId")
    private String traceId;

    @ApiModelProperty(value = "同步任务id", name = "taskId")
    private Long taskId;

    @ApiModelProperty(value = "业务类型", name = "bizType")
    private String bizType;

    @ApiModelProperty(value = "业务id", name = "bizId")
    private String bizId;

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

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

    @ApiModelProperty(value = "接口名称", name = "apiName")
    private String apiName;

    @ApiModelProperty(value = "接口路径", name = "apiPath")
    private String apiPath;

    @ApiModelProperty(value = "请求报文", name = "requestJson")
    private String requestJson;

    @ApiModelProperty(value = "响应报文", name = "responseJson")
    private String responseJson;

    @ApiModelProperty(value = "HTTP状态", name = "httpStatus")
    private Integer httpStatus;

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

    @ApiModelProperty(value = "错误信息", name = "errorMsg")
    private String errorMsg;

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

    @ApiModelProperty(value = "耗时毫秒", name = "costMs")
    private Long costMs;

    @ApiModelProperty(value = "重试次数", name = "retryTimes")
    private Integer retryTimes;

    @ApiModelProperty(value = "操作人id", name = "operatorId")
    private Long operatorId;

    @ApiModelProperty(value = "操作人姓名", name = "operatorName")
    private String operatorName;

    @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;
}
