refactor: 删除 ports 目录
This commit is contained in:
9
backend/internal/service/http_upstream_port.go
Normal file
9
backend/internal/service/http_upstream_port.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package service
|
||||
|
||||
import "net/http"
|
||||
|
||||
// HTTPUpstream interface for making HTTP requests to upstream APIs (Claude, OpenAI, etc.)
|
||||
// This is a generic interface that can be used for any HTTP-based upstream service.
|
||||
type HTTPUpstream interface {
|
||||
Do(req *http.Request, proxyURL string) (*http.Response, error)
|
||||
}
|
||||
Reference in New Issue
Block a user