//Invoke method is called as a result of an application request to run the Smart Contract "borrowApplication"
Invoke method is called as a result of an application request to run the Smart Contract "borrowApplication"
// Invoke method is called as a result of an application request to run the Smart Contract " borrowApplication "
func (s *SmartContract) Invoke(APIstub shim.ChaincodeStubInterface) sc.Response {
	function, args := APIstub.GetFunctionAndParameters()
	if function == "createUser" {
		return s.createUser(APIstub, args)
	} else if function == "queryUserInfo" {
		return s.queryUserInfo(APIstub, args)
	} else if function == "queryAllUserInfo" {
		return s.queryAllUserInfo(APIstub)
	} else if function == "changeUserInfo" {
		return s.changeUserInfo(APIstub, args)
	} else if function == "changeUserPoint" {
		return s.changeUserPoint(APIstub, args)
	}
	return shim.Error("Invalid Smart Contract function name.")
}
func ( s * SmartContract ) Invoke ( APIstub shim . ChaincodeStubInterface ) sc . Response { function , args := APIstub . GetFunctionAndParameters ( ) if function == " " { return s . createUser ( APIstub , args ) } else if function == " " { return s . queryUserInfo ( APIstub , args ) } else if function == " " { return s . queryAllUserInfo ( APIstub ) } else if function == " " { return s . changeUserInfo ( APIstub , args ) } else if function == " " { return s . changeUserPoint ( APIstub , args ) } return shim . Error ( " " ) }
Invoke method is called as a result of an application request to run the Smart Contract "borrowApplication"
Invoke method is called as a result of an application request to run the Smart Contract " borrowApplication "
// Retrieve the requested Smart Contract function and arguments // Route to the appropriate handler function to interact with the ledger