Skip to content
Snippets Groups Projects
Commit 003ed41e authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

Merge branch 'feature/PRXS-1102-FixActionResponse' into 'master'

Исправлены функции трансляции структур в/из proto

See merge request perxis/perxis-go!114
parents 38b30c57 4d148ed5
No related branches found
No related tags found
No related merge requests found
......@@ -173,7 +173,11 @@ func ActionResponseToPB(out *ActionResponse) *pb.ActionResponse {
return &pb.ActionResponse{
State: out.State,
Format: out.Format,
Target: out.Target,
Msg: out.Msg,
Title: out.Title,
Image: out.Image,
Error: out.Error,
Next: next,
Metadata: out.Metadata,
......@@ -193,7 +197,11 @@ func ActionResponseFromPB(out *pb.ActionResponse) *ActionResponse {
return &ActionResponse{
State: out.State,
Format: out.Format,
Target: out.Target,
Msg: out.Msg,
Title: out.Title,
Image: out.Image,
Error: out.Error,
Next: next,
Metadata: out.Metadata,
......@@ -234,6 +242,8 @@ func ActionToPB(a *Action) *pb.Action {
return &pb.Action{
Extension: a.Extension,
Action: a.Action,
Target: a.Target,
Parent: a.Parent,
Name: a.Name,
Description: a.Description,
Icon: a.Icon,
......@@ -246,5 +256,7 @@ func ActionToPB(a *Action) *pb.Action {
Request: ActionRequestToPB(a.Request),
NavigationAction: a.NavigationAction,
NavigationRoute: a.NavigationRoute,
Autorun: a.Autorun,
Confirm: a.Confirm,
}
}
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