forked from p93542168/wheat-cache
feat(dao): add interface
This commit is contained in:
parent
5642a00f61
commit
511a66bd98
|
@ -7,6 +7,6 @@ import "gitee.com/timedb/wheatCache/pkg/proto"
|
||||||
|
|
||||||
type Interface interface {
|
type Interface interface {
|
||||||
{%for key in keys %}
|
{%for key in keys %}
|
||||||
{{key.method}}({% for req in key.option %} {{req[1]}}, {% endfor %}) ({% for req in key.ret %} {{req[1]}}, {% endfor %}error)
|
{{key.method}}({% for req in key.option %} {{req[1]}}, {% endfor %}) (*proto.{{key.method}}Response, error)
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue