20 lines
579 B
Go
20 lines
579 B
Go
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)
|
|
}
|