feat: 前端搭建-未完成
This commit is contained in:
14
internal/channel/channel.go
Normal file
14
internal/channel/channel.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package channel
|
||||
|
||||
import (
|
||||
"gpt-load/internal/models"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// ChannelProxy defines the interface for different API channel proxies.
|
||||
type ChannelProxy interface {
|
||||
// Handle takes a context, an API key, and the original request,
|
||||
// then forwards the request to the upstream service.
|
||||
Handle(c *gin.Context, apiKey *models.APIKey, group *models.Group)
|
||||
}
|
Reference in New Issue
Block a user