read,write methods for rpc request,response

This commit is contained in:
Pavel Merzlyakov 2023-09-07 17:06:23 +03:00
parent 6f4b082676
commit 50f0a5b57a
1 changed files with 2 additions and 0 deletions

View File

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