From dab21a4ebca21a8d29a405227b1708bd4e152837 Mon Sep 17 00:00:00 2001 From: bandl <1658002533@qq.com> Date: Wed, 27 Oct 2021 21:38:31 +0800 Subject: [PATCH] feat(dao): add dao template --- storage/temp/dao.template | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 storage/temp/dao.template diff --git a/storage/temp/dao.template b/storage/temp/dao.template new file mode 100644 index 0000000..e0f63a4 --- /dev/null +++ b/storage/temp/dao.template @@ -0,0 +1,12 @@ +// Code generated by gen-struct. DO NOT EDIT. +// make gen-service generated + +package dao + +import "gitee.com/timedb/wheatCache/pkg/proto" + +type Interface interface { + {%for key in keys %} + {{key.method}}({% for req in key.option %} {{req[1]}}, {% endfor %}) ({% for req in key.ret %} {{req[1]}}, {% endfor %}error) + {%- endfor %} +}