Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-go
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
18c11435
Commit
18c11435
authored
1 year ago
by
ko_oler
Browse files
Options
Downloads
Patches
Plain Diff
Добавлены json-ключи для структур ActionRequest и ActionResponse
parent
53ca8de3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/extension/action.go
+21
-21
21 additions, 21 deletions
pkg/extension/action.go
with
21 additions
and
21 deletions
pkg/extension/action.go
+
21
−
21
View file @
18c11435
...
...
@@ -14,30 +14,30 @@ type (
ResponseFormat
=
pb
.
ActionResponse_Format
ActionRequest
struct
{
Extension
string
Action
string
SpaceID
string
EnvID
string
CollectionID
string
ItemID
string
ItemIDs
[]
string
Fields
[]
string
Metadata
map
[
string
]
string
Refs
[]
*
references
.
Reference
Params
*
references
.
Reference
Extension
string
`json:"extension,omitempty"`
Action
string
`json:"action,omitempty"`
SpaceID
string
`json:"space_id,omitempty"`
EnvID
string
`json:"env_id,omitempty"`
CollectionID
string
`json:"collection_id,omitempty"`
ItemID
string
`json:"item_id,omitempty"`
ItemIDs
[]
string
`json:"item_i_ds,omitempty"`
Fields
[]
string
`json:"fields,omitempty"`
Metadata
map
[
string
]
string
`json:"metadata,omitempty"`
Refs
[]
*
references
.
Reference
`json:"refs,omitempty"`
Params
*
references
.
Reference
`json:"params,omitempty"`
}
ActionResponse
struct
{
State
ResponseState
Target
ActionTarget
Format
ResponseFormat
Msg
string
Title
string
Image
string
Error
string
Next
[]
*
Action
Metadata
map
[
string
]
string
Refs
[]
*
references
.
Reference
State
ResponseState
`json:"state,omitempty"`
Target
ActionTarget
`json:"target,omitempty"`
Format
ResponseFormat
`json:"format,omitempty"`
Msg
string
`json:"msg,omitempty"`
Title
string
`json:"title,omitempty"`
Image
string
`json:"image,omitempty"`
Error
string
`json:"error,omitempty"`
Next
[]
*
Action
`json:"next,omitempty"`
Metadata
map
[
string
]
string
`json:"metadata,omitempty"`
Refs
[]
*
references
.
Reference
`json:"refs,omitempty"`
}
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment