From be7a1df7cf42ef9386c7fe7ef3a51c9f6f64dc95 Mon Sep 17 00:00:00 2001 From: yinbangzhong <zhongbangyin@126.com> Date: 星期二, 18 六月 2024 17:04:24 +0800 Subject: [PATCH] word update delete --- router/router.go | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/router/router.go b/router/router.go index 421162d..4cc3f67 100644 --- a/router/router.go +++ b/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) // 鍒犻櫎鏂囧瓧 } -- Gitblit v1.8.0