utils

package
v0.0.0-...-b4ee2f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelLedger

func DelLedger(stub shim.ChaincodeStubInterface, objectType string, keys []string) error

DelLedger 删除账本

func GetStateByPartialCompositeKeys

func GetStateByPartialCompositeKeys(stub shim.ChaincodeStubInterface, objectType string, keys []string) (results [][]byte, err error)

GetStateByPartialCompositeKeys 根据复合主键查询数据(适合获取全部,多个,单个数据) 将keys拆分查询

func GetStateByPartialCompositeKeys2

func GetStateByPartialCompositeKeys2(stub shim.ChaincodeStubInterface, objectType string, keys []string) (results [][]byte, err error)

GetStateByPartialCompositeKeys2 根据复合主键查询数据(适合获取全部或指定的数据)

func WriteLedger

func WriteLedger(obj interface{}, stub shim.ChaincodeStubInterface, objectType string, keys []string) error

WriteLedger 写入账本

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL