-
-
Save vitiko/a0c8882b6b48e33cdc51bf72209243f5 to your computer and use it in GitHub Desktop.
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
// Code generated by protoc-gen-cc-gateway. DO NOT EDIT. | |
// source: service.proto | |
import ( | |
cckit_router "github.com/s7techlab/cckit/router" | |
cckit_defparam "github.com/s7techlab/cckit/router/param/defparam" | |
) | |
const ( | |
.. | |
CPaperChaincode_Issue = "Issue" | |
... | |
) | |
// RegisterCPaperChaincode registers service methods as chaincode router handlers | |
func RegisterCPaperChaincode(r *cckit_router.Group, cc CPaperChaincode) error { | |
... | |
r.Invoke(CPaperChaincode_Issue, | |
func(ctx cckit_router.Context) (interface{}, error) { | |
return cc.Issue(ctx, ctx.Param().(*schema.IssueCommercialPaper)) | |
}, | |
cckit_defparam.Proto(&schema.IssueCommercialPaper{})) | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment