Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bkunyun
Commits
23a11fc2
Commit
23a11fc2
authored
Jun 21, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 任务配置数据结构完成
parent
46812651
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
0 deletions
+65
-0
interface.ts
src/views/Project/ProjectSubmitWork/interface.ts
+65
-0
No files found.
src/views/Project/ProjectSubmitWork/interface.ts
0 → 100644
View file @
23a11fc2
export
interface
ITemplateConfig
{
title
:
string
;
version
:
string
;
updateTime
:
string
;
description
:
string
;
language
:
string
;
languageVersion
:
string
;
tags
:
Array
<
string
>
;
source
:
string
;
productId
:
string
;
tasks
:
Array
<
ITask
>
;
}
export
interface
ITask
{
id
:
string
;
title
:
string
;
description
:
string
;
position
:
{
x
:
number
;
y
:
number
;
};
type
:
"batch"
|
"flow"
;
parameters
:
Array
<
IParameter
>
;
edges
:
Array
<
IEdge
>
;
}
export
interface
IParameter
{
hidden
:
boolean
;
name
:
string
;
required
:
boolean
;
domType
:
IDomType
;
dataType
:
string
;
value
:
string
;
description
:
string
;
validators
:
IValidator
;
choices
:
Array
<
IChoice
>
;
}
export
enum
IDomType
{
PathSelect
=
"pathSelect"
,
DatasetSelect
=
"datasetSelect"
,
FileSelect
=
"fileSelect"
,
Input
=
"input"
,
Select
=
"select"
,
MultipleSelect
=
"multipleSelect"
,
Radio
=
"radio"
,
Checkbox
=
"checkbox"
,
}
export
interface
IValidator
{
// 待定
}
export
interface
IChoice
{
key
:
string
;
value
:
boolean
|
string
|
number
;
}
export
interface
IEdge
{
id
:
string
;
source
:
string
;
sourceHandleid
:
string
;
target
:
string
;
targetHandle
:
string
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment