From 763e0d0382d27fcee5a090129004e0a1e00cb68c Mon Sep 17 00:00:00 2001 From: sl <你的邮箱@example.com> Date: Wed, 1 Jul 2026 10:26:50 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat=EF=BC=9A=E6=B7=BB=E5=8A=A0=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E5=85=A5=E4=BE=B5=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/viid_handler.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/viid_handler.go b/api/viid_handler.go index 5b799fa..eb303d9 100644 --- a/api/viid_handler.go +++ b/api/viid_handler.go @@ -60,6 +60,10 @@ func RegisterVIIDRoutes(r *gin.Engine) { sys.POST("/UnRegister", HandleUnRegister) sys.GET("/Time", HandleSystemTime) } + extend := viid.Group("/Extend") + { + extend.POST("/SceneCapture", HandleSceneCapture) + } viid.POST("/Faces", HandleUploadFaces) } } @@ -78,6 +82,10 @@ func HandleUnRegister(c *gin.Context) { proxyHelper(c, "/VIID/System/UnRegister") } +func HandleSceneCapture(c *gin.Context) { + proxyHelper(c, "/VIID/Extend/SceneCapture") +} + func proxyHelper(c *gin.Context, path string) { resp, err := ProxyRequest(c.Request.Context(), c.Request.Method, path, c.Request.Body, c.Request.Header) if err != nil { From b3cd5f4809f74711eb326d780f1e4ebccfa8c346 Mon Sep 17 00:00:00 2001 From: sl <你的邮箱@example.com> Date: Wed, 1 Jul 2026 10:27:52 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20gitignore=20?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=20Go=20=E7=BC=93=E5=AD=98=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 .gocache - 添加 .gomodcache --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 30436e8..1f6140c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ dist/ .idea/ .exe -.claude \ No newline at end of file +.claude +.gocache +.gomodcache \ No newline at end of file