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 (
...
@@ -14,30 +14,30 @@ type (
ResponseFormat
=
pb
.
ActionResponse_Format
ResponseFormat
=
pb
.
ActionResponse_Format
ActionRequest
struct
{
ActionRequest
struct
{
Extension
string
Extension
string
`json:"extension,omitempty"`
Action
string
Action
string
`json:"action,omitempty"`
SpaceID
string
SpaceID
string
`json:"space_id,omitempty"`
EnvID
string
EnvID
string
`json:"env_id,omitempty"`
CollectionID
string
CollectionID
string
`json:"collection_id,omitempty"`
ItemID
string
ItemID
string
`json:"item_id,omitempty"`
ItemIDs
[]
string
ItemIDs
[]
string
`json:"item_i_ds,omitempty"`
Fields
[]
string
Fields
[]
string
`json:"fields,omitempty"`
Metadata
map
[
string
]
string
Metadata
map
[
string
]
string
`json:"metadata,omitempty"`
Refs
[]
*
references
.
Reference
Refs
[]
*
references
.
Reference
`json:"refs,omitempty"`
Params
*
references
.
Reference
Params
*
references
.
Reference
`json:"params,omitempty"`
}
}
ActionResponse
struct
{
ActionResponse
struct
{
State
ResponseState
State
ResponseState
`json:"state,omitempty"`
Target
ActionTarget
Target
ActionTarget
`json:"target,omitempty"`
Format
ResponseFormat
Format
ResponseFormat
`json:"format,omitempty"`
Msg
string
Msg
string
`json:"msg,omitempty"`
Title
string
Title
string
`json:"title,omitempty"`
Image
string
Image
string
`json:"image,omitempty"`
Error
string
Error
string
`json:"error,omitempty"`
Next
[]
*
Action
Next
[]
*
Action
`json:"next,omitempty"`
Metadata
map
[
string
]
string
Metadata
map
[
string
]
string
`json:"metadata,omitempty"`
Refs
[]
*
references
.
Reference
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