package com.sptg.third.api.entity.qinlin;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author zwx
 * @create 2020/12/16 20:40
 */
@Setter
@Getter
@TableName(value = "qinlin_api_log")
public class QLinApiLog {

    @TableId(value = "l_id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "i_code")
    private Integer code;

    @TableField(value = "s_message")
    private String message;

    @TableField(value = "s_method")
    private String method;

    /**
     * 请求数据
     */
    @TableField(value = "s_req_data")
    private String reqData;

    /**
     * 响应数据
     */
    @TableField(value = "s_data")
    private String data;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "t_create_date")
    private Date createDate;
}
