yinbangzhong
2024-06-18 be7a1df7cf42ef9386c7fe7ef3a51c9f6f64dc95
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) // 删除文字
   }