// Invoke - Our entry point for Invocations
// ========================================
Our entry point for Invocations
// Invoke - Our entry point for Invocations // ========================================
func (t *AuthChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response {
	function, args := stub.GetFunctionAndParameters()
	fmt.Println("invoke is running " + function)
        if function == "createAuthScene" { 
                return t.createAuthScene(stub, args)
        }else if function == "createAuthDataItem" { 
                return t.createAuthDataItem(stub, args)
        }else if function == "readAuthScene" { 
                return t.readAuthScene(stub, args)
        }else if function == "queryAuthSceneByGrantorId" { 
                return t.queryAuthSceneByGrantorId(stub, args)
        }else if function == "queryAuthSceneBySceneId" { 
                return t.queryAuthSceneBySceneId(stub, args)
        }else if function == "queryAuthSceneByGranteeId" { 
                return t.queryAuthSceneByGranteeId(stub, args)
        }else if function == "queryAuthSceneWithPagination" { 
                return t.queryAuthSceneWithPagination(stub, args)
        }else if function == "getHistoryForAuthScene" { 
                return t.getHistoryForAuthScene(stub, args)
        }
	fmt.Println("invoke did not find func: " + function) 
        return shim.Error("Received unknown function invocation")
}
func ( t * AuthChaincode ) Invoke ( stub shim . ChaincodeStubInterface ) pb . Response { function , args := stub . GetFunctionAndParameters ( ) fmt . Println ( " " + function ) if function == " " { return t . createAuthScene ( stub , args ) } else if function == " " { return t . createAuthDataItem ( stub , args ) } else if function == " " { return t . readAuthScene ( stub , args ) } else if function == " " { return t . queryAuthSceneByGrantorId ( stub , args ) } else if function == " " { return t . queryAuthSceneBySceneId ( stub , args ) } else if function == " " { return t . queryAuthSceneByGranteeId ( stub , args ) } else if function == " " { return t . queryAuthSceneWithPagination ( stub , args ) } else if function == " " { return t . getHistoryForAuthScene ( stub , args ) } fmt . Println ( " " + function ) return shim . Error ( " " ) }
Our entry point for Invocations
Our entry point for Invocations
// Handle different functions //create a new auth scene //create a new auth data item //read a auth scene //read a auth info by grantorId //read a auth info by sceneId //read a auth info by granteeId //read a auth info with pagination //get a auth info change history //error