|
|
@ -39,7 +39,7 @@ func NewRpcTemplate(out string, idea bool) *rpcTemplate {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (r *rpcTemplate) MustGenerate(showState bool) {
|
|
|
|
func (r *rpcTemplate) MustGenerate(showState bool) {
|
|
|
|
r.Info("查看rpc生成请移步至「https://github.com/tal-tech/go-zero/blob/master/doc/goctl-rpc.md」")
|
|
|
|
r.Info("查看rpc生成请移步至「https://github.com/tal-tech/zero-doc/blob/main/doc/goctl-rpc.md」")
|
|
|
|
r.Info("generating template...")
|
|
|
|
r.Info("generating template...")
|
|
|
|
protoFilename := filepath.Base(r.out)
|
|
|
|
protoFilename := filepath.Base(r.out)
|
|
|
|
serviceName := stringx.From(strings.TrimSuffix(protoFilename, filepath.Ext(protoFilename)))
|
|
|
|
serviceName := stringx.From(strings.TrimSuffix(protoFilename, filepath.Ext(protoFilename)))
|
|
|
|