mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 09:00:20 +08:00
Fix bug in dartgen: Increase the processing logic when route.RequestType is empty
This commit is contained in:
parent
b41ccc5992
commit
97ada59175
@ -194,6 +194,10 @@ func extractPositionalParamsFromPath(route spec.Route) string {
|
||||
|
||||
func makeDartRequestUrlPath(route spec.Route) string {
|
||||
path := route.Path
|
||||
if route.RequestType == nil {
|
||||
return `"` + path + `"`
|
||||
}
|
||||
|
||||
ds, ok := route.RequestType.(spec.DefineStruct)
|
||||
if !ok {
|
||||
return path
|
||||
|
Loading…
Reference in New Issue
Block a user