feat(dao): add dao template

This commit is contained in:
bandl 2021-10-27 21:38:31 +08:00
parent 14c52da1ed
commit dab21a4ebc
1 changed files with 12 additions and 0 deletions

12
storage/temp/dao.template Normal file
View File

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