package cn.axzo.workflow.core.repository.entity;

import cn.axzo.framework.data.mybatisplus.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * API 请求日志记录
 *
 * @author wangli
 * @since 2024/4/3 10:16
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ext_ax_api_log", autoResultMap = true)
@Data
@ToString(callSuper = true)
public class ExtAxApiLog extends BaseEntity<ExtAxDict> {

    /**
     * 日志跟踪 ID
     */
    private String traceId;

    /**
     * 请求 API
     */
    private String apiUrl;

    /**
     * 请求参数
     */
    private String requestBody;

    /**
     * 响应参数
     */
    private String responseBody;

    /**
     * 执行耗时 (s)
     */
    private Double takeTime;

    /**
     * 函数类型
     */
    private String type;
}
