Created
May 20, 2018 19:45
-
-
Save vitiko/e77b2c6cdebbf155589a3195168d82b9 to your computer and use it in GitHub Desktop.
Cars chaincode asset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Car struct for chaincode state | |
type Car struct { | |
Id string | |
Title string | |
Owner string | |
UpdatedAt time.Time // set by chaincode method | |
} | |
// CarPayload chaincode method argument | |
type CarPayload struct { | |
Id string | |
Title string | |
Owner string | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment