|
|
|
@@ -383,6 +383,25 @@ func CloudbrainForModelConvertGetLog(ctx *context.Context) { |
|
|
|
ctx.JSON(http.StatusOK, result) |
|
|
|
} |
|
|
|
|
|
|
|
func CloudbrainForModelSafetyGetLog(ctx *context.Context) { |
|
|
|
ID := ctx.Params(":id") |
|
|
|
job, err := models.GetCloudbrainByID(ID) |
|
|
|
if err != nil { |
|
|
|
log.Error("GetCloudbrainByJobName failed: %v", err, ctx.Data["MsgID"]) |
|
|
|
ctx.ServerError(err.Error(), err) |
|
|
|
return |
|
|
|
} |
|
|
|
if job.JobType == string(models.JobTypeModelSafety) { |
|
|
|
if job.Type == models.TypeCloudBrainOne { |
|
|
|
|
|
|
|
} else if job.Type == models.TypeCloudBrainTwo { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
result := "" |
|
|
|
ctx.JSON(http.StatusOK, result) |
|
|
|
} |
|
|
|
|
|
|
|
func CloudbrainDownloadLogFile(ctx *context.Context) { |
|
|
|
ID := ctx.Params(":id") |
|
|
|
job, err := models.GetCloudbrainByID(ID) |
|
|
|
|