1
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"observer-server/biz/model/dto"
|
||||
"observer-server/biz/service"
|
||||
)
|
||||
|
||||
// cModelCatalog 客户端模型目录:App 按需下载数据集模型(多模型并行推理 + 热更新)。
|
||||
// 挂登录态组(AuthRequired);下载走 /download 静态托管。
|
||||
type cModelCatalog struct{}
|
||||
|
||||
var ModelCatalog = &cModelCatalog{}
|
||||
|
||||
// List 模型目录:全部数据集当前生效模型
|
||||
func (c *cModelCatalog) List(ctx context.Context, req *dto.ModelCatalogReq) (*dto.ModelCatalogRes, error) {
|
||||
return service.ModelVersion.ClientCatalog(ctx)
|
||||
}
|
||||
Reference in New Issue
Block a user