swagger-ui.webjars.js.chunk-cd12dcc4.418501bd.js Maven / Gradle / Ivy
/*! For license information please see chunk-cd12dcc4.418501bd.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-cd12dcc4"],{"0e7f":function(e,t,n){"use strict";var a=n("1315");n.n(a).a},1315:function(e,t,n){},b311:function(e,t,n){e.exports=function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var a=window.getSelection(),r=document.createRange();r.selectNodeContents(e),a.removeAllRanges(),a.addRange(r),t=a.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var a=this.e||(this.e={});return(a[e]||(a[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var a=this;function r(){a.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),a=0,r=n.length;a0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=r()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=r()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),c=n(1),l=n.n(c),u=n(2),p=n.n(u),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=p()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return m("action",e)}},{key:"defaultTarget",value:function(e){var t=m("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return m("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(l.a);function m(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}t.default=f}]).default},baa5:function(e,t,n){var a=n("23e7"),r=n("e58c");a({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},e58c:function(e,t,n){"use strict";var a=n("fc6a"),r=n("a691"),i=n("50c4"),s=n("a640"),o=n("ae40"),c=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,p=s("lastIndexOf"),d=o("indexOf",{ACCESSORS:!0,1:0}),h=u||!p||!d;e.exports=h?function(e){if(u)return l.apply(this,arguments)||0;var t=a(this),n=i(t.length),s=n-1;for(arguments.length>1&&(s=c(s,r(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},eeba:function(e,t,n){"use strict";n.r(t);var a=(n("a4d3"),n("e01a"),n("99af"),n("4de4"),n("4160"),n("caad"),n("c975"),n("a15b"),n("baa5"),n("d81d"),n("b0c0"),n("b64b"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("2532"),n("5319"),n("2ca0"),n("159b"),n("5530")),r=n("b1c7"),i=n("5609");function s(e){var t=[];return null!=e&&null!=e&&(o(t),t.push("## "+e.summary),o(t),t.push("**接口地址**:`"+e.showUrl+"`"),o(t),t.push("**请求方式**:`"+e.methodType+"`"),o(t),t.push("**请求数据类型**:`"+r.a.toString(e.consumes,"*")+"`"),o(t),t.push("**响应数据类型**:`"+r.a.toString(e.produces,"*")+"`"),o(t),t.push("**接口描述**:"+r.a.toString(e.description,"暂无")),r.a.checkUndefined(e.requestValue)&&(o(t),t.push("**请求示例**:"),o(t),t.push("```javascript"),t.push(e.requestValue),t.push("```")),function(e,t){var n=e.reqParameters;o(t),t.push("**请求参数**:"),o(t),t.push("**请求参数**:"),n.length>0?(o(t),t.push("| 参数名称 | 参数说明 | in | 是否必须 | 数据类型 | schema |"),t.push("| -------- | -------- | ----- | -------- | -------- | ------ |"),function e(t,n,a){null!=t&&null!=t&&t.length>0&&t.forEach((function(t){t.level=a,n.push("|"+l(t)+"|"+r.a.toString(t.description,"")+"|"+r.a.toString(t.in,"")+"|"+r.a.toString(t.require,"")+"|"+r.a.toString(t.type,"")+"|"+r.a.toString(t.schemaValue,"")+"|"),e(t.children,n,t.level+1)}))}(n,t,1)):(o(t),t.push("暂无"))}(e,t),function(e,t){r.a.checkUndefined(e.responseCodes)&&e.responseCodes.length>0&&(o(t),t.push("**响应状态**:"),o(t),t.push("| 状态码 | 说明 | schema |"),t.push("| -------- | -------- | ----- | "),e.responseCodes.forEach((function(e){t.push("|"+r.a.toString(e.code,"")+"|"+r.a.toString(e.description,"")+"|"+r.a.toString(e.schema,"")+"|")})))}(e,t),function(e,t){if(e.multipartResponseSchema){var n=e.multipCodeDatas;r.a.arrNotEmpty(n)&&n.forEach((function(e){o(t),t.push("**响应状态码-"+r.a.toString(e.code,"")+"**:"),c(e,t)}))}else c(e.multipData,t)}(e,t)),t.join("\n")}function o(e){e.push("\n")}function c(e,t){(function(e,t){r.a.checkUndefined(e)&&e.length>0&&(o(t),t.push("**响应Header**:"),o(t),t.push("| 参数名称 | 参数说明 | 数据类型 |"),t.push("| -------- | -------- | ----- | "),e.forEach((function(e){t.push("|"+r.a.toString(e.name,"")+"|"+r.a.toString(e.description,"")+"|"+r.a.toString(e.type,"")+"|")})))})(e.responseHeaderParameters,t),o(t),t.push("**响应参数**:"),o(t),r.a.arrNotEmpty(e.data)?(t.push("| 参数名称 | 参数说明 | 类型 | schema |"),t.push("| -------- | -------- | ----- |----- | "),e.data.forEach((function(e){e.level=1,t.push("|"+l(e)+"|"+r.a.toString(e.description,"")+"|"+r.a.toString(e.type,"")+"|"+r.a.toString(e.schemaValue,"")+"|"),function e(t,n,a){null!=t&&null!=t&&t.length>0&&t.forEach((function(t){t.level=a,n.push("|"+l(t)+"|"+r.a.toString(t.description,"")+"|"+r.a.toString(t.type,"")+"|"+r.a.toString(t.schemaValue,"")+"|"),e(t.children,n,t.level+1)}))}(e.children,t,e.level+1)}))):t.push("暂无"),o(t),t.push("**响应示例**:"),e.responseBasicType?(t.push("```text"),t.push(e.responseText),t.push("```")):(t.push("```javascript"),t.push(e.responseValue),t.push("```"))}function l(e){for(var t=[],n=1;n0?(p(t),t.push("| name | description | in | require | type | schema |"),t.push("| -------- | -------- | ----- | -------- | -------- | ------ |"),function e(t,n,a){null!=t&&null!=t&&t.length>0&&t.forEach((function(t){t.level=a,n.push("|"+h(t)+"|"+r.a.toString(t.description,"")+"|"+r.a.toString(t.in,"")+"|"+r.a.toString(t.require,"")+"|"+r.a.toString(t.type,"")+"|"+r.a.toString(t.schemaValue,"")+"|"),e(t.children,n,t.level+1)}))}(n,t,1)):(p(t),t.push("None"))}(e,t),function(e,t){r.a.checkUndefined(e.responseCodes)&&e.responseCodes.length>0&&(p(t),t.push("**status**:"),p(t),t.push("| code | description | schema |"),t.push("| -------- | -------- | ----- | "),e.responseCodes.forEach((function(e){t.push("|"+r.a.toString(e.code,"")+"|"+r.a.toString(e.description,"")+"|"+r.a.toString(e.schema,"")+"|")})))}(e,t),function(e,t){if(e.multipartResponseSchema){var n=e.multipCodeDatas;r.a.arrNotEmpty(n)&&n.forEach((function(e){p(t),t.push("**code-"+r.a.toString(e.code,"")+"**:"),d(e,t)}))}else d(e.multipData,t)}(e,t)),t.join("\n")}function p(e){e.push("\n")}function d(e,t){(function(e,t){r.a.checkUndefined(e)&&e.length>0&&(p(t),t.push("**Response Header**:"),p(t),t.push("|name | description | type |"),t.push("| -------- | -------- | ----- | "),e.forEach((function(e){t.push("|"+r.a.toString(e.name,"")+"|"+r.a.toString(e.description,"")+"|"+r.a.toString(e.type,"")+"|")})))})(e.responseHeaderParameters,t),p(t),t.push("**Responses**:"),p(t),r.a.arrNotEmpty(e.data)?(t.push("| name | description | type | schema |"),t.push("| -------- | -------- | ----- |----- | "),e.data.forEach((function(e){e.level=1,t.push("|"+h(e)+"|"+r.a.toString(e.description,"")+"|"+r.a.toString(e.type,"")+"|"+r.a.toString(e.schemaValue,"")+"|"),function e(t,n,a){null!=t&&null!=t&&t.length>0&&t.forEach((function(t){t.level=a,n.push("|"+h(t)+"|"+r.a.toString(t.description,"")+"|"+r.a.toString(t.type,"")+"|"+r.a.toString(t.schemaValue,"")+"|"),e(t.children,n,t.level+1)}))}(e.children,t,e.level+1)}))):t.push("None"),p(t),t.push("**Response Sample**:"),e.responseBasicType?(t.push("```text"),t.push(e.responseText),t.push("```")):(t.push("```javascript"),t.push(e.responseValue),t.push("```"))}function h(e){for(var t=[],n=1;nHello",contentType:"*/*",columns:[],responseHeaderColumns:[],responseStatuscolumns:[],responseParametersColumns:[],expanRows:!0,multipCode:!1,multipCodeDatas:[],multipData:{},page:!1,reqParameters:[]}},created:function(){var e=this,t=i.a.globalTreeTableModelParams+this.swaggerInstance.id,n=this.swaggerInstance.swaggerTreeTableModels;this.$Knife4jModels.setValue(t,n),this.initI18n(),this.initRequestParams(),this.initResponseCodeParams(),setTimeout((function(){e.copyApiAddress(),e.copyApiMarkdown(),e.copyApiUrl()}),1500)},computed:{language:function(){return this.$store.state.globals.language},swagger:function(){return this.$store.state.globals.swagger}},watch:{language:function(e,t){this.initI18n()}},methods:{getCurrentI18nInstance:function(){return this.$i18n.messages[this.language]},initI18n:function(){var e=this.getCurrentI18nInstance();this.columns=e.table.documentRequestColumns,this.responseStatuscolumns=e.table.documentResponseStatusColumns,this.responseHeaderColumns=e.table.documentResponseHeaderColumns,this.responseParametersColumns=e.table.documentResponseColumns},copyApiUrl:function(){var e=this,t="btnCopyMethod"+this.api.id,n=this.api.showUrl,a=new m.a("#"+t,{text:function(){return n}});a.on("success",(function(){var t=e.getCurrentI18nInstance().message.copy.method.success;e.$message.info(t)})),a.on("error",(function(t){var n=e.getCurrentI18nInstance().message.copy.method.fail;e.$message.info(n)}))},copyApiAddress:function(){var e=this,t="btnCopyAddress"+this.api.id,n=new m.a("#"+t,{text:function(){return window.location.href}});n.on("success",(function(t){var n=e.getCurrentI18nInstance().message.copy.url.success;e.$message.info(n)})),n.on("error",(function(t){var n=e.getCurrentI18nInstance().message.copy.url.fail;e.$message.info(n)}))},copyApiMarkdown:function(){var e=this,t="btnCopyMarkdown"+this.api.id,n=Object(a.a)(Object(a.a)({},e.api),{},{reqParameters:e.reqParameters,multipCodeDatas:e.multipCodeDatas,multipData:e.multipData}),r=new m.a("#"+t,{text:function(){var t=e.getCurrentI18nInstance();return"zh"===t.lang?s(n):"us"===t.lang?u(n):void 0}});r.on("success",(function(t){var n=e.getCurrentI18nInstance().message.copy.document.success;e.$message.info(n)})),r.on("error",(function(t){var n=e.getCurrentI18nInstance().message.copy.document.fail;e.$message.info(n)}))},filterChildrens:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;if(0===e.length)return t;var a=this,r=n?t.filter((function(t){return!e.includes("".concat(n,".").concat(t.name))})):t.filter((function(t){return!e.includes(t.name)}));return r.map((function(t){return t.id=y()("param"),t.children&&(t.children=a.filterChildrens(e,t.children,t.name)),t}))},initRequestParams:function(){var e=this,t=i.a.globalTreeTableModelParams+this.swaggerInstance.id,n=[],a=this,s=this.api;r.a.strNotBlank(s.contentType)&&(this.contentType=s.contentType),"application/x-www-form-urlencoded;charset=UTF-8"==s.contentType&&(this.contentType="application/x-www-form-urlencoded");var o=Object.keys(s.ignoreParameters||{}),c=[],l=new RegExp("\\[0\\]","gm");if(null!=o&&o.length>0&&o.forEach((function(e){c.push(e),e.indexOf("[0]")>-1&&c.push(e.replace(l,""))})),null!=s.parameters&&s.parameters.length>0){var u=s.parameters.filter((function(e){return e.name.indexOf("[0]")>-1?!(c.length>0)||c.filter((function(t){return!e.name.startsWith(t)})).length>0:!c.includes(name)}));n=n.concat(u)}null!=s.refTreetableparameters&&s.refTreetableparameters.length>0&&s.refTreetableparameters.forEach((function(e){n=n.concat(e.params)})),null!=n&&n.sort((function(e,t){return t.require-e.require}));var p=[];if(null!=n&&n.length>0&&n.forEach((function(e){if("-1"==e.pid){if(e.children=null,e.schema){var n=e.schemaValue;if(r.a.checkUndefined(n)&&a.$Knife4jModels.exists(t,n)){var i=a.$Knife4jModels.getByModelName(t,n);if((i=a.swagger.analysisDefinitionRefTableModel(a.swaggerInstance.id,i))&&i.params){var s=i.params.filter((function(t){var n=t.name;return!(c.includes(n)||c.includes(n+"[0]")||c.includes("".concat(e.name,".").concat(n)))})).map((function(t){var n=a.copyNewParameter(t);if(n.pid=e.id,n.children){var r=JSON.parse(JSON.stringify(n.children)),i=c.map((function(t){return t.startsWith("".concat(e.name,".").concat(n.name,"."))?t.replace("".concat(e.name,".").concat(n.name,"."),""):t.startsWith("".concat(n.name,"."))?t.replace("".concat(n.name,"."),""):null})).filter(Boolean);n.children=a.filterChildrens(i,r)}return n}));e.children=s.length>0?s:null}}}p.push(e)}})),null!=s.includeParameters){var d=Object.keys(s.includeParameters||{}),h=p.filter((function(e){return"body"==e.in})).length;if(d.length>0&&h>0){var f=[],m=[];this.deepRootKeys(d,m),p.forEach((function(t){if(m.includes(t.name)){var n=b()(t);n.children=null,null!=t.children&&t.children.length>0&&(n.children=new Array,e.deepIncludeParam(n.name,n,t.children,d,m)),f.push(n)}else d.includes(t.name)&&((n=b()(t)).children=null,null!=t.children&&t.children.length>0&&(n.children=new Array,e.deepIncludeParam(n.name,n,t.children,d,m)),f.push(n))})),a.reqParameters=f}else a.reqParameters=p}else a.reqParameters=p},deepRootKeys:function(e,t){var n=[];e.forEach((function(e){var a=e.substring(0,e.lastIndexOf("."));a.indexOf(".")>-1&&n.push(a),t.includes(a)||t.push(a)})),n.length>0&&this.deepRootKeys(n,t)},deepIncludeParam:function(e,t,n,a,i){var s=this;null!=n&&n.length>0&&n.forEach((function(n){var o=e+"."+n.name;if(i.includes(o)){var c=b()(n);c.children=null,t.children.push(c),r.a.arrNotEmpty(n.children)&&(c.children=new Array,s.deepIncludeParam(o,c,n.children,a,i))}else a.includes(o)&&t.children.push(n)}))},copyNewParameter:function(e){var t=Object.assign({},e);return t.id=y()("param"),function e(t){return t?t.map((function(t){t.id=y()("param"),e(t.children)})):null}(t.children),t},deepTreeTableSchemaModel:function(e,t,n){var a=this;if(r.a.checkUndefined(e.schemaValue)){var i=t[e.schemaValue];r.a.checkUndefined(i)&&(n.parentTypes.push(e.schemaValue),r.a.arrNotEmpty(i.params)&&i.params.forEach((function(r){var i={childrenTypes:r.childrenTypes,def:r.def,description:r.description,enum:r.enum,example:r.example,id:r.id,ignoreFilterName:r.ignoreFilterName,in:r.in,level:r.level,name:r.name,parentTypes:r.parentTypes,pid:r.pid,readOnly:r.readOnly,require:r.require,schema:r.schema,schemaValue:r.schemaValue,show:r.show,txtValue:r.txtValue,type:r.type,validateInstance:r.validateInstance,validateStatus:r.validateStatus,value:r.value};i.pid=e.id,e.children.push(i),i.schema&&-1==n.parentTypes.indexOf(i.schemaValue)&&(i.children=[],a.deepTreeTableSchemaModel(i,t,n),0==i.children.length&&(i.children=null))})))}},findModelChildren:function(e,t){var n=this;null!=t&&null!=t&&t.length>0&&t.forEach((function(a){a.pid==e.id&&(a.children=[],n.findModelChildren(a,t),0==a.children.length&&(a.children=null),e.children.push(a))}))},initResponseCodeParams:function(){var e=this,t=i.a.globalTreeTableModelParams+this.swaggerInstance.id;e.multipCode=this.api.multipartResponseSchema,e.multipCodeDatas=[],e.multipData={};var n=this.api.responseCodes;null!=n&&null!=n&&n.forEach((function(n){if(null!=n.schema&&null!=n.schema){var i=[];null!=n.responseParameters&&n.responseParameters.length>0&&(i=i.concat(n.responseParameters)),null!=n.responseTreetableRefParameters&&n.responseTreetableRefParameters.length>0&&n.responseTreetableRefParameters.forEach((function(e){i=i.concat(e.params)}));var s=[];null!=i&&i.length>0&&i.forEach((function(n){if("-1"==n.pid){if(n.children=[],n.schema){var a=n.schemaValue;if(r.a.checkUndefined(a)&&e.$Knife4jModels.exists(t,a)){var i=e.$Knife4jModels.getByModelName(t,a);(i=e.swagger.analysisDefinitionRefTableModel(e.swaggerInstance.id,i))&&i.params&&(n.children=i.params.map((function(t){var a=e.copyNewParameter(t);return a.pid=n.id,a})))}}0==n.children.length&&(n.children=null),s.push(n)}}));var o=Object(a.a)(Object(a.a)({},n),{},{data:s});e.multipCode||(e.multipData=o),e.multipCodeDatas.push(o)}}))},showResponseEditFieldDescription:function(e){if(this.api.multipartResponseSchema){var t=this.multipCodeDatas[0],n="knife4jDocumentShowEditor"+this.api.id+t.code;this.showEditorFieldAnyWay(n)}else n="knife4jDocumentShowEditor"+this.api.id,this.showEditorFieldAnyWay(n)},multipartTabCodeChanges:function(e){var t=this;setTimeout((function(){var n="knife4jDocumentShowEditor"+t.api.id+e;t.showEditorFieldAnyWay(n)}),1e3)},showEditorFieldAnyWay:function(e){var t=this.swaggerInstance,n=this.api.getHttpSuccessCodeObject(),a=document.getElementById(e),i=[],s=a.getElementsByClassName("ace_text-layer"),o=a.querySelector(".ace_print-margin").style.left;if(s.length>0)for(var c=s[0].getElementsByClassName("ace_line"),l=0;l
© 2015 - 2024 Weber Informatics LLC | Privacy Policy