package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author wy
 */
@Data
@TableName("tz_request_log")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RequestLog implements Serializable {

    private static final long serialVersionUID = 6457261945829470666L;;

    @TableId
    private Long id;

    @ApiModelProperty("请求归属")
    private String resource;

    @ApiModelProperty("请求方法")
    private String requestMethod;

    @ApiModelProperty("请求参数")
    private String requestParam;

    @ApiModelProperty("请求结果")
    private String result;

    @ApiModelProperty("签名")
    private String sign;

    @ApiModelProperty("请求时间")
    private LocalDateTime createTime;
}
