|
|
|
@@ -639,6 +639,7 @@ func ShowSingleModel(ctx *context.Context) { |
|
|
|
if value != nil { |
|
|
|
model.UserName = value.Name |
|
|
|
model.UserRelAvatarLink = value.RelAvatarLink() |
|
|
|
model.TrainTaskInfo = "" |
|
|
|
} |
|
|
|
} |
|
|
|
ctx.JSON(http.StatusOK, models) |
|
|
|
@@ -787,6 +788,7 @@ func ShowModelPageInfo(ctx *context.Context) { |
|
|
|
for i, model := range modelResult { |
|
|
|
model.IsCanOper = isOper(ctx, model.UserId) |
|
|
|
model.IsCanDelete = isCanDelete(ctx, model.UserId) |
|
|
|
model.TrainTaskInfo = "" |
|
|
|
userIds[i] = model.UserId |
|
|
|
} |
|
|
|
|
|
|
|
|