2021-09-28 22:42:11 +08:00
|
|
|
// Code generated by gen-struct. DO NOT EDIT.
|
2021-09-21 10:44:27 +08:00
|
|
|
// make gen-struct generated
|
|
|
|
|
|
|
|
package structure
|
|
|
|
|
|
|
|
import "gitee.com/timedb/wheatCache/pkg/proto"
|
|
|
|
|
|
|
|
type KeyBaseInterface interface {
|
|
|
|
SizeByte() int64
|
|
|
|
|
2021-09-25 23:37:24 +08:00
|
|
|
// RollBack TODO 事务相关, V2 实现
|
2021-09-21 10:44:27 +08:00
|
|
|
RollBack() error
|
|
|
|
// Begin 事务相关, V2 实现
|
|
|
|
Begin() error
|
|
|
|
// Comment 事务相关, V2 实现
|
|
|
|
Comment() error
|
|
|
|
|
|
|
|
Encode() ([]byte, error)
|
|
|
|
}
|
|
|
|
{% for dict_item in Data %}
|
|
|
|
{% for key, value in dict_item.items() %}
|
|
|
|
type {{key}}Interface interface{
|
|
|
|
KeyBaseInterface
|
|
|
|
{% for val in value -%}
|
2021-09-25 23:37:24 +08:00
|
|
|
{{val}}(*proto.{{val}}Request) (*proto.{{val}}Response, error)
|
2021-09-21 10:44:27 +08:00
|
|
|
{% endfor %}
|
|
|
|
}
|
|
|
|
{% endfor -%}
|
|
|
|
{%- endfor %}
|