feat: node.js 运行环境增加模块列表 (#2482)

This commit is contained in:
zhengkunwang
2023-10-09 06:36:32 -05:00
committed by GitHub
parent 0496b282b1
commit a4bd9362ed
19 changed files with 316 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
// Code generated by swaggo/swag. DO NOT EDIT.
// Package docs GENERATED BY SWAG; DO NOT EDIT
// This file was generated by swaggo/swag
package docs
import "github.com/swaggo/swag"
@@ -7910,6 +7910,39 @@ const docTemplate = `{
}
}
},
"/runtimes/node/modules": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "获取 Node 项目的 modules",
"consumes": [
"application/json"
],
"tags": [
"Runtime"
],
"summary": "Get Node modules",
"parameters": [
{
"description": "request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/request.NodeModuleReq"
}
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/runtimes/node/package": {
"post": {
"security": [
@@ -15568,6 +15601,9 @@ const docTemplate = `{
"name": {
"type": "string"
},
"sort": {
"type": "integer"
},
"updatedAt": {
"type": "string"
}
@@ -16653,6 +16689,20 @@ const docTemplate = `{
}
}
},
"request.NodeModuleReq": {
"type": "object",
"properties": {
"ID": {
"type": "integer"
},
"module": {
"type": "string"
},
"operate": {
"type": "string"
}
}
},
"request.NodePackageReq": {
"type": "object",
"properties": {