read,write methods for rpc request,response
This commit is contained in:
parent
6f4b082676
commit
50f0a5b57a
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue