This commit is contained in:
2025-04-01 17:37:16 +08:00
parent d94b2744c0
commit 23c5220745
35 changed files with 2938 additions and 3585 deletions

23
tpl/logic.go Normal file
View 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
}
`