feat: 添加基础通道实现和请求处理逻辑

This commit is contained in:
tbphp
2025-07-02 09:46:08 +08:00
parent 5818c3cb1d
commit 762dfe48e8
5 changed files with 185 additions and 68 deletions

View File

@@ -10,5 +10,5 @@ import (
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)
Handle(c *gin.Context, apiKey *models.APIKey, group *models.Group) error
}