30 lines
649 B
Plaintext
30 lines
649 B
Plaintext
// Code generated by gen-struct-const. DO NOT EDIT.
|
|
// make gen-struct generated
|
|
|
|
package structure
|
|
|
|
import "gitee.com/timedb/wheatCache/pkg/proto"
|
|
|
|
type KeyBaseInterface interface {
|
|
SizeByte() int64
|
|
|
|
// TODO RollBack 事务相关, V2 实现
|
|
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 -%}
|
|
{{val}}(*proto.{{val}}Request) ([]string, error)
|
|
{% endfor %}
|
|
}
|
|
{% endfor -%}
|
|
{%- endfor %}
|