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 %}