Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
fa868381
提交
fa868381
authored
2月 13, 2023
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
f476067c
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
22 行增加
和
19 行删除
+22
-19
api.ts
src/modules/connect/api.ts
+6
-5
api.ts
src/modules/metadata/event/api.ts
+9
-8
api.ts
src/modules/metadata/user/api.ts
+7
-6
没有找到文件。
src/modules/connect/api.ts
浏览文件 @
fa868381
...
...
@@ -2,25 +2,25 @@ import httpRequest from '@/utils/axios'
// 链接列表
export
function
getConnectionList
(
params
:
{
created_operator
?:
string
;
type
?:
string
;
page
?:
number
;
page_size
?:
number
})
{
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/connection/list'
,
{
params
:
{
experiment_id
:
'7025368348925886464'
,
...
params
}
})
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/connection/list'
,
{
params
})
}
// 创建链接
export
function
createConnection
(
data
:
{
type
:
string
;
config_attributes
:
string
;
})
{
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/connection/create'
,
{
experiment_id
:
'7025368348925886464'
,
...
data
}
)
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/connection/create'
,
data
)
}
// 链接详情
export
function
getConnectionDetails
(
params
:
{
id
?:
string
;
})
{
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/connection/view'
,
{
params
:
{
experiment_id
:
'7025368348925886464'
,
...
params
}
})
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/connection/view'
,
{
params
})
}
// 更新链接
export
function
updateConnection
(
data
:
{
id
:
string
;
config_attributes
:
string
;
})
{
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/connection/update'
,
{
experiment_id
:
'7025368348925886464'
,
...
data
}
)
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/connection/update'
,
data
)
}
// 删除链接
export
function
deleteConnection
(
data
:
{
id
:
string
;
})
{
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/connection/delete'
,
{
experiment_id
:
'7025368348925886464'
,
...
data
}
)
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/connection/delete'
,
data
)
}
\ No newline at end of file
src/modules/metadata/event/api.ts
浏览文件 @
fa868381
...
...
@@ -7,35 +7,35 @@ export function getMetaEvent(params: { name?: string; status?: string; experimen
// 创建事件属性
export
function
createMetaEvent
(
data
:
{
name
:
string
;
english_name
:
string
;
experiment_connection_id
:
string
;
status
:
string
;
})
{
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-event/create'
,
{
experiment_id
:
'7025368348925886464'
,
...
data
}
)
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-event/create'
,
data
)
}
//
链接
列表
//
时间
列表
export
function
getConnectionsList
()
{
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/meta-event/connections'
,
{
params
:
{
experiment_id
:
'7025368348925886464'
}
}
)
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/meta-event/connections'
)
}
// 修改事件属性
export
function
updateMetaEvent
(
data
:
{
id
?:
string
;
name
:
string
;
english_name
:
string
;
status
:
string
;
})
{
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-event/update'
,
{
experiment_id
:
'7025368348925886464'
,
...
data
}
)
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-event/update'
,
data
)
}
// 删除
export
function
deleteMetaEvent
(
data
:
{
id
?:
string
})
{
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-event/delete'
,
{
experiment_id
:
'7025368348925886464'
,
...
data
}
)
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-event/delete'
,
data
)
}
// 事件属性列表
export
function
getMetaEventDetail
(
params
:
{
id
:
string
})
{
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/meta-event/view'
,
{
params
:
{
experiment_id
:
'7025368348925886464'
,
...
params
}
})
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/meta-event/view'
,
{
params
})
}
// 保存属性
export
function
updateAttributes
(
data
:
{
id
:
string
;
attributes
:
string
})
{
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-event/attributes'
,
{
experiment_id
:
'7025368348925886464'
,
...
data
}
)
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-event/attributes'
,
data
)
}
// 事件属性列表
export
function
getIsDeleteAttribute
(
params
:
{
id
:
string
})
{
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/meta-event/can-delete-attribute'
,
{
params
:
{
experiment_id
:
'7025368348925886464'
,
...
params
}
})
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/meta-event/can-delete-attribute'
,
{
params
})
}
\ No newline at end of file
src/modules/metadata/user/api.ts
浏览文件 @
fa868381
...
...
@@ -2,30 +2,30 @@ import httpRequest from '@/utils/axios'
// 用户属性列表
export
function
getMemberMeta
(
params
:
{
name
?:
string
;
status
?:
string
;
type
?:
string
;
page
?:
number
;
page_size
?:
number
})
{
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/meta-member/list'
,
{
params
:
{
experiment_id
:
'7025368348925886464'
,
...
params
}
})
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/meta-member/list'
,
{
params
})
}
// 用户属性详情
export
function
getMemberMetaDetail
(
params
:
{
id
:
string
})
{
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/meta-member/view'
,
{
params
:
{
experiment_id
:
'7025368348925886464'
,
...
params
}
})
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/meta-member/view'
,
{
params
})
}
// 创建用户属性
export
function
createMemberMeta
(
data
:
{
name
:
string
;
english_name
:
string
;
type
:
string
;
format
:
string
;
status
:
string
;
})
{
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-member/create'
,
{
experiment_id
:
'7025368348925886464'
,
...
data
}
)
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-member/create'
,
data
)
}
// 修改用户属性
export
function
updateMemberMeta
(
data
:
{
id
?:
string
;
name
:
string
;
english_name
:
string
;
status
:
string
;
})
{
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-member/update'
,
{
experiment_id
:
'7025368348925886464'
,
...
data
}
)
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-member/update'
,
data
)
}
// 修改用户属性
export
function
deleteMemberMeta
(
data
:
{
id
:
string
;
})
{
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-member/delete'
,
{
experiment_id
:
'7025368348925886464'
,
...
data
}
)
return
httpRequest
.
post
(
'/api/experiment/v1/experiment/meta-member/delete'
,
data
)
}
// 事件属性列表
export
function
getMetaEvent
(
params
:
{
name
?:
string
;
status
?:
string
;
type
?:
string
;
page
?:
number
;
page_size
?:
number
})
{
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/meta-event/list'
,
{
params
:
{
experiment_id
:
'7025368348925886464'
,
...
params
}
})
return
httpRequest
.
get
(
'/api/experiment/v1/experiment/meta-event/list'
,
{
params
})
}
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论