package data type EntityInterface interface { TableName() string } type KVStore struct { Key string `json:"key" xorm:"'key' pk"` // 主键字段 Value string `json:"value" xorm:"'value'"` // 值字段 } // TableName 设置form表名 func (KVStore) TableName() string { return "kv_store" }