package com.zhongshu.card.client.model.payment;

import com.zhongshu.card.client.type.payment.RequestType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author TRX
 * @date 2024/8/22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RequestInfoSaveParam {

    @Schema(description = "关联的请求id")
    private String requestId;

    @Schema(description = "请求用户userId")
    private String userId;

    @Schema(description = "请求用户名称")
    private String userName;

    @Schema(description = "api信息")
    private Object apiParam;

    @Schema(description = "请求参数")
    private Object param;

    @Schema(description = "返回参数")
    private Object response;

    @Schema(description = "是否成功")
    private Boolean isSuccess = Boolean.TRUE;

    @Schema(description = "请求分类")
    private RequestType requestType = RequestType.Common;

    @Schema(description = "错误信息")
    private String msg = "";

    @Schema(description = "请求耗时：毫秒")
    private Long millis;

    @Schema(description = "过期时间")
    private Long TTL;
}
