upload project source code

This commit is contained in:
2026-04-30 18:49:43 +08:00
commit 9b394ba682
2277 changed files with 660945 additions and 0 deletions

View File

@@ -0,0 +1,89 @@
import { l as httpRequest } from "./index.CMd5bD1r.js";
const PROVIDER_PATH = "/application/ai/provider";
const AIProviderAPI = {
// 列表查询
list(query) {
return httpRequest({
url: `${PROVIDER_PATH}/list`,
method: "get",
params: query
});
},
// 详情查询
detail(id) {
return httpRequest({
url: `${PROVIDER_PATH}/detail/${id}`,
method: "get"
});
},
// 新增
create(body) {
return httpRequest({
url: `${PROVIDER_PATH}/create`,
method: "post",
data: body
});
},
// 修改
update(id, body) {
return httpRequest({
url: `${PROVIDER_PATH}/update/${id}`,
method: "put",
data: body
});
},
// 删除
delete(ids) {
return httpRequest({
url: `${PROVIDER_PATH}/delete`,
method: "delete",
data: ids
});
}
};
const EMBEDDING_PATH = "/application/ai/embedding";
const EmbeddingConfigAPI = {
// 列表查询
list(query) {
return httpRequest({
url: `${EMBEDDING_PATH}/list`,
method: "get",
params: query
});
},
// 详情查询
detail(id) {
return httpRequest({
url: `${EMBEDDING_PATH}/detail/${id}`,
method: "get"
});
},
// 新增
create(body) {
return httpRequest({
url: `${EMBEDDING_PATH}/create`,
method: "post",
data: body
});
},
// 修改
update(id, body) {
return httpRequest({
url: `${EMBEDDING_PATH}/update/${id}`,
method: "put",
data: body
});
},
// 删除
delete(ids) {
return httpRequest({
url: `${EMBEDDING_PATH}/delete`,
method: "delete",
data: ids
});
}
};
export {
AIProviderAPI as A,
EmbeddingConfigAPI as E
};