From dd2c694c124c4a0f5b1d9c5a876337bd424d697f Mon Sep 17 00:00:00 2001
From: yinbangzhong <zhongbangyin@126.com>
Date: 星期三, 19 六月 2024 17:46:08 +0800
Subject: [PATCH] download file by attach model

---
 router/router.go |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/router/router.go b/router/router.go
index 421162d..0b32b31 100644
--- a/router/router.go
+++ b/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) // 鍒犻櫎鏂囧瓧
 
 	}
 

--
Gitblit v1.8.0