Merge remote-tracking branch 'origin/master'

This commit is contained in:
2026-07-02 20:19:08 +08:00
2 changed files with 11 additions and 1 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
dist/ dist/
.idea/ .idea/
.exe .exe
.claude .claude
.gocache
.gomodcache
+8
View File
@@ -60,6 +60,10 @@ func RegisterVIIDRoutes(r *gin.Engine) {
sys.POST("/UnRegister", HandleUnRegister) sys.POST("/UnRegister", HandleUnRegister)
sys.GET("/Time", HandleSystemTime) sys.GET("/Time", HandleSystemTime)
} }
extend := viid.Group("/Extend")
{
extend.POST("/SceneCapture", HandleSceneCapture)
}
viid.POST("/Faces", HandleUploadFaces) viid.POST("/Faces", HandleUploadFaces)
} }
} }
@@ -78,6 +82,10 @@ func HandleUnRegister(c *gin.Context) {
proxyHelper(c, "/VIID/System/UnRegister") proxyHelper(c, "/VIID/System/UnRegister")
} }
func HandleSceneCapture(c *gin.Context) {
proxyHelper(c, "/VIID/Extend/SceneCapture")
}
func proxyHelper(c *gin.Context, path string) { func proxyHelper(c *gin.Context, path string) {
resp, err := ProxyRequest(c.Request.Context(), c.Request.Method, path, c.Request.Body, c.Request.Header) resp, err := ProxyRequest(c.Request.Context(), c.Request.Method, path, c.Request.Body, c.Request.Header)
if err != nil { if err != nil {