package com.hr.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 接口日志表;IpLog数据表的PO对象
 * @author : longhoo
 * @date : 2025-10-10
 */
@Data
public class IpLogVO implements Serializable,Cloneable{

    @Schema(description = "主键")
    private Long id ;
    @Schema(description = "调用记录表主键")
    private String oid ;
    @Schema(description = "调用编号（业务编号）,唯一，格式为年月日时分秒毫秒加6位随机数 20250918010256001000001")
    private String orderNo ;
    @Schema(description = "执行类型,request请求，callback回调")
    private String executeType ;
    @Schema(description = "请求地址/回调地址,如果是请求类型则记录请求地址。若是回调类型则记录回调地址。")
    private String url ;
    @Schema(description = "请求状态,handle处理中，success成功，fail失败")
    private String status ;
    @Schema(description = "请求参数,临时存储json格式，通过定时任务上传到OSS后更换为oss存储url")
    private String requestParam ;
    @Schema(description = "响应结果,临时存储json格式，通过定时任务上传到OSS后更换为oss存储url")
    private String responseResult ;
    @Schema(description = "响应状态码")
    private String httpStatus ;
    @Schema(description = "异常信息,存储调用时的各种程序异常信息")
    private String msg ;
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date addTime ;
    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime ;
    @Schema(description = "创建人id")
    private String addUserId ;
    @Schema(description = "更新人id")
    private String updateUserId ;
    @Schema(description = "创建人姓名")
    private String addUserName ;
    @Schema(description = "更新人姓名")
    private String updateUserName ;
    
}