public class BaseAIService extends Object
Constructor and Description |
---|
BaseAIService(AIConfig config)
构造方法
|
Modifier and Type | Method and Description |
---|---|
protected HttpResponse |
sendFormData(String endpoint,
Map<String,Object> paramMap)
发送表单请求
|
protected HttpResponse |
sendGet(String endpoint)
发送Get请求
|
protected HttpResponse |
sendPost(String endpoint,
String paramJson)
发送Post请求
|
protected final AIConfig config
public BaseAIService(AIConfig config)
config
- AI配置protected HttpResponse sendGet(String endpoint)
endpoint
- 请求节点protected HttpResponse sendPost(String endpoint, String paramJson)
endpoint
- 请求节点paramJson
- 请求参数jsonprotected HttpResponse sendFormData(String endpoint, Map<String,Object> paramMap)
endpoint
- 请求节点paramMap
- 请求参数mapCopyright © 2025. All rights reserved.