whistle.mock-plugins 1.1.1-dev.14 → 1.1.1-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION.md +0 -5
- package/app/cgi-bin/interfaces.js +0 -5
- package/app/public/js/index.js +1 -1
- package/lib/routes/interfaces.js +0 -171
- package/package.json +1 -1
- package/ui/src/pages/InterfaceManagement.js +11 -239
package/VERSION.md
CHANGED
|
@@ -183,7 +183,6 @@ module.exports = function(req, res) {
|
|
|
183
183
|
interfacesData.interfaces[index] = {
|
|
184
184
|
...interfacesData.interfaces[index],
|
|
185
185
|
name: interfaceData.name,
|
|
186
|
-
group: interfaceData.group !== undefined ? interfaceData.group : interfacesData.interfaces[index].group || '', // 添加分组字段
|
|
187
186
|
urlPattern: interfaceData.urlPattern,
|
|
188
187
|
proxyType: interfaceData.proxyType,
|
|
189
188
|
responseContent: interfaceData.responseContent,
|
|
@@ -218,7 +217,6 @@ module.exports = function(req, res) {
|
|
|
218
217
|
id: Date.now().toString(),
|
|
219
218
|
featureId: interfaceData.featureId,
|
|
220
219
|
name: interfaceData.name,
|
|
221
|
-
group: interfaceData.group || '', // 添加分组字段
|
|
222
220
|
urlPattern: interfaceData.urlPattern,
|
|
223
221
|
proxyType: interfaceData.proxyType || 'response',
|
|
224
222
|
responseContent: interfaceData.responseContent || '',
|
|
@@ -237,7 +235,6 @@ module.exports = function(req, res) {
|
|
|
237
235
|
|
|
238
236
|
console.log('创建新接口,包含多响应数据:', {
|
|
239
237
|
name: newInterface.name,
|
|
240
|
-
group: newInterface.group, // 添加分组日志
|
|
241
238
|
responsesCount: newInterface.responses.length,
|
|
242
239
|
activeResponseId: newInterface.activeResponseId
|
|
243
240
|
});
|
|
@@ -346,7 +343,6 @@ module.exports = function(req, res) {
|
|
|
346
343
|
const updatedInterface = {
|
|
347
344
|
...interfacesData.interfaces[index],
|
|
348
345
|
name: interfaceData.name || interfacesData.interfaces[index].name,
|
|
349
|
-
group: interfaceData.group !== undefined ? interfaceData.group : interfacesData.interfaces[index].group || '', // 添加分组字段
|
|
350
346
|
urlPattern: interfaceData.urlPattern || interfacesData.interfaces[index].urlPattern,
|
|
351
347
|
proxyType: interfaceData.proxyType || interfacesData.interfaces[index].proxyType,
|
|
352
348
|
responseContent: interfaceData.responseContent !== undefined ? interfaceData.responseContent : interfacesData.interfaces[index].responseContent,
|
|
@@ -366,7 +362,6 @@ module.exports = function(req, res) {
|
|
|
366
362
|
|
|
367
363
|
console.log('PUT更新接口,包含多响应数据:', {
|
|
368
364
|
name: updatedInterface.name,
|
|
369
|
-
group: updatedInterface.group, // 添加分组日志
|
|
370
365
|
responsesCount: updatedInterface.responses.length,
|
|
371
366
|
activeResponseId: updatedInterface.activeResponseId
|
|
372
367
|
});
|