Skip to content

Commit

Permalink
svcName->svcType
Browse files Browse the repository at this point in the history
  • Loading branch information
davyxu committed Aug 7, 2021
1 parent 19cc05e commit db7fce9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gen/route/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func genJsonData(ctx *gen.Context) ([]byte, error) {

rt.Rule = append(rt.Rule, &model.RouteRule{
MsgName: ctx.PackageName + "." + d.Name,
SvcName: msgDir.To,
SvcType: msgDir.To,
Router: msgDir.Mid,
MsgID: msgID,
})
Expand Down
2 changes: 1 addition & 1 deletion model/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type RouteRule struct {
MsgName string
MsgID int

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

Expand Down

0 comments on commit db7fce9

Please sign in to comment.