|
|
@@ -14,6 +14,7 @@ import ( |
|
|
"gitlink.org.cn/JointCloud/pcm-modelarts/client/modelartsservice" |
|
|
"gitlink.org.cn/JointCloud/pcm-modelarts/client/modelartsservice" |
|
|
"gitlink.org.cn/JointCloud/pcm-octopus/octopusclient" |
|
|
"gitlink.org.cn/JointCloud/pcm-octopus/octopusclient" |
|
|
"strconv" |
|
|
"strconv" |
|
|
|
|
|
"sync" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
const ( |
|
|
const ( |
|
|
@@ -30,6 +31,7 @@ type AiService struct { |
|
|
Storage *database.AiStorage |
|
|
Storage *database.AiStorage |
|
|
LocalCache map[string]interface{} |
|
|
LocalCache map[string]interface{} |
|
|
Conf *config.Config |
|
|
Conf *config.Config |
|
|
|
|
|
TaskSyncLock sync.Mutex |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func NewAiService(conf *config.Config, storages *database.AiStorage, localCache map[string]interface{}) (*AiService, error) { |
|
|
func NewAiService(conf *config.Config, storages *database.AiStorage, localCache map[string]interface{}) (*AiService, error) { |
|
|
|