Skip to content

Instantly share code, notes, and snippets.

@vitiko

vitiko/block9.go Secret

Created July 23, 2019 07:45
Show Gist options
  • Save vitiko/a0c8882b6b48e33cdc51bf72209243f5 to your computer and use it in GitHub Desktop.
Save vitiko/a0c8882b6b48e33cdc51bf72209243f5 to your computer and use it in GitHub Desktop.
// 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