yinbangzhong
2024-06-19 dd2c694c124c4a0f5b1d9c5a876337bd424d697f
router/router.go
@@ -35,6 +35,7 @@
      audioAPi.DELETE("delete", audioCtl.Delete)            // 音频删除
      audioAPi.DELETE("batchDelete", audioCtl.BatchDelete)  // 音频批量删除
      audioAPi.POST("follow", audioCtl.Follow)              // 关注/取消关注
      audioAPi.GET("preLoadPath", audioCtl.PreLoadPath)     // 获取自动加载路径
   }
@@ -42,8 +43,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) // 删除文字
   }