Skip to content

Commit

Permalink
支持路由器输出
Browse files Browse the repository at this point in the history
  • Loading branch information
davyxu committed Mar 2, 2021
1 parent d480aeb commit 8b261ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions gen/route/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func genJsonData(ctx *gen.Context) ([]byte, error) {
rt.Rule = append(rt.Rule, &model.RouteRule{
MsgName: ctx.PackageName + "." + d.Name,
SvcName: msgDir.To,
Router: msgDir.Mid,
MsgID: msgID,
})
}
Expand Down
1 change: 1 addition & 0 deletions model/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ type RouteRule struct {
MsgID int

SvcName string
Router string `json:",omitempty"`
}

// 路由表,包含多条路由规则
Expand Down

0 comments on commit 8b261ad

Please sign in to comment.