package jnpf.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jnpf.base.entity.SuperBaseEntity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.NoArgsConstructor;
import java.io.Serializable;

/**
 * 接口调用日志表 
 * @author yanwenfu 
 * @create 2026-01-28 
 */

@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName ( value ="ftb_api_call_log" )
public class ApiCallLog extends SuperBaseEntity.SuperCUDBaseEntity<String> implements Serializable {

	private static final long serialVersionUID =  5134795939132551720L;

	/** 接口名称 */
   	@TableField(value = "F_ApiName")
	private String apiName;

	/** 接口路径 */
   	@TableField(value = "F_ApiPath")
	private String apiPath;

	/** HTTP方法 */
   	@TableField(value = "F_HttpMethod")
	private String httpMethod;

	/** 请求参数(JSON) */
   	@TableField(value = "F_RequestBody")
	private String requestBody;

	/** 返回结果(JSON) */
   	@TableField(value = "F_ResponseBody")
	private String responseBody;

	/** 是否成功(1: 是, 0: 否) */
   	@TableField(value = "F_Success")
	private Integer success;

	/** 异常信息 */
   	@TableField(value = "F_ErrorMsg")
	private String errorMsg;

	/** 耗时(ms) */
   	@TableField(value = "F_CostTime")
	private Integer costTime;

	/** 调用ip */
   	@TableField(value = "F_Ip")
	private String ip;
}
