ok
This commit is contained in:
23
tpl/logic.go
Normal file
23
tpl/logic.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package tpl
|
||||
|
||||
var LogicFile = `package {methodName}
|
||||
|
||||
import (
|
||||
"context"
|
||||
{import}
|
||||
"git.apinb.com/bsm-sdk/core/service"
|
||||
)
|
||||
|
||||
{comment}
|
||||
func {func}(ctx context.Context, in *pb.{input}) (reply *pb.{output},err error) {
|
||||
// parse authorization meta.
|
||||
_, err = service.ParseMetaCtx(ctx, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// TODO: add your logic code & delete this line.
|
||||
|
||||
return
|
||||
}
|
||||
`
|
||||
Reference in New Issue
Block a user