瀏覽代碼

feat: add remote declaration support for plugin installation

Yeuoly 5 月之前
父節點
當前提交
10e3d5d51e
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      internal/types/models/curd/atomic.go

+ 4 - 0
internal/types/models/curd/atomic.go

@@ -54,6 +54,10 @@ func InstallPlugin(
 				Refers:                 1,
 			}
 
+			if install_type == plugin_entities.PLUGIN_RUNTIME_TYPE_REMOTE {
+				plugin.RemoteDeclaration = *declaration
+			}
+
 			err := db.Create(plugin, tx)
 			if err != nil {
 				return err