From 50f0a5b57a8bec4c496d6ddb0b76ad47fdff9eb1 Mon Sep 17 00:00:00 2001 From: Pavel Merzlyakov Date: Thu, 7 Sep 2023 17:06:23 +0300 Subject: [PATCH] read,write methods for rpc request,response --- tpl/macros_rpc.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tpl/macros_rpc.twig b/tpl/macros_rpc.twig index e6c9878..192393c 100644 --- a/tpl/macros_rpc.twig +++ b/tpl/macros_rpc.twig @@ -68,6 +68,7 @@ func New{{ req_name }}() *{{ req_name }} { {{ struct_macros.reset_method(r.req, req_name) }} {{ struct_macros.meta_read(r.req, req_name) }} +{{ struct_macros.meta_write(r.req, req_name) }} type {{ rsp_name }} struct { {%~ for f in r.rsp.fields %} @@ -82,5 +83,6 @@ func New{{ rsp_name }}() *{{ rsp_name }} { } {{ struct_macros.reset_method(r.rsp, rsp_name) }} +{{ struct_macros.meta_read(r.rsp, rsp_name) }} {{ struct_macros.meta_write(r.rsp, rsp_name) }} {% endmacro rpc %}