router/router.go
@@ -42,8 +42,10 @@ textCtl := new(controllers.TextCtl) textApi := r.Group(urlPrefix + "/text") { textApi.POST("add", textCtl.AddText) // 添加文字 textApi.GET("list", textCtl.List) // 文字列表 textApi.POST("add", textCtl.AddText) // 添加文字 textApi.POST("update", textCtl.UpdateText) // 添加文字 textApi.GET("list", textCtl.List) // 文字列表 textApi.DELETE("delete", textCtl.DeleteText) // 删除文字 }