fix: Restore taskAi field
Former-commit-id: bc6af6d16b53319c959ab5dc79296bdcd1808905
This commit is contained in:
parent
be97e73406
commit
86a670e59b
|
@ -2,18 +2,14 @@ package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"github.com/jinzhu/copier"
|
"github.com/jinzhu/copier"
|
||||||
|
"github.com/zeromicro/go-zero/core/logx"
|
||||||
clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client"
|
clientCore "gitlink.org.cn/JointCloud/pcm-coordinator/client"
|
||||||
|
"gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc"
|
||||||
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models"
|
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models"
|
||||||
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models/cloud"
|
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/models/cloud"
|
||||||
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils"
|
"gitlink.org.cn/JointCloud/pcm-coordinator/pkg/utils"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"log"
|
|
||||||
|
|
||||||
"github.com/zeromicro/go-zero/core/logx"
|
|
||||||
"gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type PullTaskInfoLogic struct {
|
type PullTaskInfoLogic struct {
|
||||||
|
@ -84,7 +80,7 @@ func (l *PullTaskInfoLogic) PullTaskInfo(req *clientCore.PullTaskInfoReq) (*clie
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
utils.Convert(aiModelList, &resp.AiInfoList)
|
utils.Convert(aiModelList, &resp.AiInfoList)
|
||||||
if len(resp.AiInfoList) > 0 {
|
/*if len(resp.AiInfoList) > 0 {
|
||||||
for i, aiInfo := range aiModelList {
|
for i, aiInfo := range aiModelList {
|
||||||
if resp.AiInfoList[i].Environments != "" {
|
if resp.AiInfoList[i].Environments != "" {
|
||||||
// 定义一个map来存储解析后的JSON数据
|
// 定义一个map来存储解析后的JSON数据
|
||||||
|
@ -116,7 +112,7 @@ func (l *PullTaskInfoLogic) PullTaskInfo(req *clientCore.PullTaskInfoReq) (*clie
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
return &resp, nil
|
return &resp, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue