package com.ruoyi.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.GeneratedValue;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * IpnLog对象 ipn_log
 *
 * @author ruoyi
 * @date 2023-11-22
 */
@Data
@TableName(value = "ipn_log")
@EqualsAndHashCode(callSuper = false)
public class IpnLog
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @GeneratedValue
    /** $column.columnComment */
    private Long id;

    /** 访问地址 */
    @Excel(name = "访问地址")
    private String ip;

    /** 请求时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "请求时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date cretim;

    /** 请求信息 */
    @Excel(name = "请求信息")
    private String ipnLog;
    /** 类型 zalopay vnpay */
    private String type;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setIp(String ip)
    {
        this.ip = ip;
    }

    public String getIp()
    {
        return ip;
    }
    public void setCretim(Date cretim)
    {
        this.cretim = cretim;
    }

    public Date getCretim()
    {
        return cretim;
    }
    public void setIpnLog(String ipnLog)
    {
        this.ipnLog = ipnLog;
    }

    public String getIpnLog()
    {
        return ipnLog;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ip", getIp())
            .append("cretim", getCretim())
            .append("ipnLog", getIpnLog())
            .toString();
    }
}
