From 8bc64ae99eb0a268ed78ce5e3bbd29d88ef97ced Mon Sep 17 00:00:00 2001 From: yuanzhao <2206582181@qq.com> Date: Tue, 28 Feb 2023 16:24:20 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E8=B5=84=E6=BA=90=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/commands/route.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/console/commands/route.go b/console/commands/route.go index 9b7eaa3..138f011 100644 --- a/console/commands/route.go +++ b/console/commands/route.go @@ -443,9 +443,7 @@ func genRoutesFunc(g *ApiGroups, m map[string]string) string { if s == "http.Resource" { str += "\n\t\t" + homeApi + ".Get(\"" + v.Val + "\"):" + "c." + parser.StringToSnake(server.Name) + ".GinHandleCurd," str += "\n\t\t" + homeApi + ".Post(\"" + v.Val + "\"):" + "c." + parser.StringToSnake(server.Name) + ".GinHandleCurd," - str += "\n\t\t" + homeApi + ".Get(\"" + v.Val + "/:action\"):" + "c." + parser.StringToSnake(server.Name) + ".GinHandleCurd," - str += "\n\t\t" + homeApi + ".Put(\"" + v.Val + "/:action\"):" + "c." + parser.StringToSnake(server.Name) + ".GinHandleCurd," - str += "\n\t\t" + homeApi + ".Delete(\"" + v.Val + "/:action\"):" + "c." + parser.StringToSnake(server.Name) + ".GinHandleCurd," + str += "\n\t\t" + homeApi + ".Any(\"" + v.Val + "/:action\"):" + "c." + parser.StringToSnake(server.Name) + ".GinHandleCurd," } } for rName, rpc := range server.Rpc {