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 ( ...@@ -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"`
} }
) )
......
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