package com.wms_main.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 数据库Api表映射
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_sys_api", autoResultMap = true)
public class TSysApi {
    /**
     * id
     */
    @TableId(value = "log_id")
    private String logId;
    /**
     * url
     */
    @TableField(value = "url")
    private String url;
    /**
     * 超时时长
     */
    @TableField(value = "timeout")
    private Integer timeout;
    /**
     * 请求方式
     */
    @TableField(value = "method")
    private String method;
    /**
     * 请求头
     */
    @TableField(value = "content_type")
    private String contentType;
    /**
     * 数据
     */
    @TableField(value = "data")
    private String data;
    /**
     * token
     */
    @TableField(value = "token")
    private String token;
    /**
     * 请求是否成功
     */
    @TableField(value = "success")
    private String success;
    /**
     * 响应码
     */
    @TableField(value = "response_code")
    private int responseCode;
    /**
     * 请求信息
     */
    @TableField(value = "request_message")
    private String requestMessage;
    /**
     * 响应信息
     */
    @TableField(value = "response_message")
    private String responseMessage;
    /**
     * 请求时间
     */
    @TableField(value = "request_time")
    private LocalDateTime requestTime;
    /**
     * 响应时间
     */
    @TableField(value = "response_time")
    private LocalDateTime responseTime;
    /**
     * 请求地址
     */
    @TableField(value = "request_url")
    private String requestUrl;
    /**
     * 请求耗时
     */
    @TableField(value = "use_time")
    private long useTime;
    /**
     * 异常
     */
    @TableField(value = "exception_message")
    private String exceptionMessage;
    /**
     * 记录时间
     */
    @TableField(value = "log_time")
    private LocalDateTime logTime;
}
