Browse Source

增加查询训练任务的接口。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1^2
zouap 3 years ago
parent
commit
1456d33aa1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/ai_model_manage.go

+ 2
- 2
routers/repo/ai_model_manage.go View File

@@ -259,7 +259,7 @@ func DownloadMultiModelFile(ctx *context.Context) {

func QueryTrainJobList(ctx *context.Context) {
log.Info("query train job list. start.")
repoId := ctx.Query("repoId")
repoId := ctx.QueryInt64("repoId")

VersionListTasks, VersionListCount, err := models.CloudbrainsVersionList(&models.CloudbrainsOptions{
ListOptions: models.ListOptions{
@@ -272,7 +272,7 @@ func QueryTrainJobList(ctx *context.Context) {
JobID: "",
})

ctx.Json(200, VersionListTasks)
ctx.JSON(200, VersionListTasks)
}

func DownloadSingleModelFile(ctx *context.Context) {


Loading…
Cancel
Save