package cn.sikey.mcdisk.controller.app.passthrough.vo;

import cn.hutool.json.JSONObject;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: nelson
 * @Date: 2025/6/5
 * @Description: 透传代理
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PassThroughProxyReqVO {

    /**
     * 地址
     */
    @NotBlank(message = "地址是空")
    private String url;

    /**
     * 方法
     */
    @NotBlank(message = "方法是空")
    private String method;

    /**
     * header
     */
    @NotNull(message = "header是空")
    private JSONObject headers;

    /**
     * 请求体
     */
    @NotNull(message = "header是空")
    private JSONObject body;
}
