From 18c11435175a5c8c21d895e13af80b8afe82a889 Mon Sep 17 00:00:00 2001 From: ko_oler <kooler89@gmail.com> Date: Mon, 27 Nov 2023 13:13:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20json-=D0=BA=D0=BB=D1=8E=D1=87=D0=B8=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D1=81=D1=82=D1=80=D1=83=D0=BA=D1=82=D1=83=D1=80?= =?UTF-8?q?=20ActionRequest=20=D0=B8=20ActionResponse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/extension/action.go | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/pkg/extension/action.go b/pkg/extension/action.go index 90889fe5..8242d880 100644 --- a/pkg/extension/action.go +++ b/pkg/extension/action.go @@ -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"` } ) -- GitLab