package cn.com.ctop.crawler.modules.log.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 爬虫日志表
 * @Author: jeecg-boot
 * @Date:   2019-06-26
 * @Version: V1.0
 */
@Data
@TableName("ctop_crawler_log")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ctop_crawler_log对象", description="爬虫日志表")
public class CrawlerLog {
    
	/**主键ID*/
	@Excel(name = "主键ID", width = 15)
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "主键ID")
	private String requestId;
	/**请求URL*/
	@Excel(name = "请求URL", width = 15)
    @ApiModelProperty(value = "请求URL")
	private String url;
	/**请求路径*/
	@Excel(name = "请求路径", width = 15)
    @ApiModelProperty(value = "请求路径")
	private String path;
	/**请求方式*/
	@Excel(name = "请求方式", width = 15)
    @ApiModelProperty(value = "请求方式")
	private String method;
	/**请求cookie*/
	@Excel(name = "请求cookie", width = 15)
    @ApiModelProperty(value = "请求cookie")
	@TableField("request_cookie")
	private String requestCookie;
	/**请求header*/
	@Excel(name = "请求header", width = 15)
    @ApiModelProperty(value = "请求header")
	@TableField("request_header")
	private String requestHeader;
	/**请求body*/
	@Excel(name = "请求body", width = 15)
    @ApiModelProperty(value = "请求body")
	@TableField("request_body")
	private String requestBody;
	/**响应cookie*/
	@Excel(name = "响应cookie", width = 15)
    @ApiModelProperty(value = "响应cookie")
	@TableField("response_cookie")
	private String responseCookie;
	/**响应header*/
	@Excel(name = "响应header", width = 15)
    @ApiModelProperty(value = "响应header")
	@TableField("response_header")
	private String responseHeader;
	/**响应body*/
	@Excel(name = "响应body", width = 15)
    @ApiModelProperty(value = "响应body")
	@TableField("response_body")
	private String responseBody;
	/**请求状态*/
	@Excel(name = "请求状态", width = 15)
    @ApiModelProperty(value = "请求状态")
	@TableField("request_status")
	private Integer requestStatus;
	/**请求耗时*/
	@Excel(name = "请求耗时", width = 15)
    @ApiModelProperty(value = "请求耗时")
	@TableField("request_time")
	private Integer requestTime;
	/**请求时间*/
	@Excel(name = "请求时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "请求时间")
	@TableField("create_time")
	private Date createTime;
}
