mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-13 18:00:00 +08:00
feat(goctl/rpc): support external proto imports with cross-package ty… (#5472)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
13
tools/goctl/rpc/test/proto/04_transitive/middleware.proto
Normal file
13
tools/goctl/rpc/test/proto/04_transitive/middleware.proto
Normal file
@@ -0,0 +1,13 @@
|
||||
syntax = "proto3";
|
||||
|
||||
// 场景04:中间层(B 层),import base.proto
|
||||
package middleware;
|
||||
|
||||
option go_package = "example.com/demo/s04_transitive/pb";
|
||||
|
||||
import "base.proto";
|
||||
|
||||
message RequestMeta {
|
||||
string trace_id = 1;
|
||||
base.BaseResp base = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user