20 lines
695 B
Go
20 lines
695 B
Go
package config
|
|
|
|
import (
|
|
"context"
|
|
v1 "likedream-goframe/internal/api/v1"
|
|
"likedream-goframe/internal/utils"
|
|
)
|
|
|
|
// IAIConfigCtrlV1 AI配置控制器接口
|
|
type IAIConfigCtrlV1 interface {
|
|
// Get 获取AI配置
|
|
Get(ctx context.Context, req *v1.AIConfigGetReq) (*utils.Response[*v1.AIConfigGetResp], error)
|
|
// Update 更新AI配置
|
|
Update(ctx context.Context, req *v1.AIConfigUpdateReq) (*utils.Response[any], error)
|
|
// Test 测试AI配置
|
|
Test(ctx context.Context, req *v1.AIConfigTestReq) (*utils.Response[*v1.AIConfigTestResp], error)
|
|
// GetTypeList 获取支持的AI类型列表
|
|
GetTypeList(ctx context.Context, req *v1.AITypeListReq) (*utils.Response[*v1.AITypeListResp], error)
|
|
}
|