diff --git a/gen/route/route.go b/gen/route/route.go index bd28537..d8246b0 100644 --- a/gen/route/route.go +++ b/gen/route/route.go @@ -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, }) diff --git a/model/route.go b/model/route.go index cdc7578..699893d 100644 --- a/model/route.go +++ b/model/route.go @@ -5,7 +5,7 @@ type RouteRule struct { MsgName string MsgID int - SvcName string + SvcType string Router string `json:",omitempty"` }