Skip to content
Snippets Groups Projects
Commit 18c11435 authored by ko_oler's avatar ko_oler
Browse files

Добавлены json-ключи для структур ActionRequest и ActionResponse

parent 53ca8de3
No related branches found
No related tags found
No related merge requests found
......@@ -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"`
}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment