All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.webjars.js.app.23f8b31d.js Maven / Gradle / Ivy

!function(e){function t(t){for(var a,r,o=t[0],l=t[1],c=t[2],p=0,d=[];p=0?t+"&"+c:t+"?"+c}else"accessCode"==this.oauth.grantType&&(n.push("response_type=code"),n.push("client_id="+this.oauth.clientId),n.push("redirect_uri="+o),n.push("state=SELF"+this.oauth.state),c=n.join("&"),t=t.indexOf("?")>=0?t+"&"+c:t+"?"+c);this.oauth.sync(),window.open(t)}else if("password"==this.oauth.grantType){var p=i.a.create(),u={grant_type:"password",username:this.oauth.username,password:this.oauth.password},d={url:this.oauth.tokenUrl,method:"post",auth:{username:this.oauth.clientId,password:this.oauth.clientSecret},params:null,timeout:0,data:l.a.stringify(u)};p.request(d).then((function(t){var n=t.data;e.oauth.accessToken=n.token_type+" "+n.access_token,e.oauth.tokenType=n.token_type,e.oauth.granted=!0,e.oauth.sync(),e.$message.info("SUCCESS")})).catch((function(t){t.response||e.$message.error(t.message)}))}else if("application"==this.oauth.grantType||"client_credentials"==this.oauth.grantType){var h=i.a.create();u={grant_type:"client_credentials"},d={url:this.oauth.tokenUrl,method:"post",auth:{username:this.oauth.clientId,password:this.oauth.clientSecret},params:null,timeout:0,data:l.a.stringify(u)},h.request(d).then((function(t){var n=t.data;e.oauth.accessToken=n.token_type+" "+n.access_token,e.oauth.tokenType=n.token_type,e.oauth.granted=!0,e.oauth.sync(),e.$message.info("SUCCESS")})).catch((function(t){t.response||e.$message.error(t.message)}))}},initLocalOAuth:function(){var e=this.data.instance.oauths;r.a.checkUndefined(e)&&(this.oauthFlag=!0,this.oauth=e)},initLocalSecuritys:function(){var e=this,t=this;t.initLocalOAuth();var n=t.data.instance.securityArrs;r.a.arrNotEmpty(n)&&(this.securityKeyFlag=!0);var s=a.a.globalSecurityParamPrefix+this.data.instance.id,i=[];this.$localStore.getItem(a.a.globalSecurityParameterObject).then((function(a){r.a.arrNotEmpty(n)&&e.$localStore.getItem(s).then((function(e){if(r.a.checkUndefined(e)){var s=[];n.forEach((function(t){var n=e.filter((function(e){return e.id==t.id}));n.length>0?r.a.strNotBlank(t.value)?s.push(t):s.push(n[0]):s.push(t)})),t.securityArr=s}else t.securityArr=n;r.a.checkUndefined(a)?(t.globalSecurityObject=a,i=i.concat(a),t.securityArr.forEach((function(e){var n=a[e.id];r.a.checkUndefined(n)?e.value=n:t.globalSecurityObject[e.id]=e.value}))):t.securityArr.forEach((function(e){t.globalSecurityObject[e.id]=e.value})),t.storeToLocalIndexDB()}))}))},storeToLocalIndexDB:function(){var e=a.a.globalSecurityParamPrefix+this.data.instance.id;this.$localStore.setItem(e,this.securityArr),this.$localStore.setItem(a.a.globalSecurityParameterObject,this.globalSecurityObject)},resetAuth:function(){this.oauthFlag&&this.resetOAuth2(),this.securityKeyFlag&&this.resetCommonSecurtyAuth(),this.$message.info("SUCCESS")},resetOAuth2:function(){this.oauth.clear()},resetCommonSecurtyAuth:function(){var e=this,t=this.securityArr;r.a.arrNotEmpty(t)&&(t.forEach((function(t){t.value="",e.globalSecurityObject[t.id]=""})),this.securityArr=t,this.storeToLocalIndexDB())},authParamChange:function(e){var t=this,n=e.target,a=n.getAttribute("data-id"),r=n.value;this.securityArr.forEach((function(e){e.id==a&&(e.value=r,t.globalSecurityObject[e.id]=r)})),this.storeToLocalIndexDB()}},created:function(){this.initI18n(),this.initLocalSecuritys()}},p=(n("1cb5"),n("2877")),u=Object(p.a)(c,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-layout-content",{staticClass:"knife4j-body-content"},[n("div",{staticClass:"authorize"},[n("a-row",[n("a-button",{attrs:{type:"primary"},domProps:{innerHTML:e._s(e.$t("auth.cancel"))},on:{click:e.resetAuth}},[e._v("注销")])],1),e.securityKeyFlag?n("a-row",{staticStyle:{"margin-top":"15px"}},[n("a-table",{attrs:{size:"small",columns:e.columns,dataSource:e.securityArr,pagination:e.pagination,bordered:""},scopedSlots:e._u([{key:"paramIpt",fn:function(t,a){return[n("a-input",{attrs:{value:t,"data-id":a.id},on:{change:e.authParamChange}})]}}],null,!1,2906681342)})],1):e._e(),e.oauthFlag?n("a-row",{staticStyle:{"margin-top":"15px"}},[n("a-card",{attrs:{title:"OAuth2"}},[n("a-row",[n("a-col",{attrs:{span:4}},[e._v("Flow")]),n("a-col",{attrs:{span:18}},[n("a-input",{attrs:{id:"grant","read-only":"read-only",defaultValue:e.oauth.grantType}})],1)],1),"accessCode"==e.oauth.grantType||"implicit"==e.oauth.grantType?n("a-row",{staticStyle:{"margin-top":"15px"}},[n("a-col",{attrs:{span:4}},[e._v("Authorization URL")]),n("a-col",{attrs:{span:18}},[n("a-input",{attrs:{id:"authorizeUrl","read-only":"read-only",defaultValue:e.oauth.authorizeUrl}})],1)],1):e._e(),"password"==e.oauth.grantType||"application"==this.oauth.grantType||"client_credentials"==this.oauth.grantType?n("a-row",{staticStyle:{"margin-top":"15px"}},[n("a-col",{attrs:{span:4}},[e._v("Token URL")]),n("a-col",{attrs:{span:18}},[n("a-input",{attrs:{id:"tokenUrl","read-only":"read-only",defaultValue:e.oauth.tokenUrl}})],1)],1):e._e(),"password"==e.oauth.grantType?n("a-row",{staticStyle:{"margin-top":"15px"}},[n("a-col",{attrs:{span:4}},[e._v("username")]),n("a-col",{attrs:{span:18}},[n("a-input",{attrs:{id:"username",value:e.oauth.username},on:{change:e.userChange}})],1)],1):e._e(),"password"==e.oauth.grantType?n("a-row",{staticStyle:{"margin-top":"15px"}},[n("a-col",{attrs:{span:4}},[e._v("password")]),n("a-col",{attrs:{span:18}},[n("a-input",{attrs:{id:"password",type:"password",value:e.oauth.password},on:{change:e.pwdChange}})],1)],1):e._e(),n("a-row",{staticStyle:{"margin-top":"15px"}},[n("a-col",{attrs:{span:4}},[e._v("clientId")]),n("a-col",{attrs:{span:18}},[n("a-input",{attrs:{value:e.oauth.clientId},on:{change:e.clientChage}})],1)],1),"accessCode"==e.oauth.grantType||"password"==e.oauth.grantType||"application"==this.oauth.grantType||"client_credentials"==this.oauth.grantType?n("a-row",{staticStyle:{"margin-top":"15px"}},[n("a-col",{attrs:{span:4}},[e._v("clientSecret")]),n("a-col",{attrs:{span:18}},[n("a-input",{attrs:{value:e.oauth.clientSecret},on:{change:e.clientSecretChage}})],1)],1):e._e(),n("a-row",{staticStyle:{"margin-top":"15px"}},[n("a-col",{attrs:{span:4}}),n("a-col",{attrs:{span:18}},[n("a-button",{attrs:{type:"primary"},on:{click:e.auth}},[e._v("Authorize")])],1)],1)],1)],1):e._e()],1)])}),[],!1,null,"40d33488",null);t.default=u.exports},"06d2":function(e,t,n){},1:function(e,t){},"121c":function(e,t,n){"use strict";n.r(t);var a=(n("d3b7"),{props:{data:{type:Object}},components:{Markdown:function(){return n.e("chunk-2d0d0b98").then(n.bind(null,"68cc"))}},computed:{swaggerCurrentInstance:function(){return this.$store.state.globals.swaggerCurrentInstance},settings:function(){return this.$store.state.globals.settings}},data:function(){return{title:"knife4j"}},created:function(){}}),r=(n("4f63"),n("2877")),s=Object(r.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-layout-content",{staticClass:"knife4j-body-content"},[this.settings.enableHomeCustom?n("a-row",{staticClass:"markdown-body editormd-preview-container"},[n("Markdown",{attrs:{source:e.settings.homeCustomLocation}})],1):n("a-row",[n("a-col",{attrs:{span:24}},[n("div",{staticClass:"title"},[n("h2",[e._v(e._s(e.swaggerCurrentInstance.title))])]),n("div",{staticClass:"description"},[n("a-row",{staticClass:"content-line"},[n("a-col",{attrs:{span:5}},[n("h3",{domProps:{innerHTML:e._s(e.$t("homePage.description"))}})]),n("a-col",{attrs:{span:19}},[n("span",{domProps:{innerHTML:e._s(e.swaggerCurrentInstance.description)}})])],1),n("a-divider",{staticClass:"divider"}),n("a-row",{staticClass:"content-line"},[n("a-col",{attrs:{span:5}},[n("h3",{domProps:{innerHTML:e._s(e.$t("homePage.author"))}})]),n("a-col",{attrs:{span:19}},[n("span",{domProps:{innerHTML:e._s(e.swaggerCurrentInstance.contact)}})])],1),n("a-divider",{staticClass:"divider"}),n("a-row",{staticClass:"content-line"},[n("a-col",{attrs:{span:5}},[n("h3",{domProps:{innerHTML:e._s(e.$t("homePage.version"))}})]),n("a-col",{attrs:{span:19}},[n("span",{domProps:{innerHTML:e._s(e.swaggerCurrentInstance.version)}})])],1),n("a-divider",{staticClass:"divider"}),n("a-row",{staticClass:"content-line"},[n("a-col",{attrs:{span:5}},[n("h3",{domProps:{innerHTML:e._s(e.$t("homePage.host"))}})]),n("a-col",{attrs:{span:19}},[n("span",{domProps:{innerHTML:e._s(e.swaggerCurrentInstance.host)}})])],1),n("a-divider",{staticClass:"divider"}),n("a-row",{staticClass:"content-line"},[n("a-col",{attrs:{span:5}},[n("h3",{domProps:{innerHTML:e._s(e.$t("homePage.basePath"))}})]),n("a-col",{attrs:{span:19}},[n("span",{domProps:{innerHTML:e._s(e.swaggerCurrentInstance.basePath)}})])],1),n("a-divider",{staticClass:"divider"}),n("a-row",{staticClass:"content-line"},[n("a-col",{attrs:{span:5}},[n("h3",{domProps:{innerHTML:e._s(e.$t("homePage.serviceUrl"))}})]),n("a-col",{attrs:{span:19}},[n("span",{domProps:{innerHTML:e._s(e.swaggerCurrentInstance.termsOfService)}})])],1),n("a-divider",{staticClass:"divider"}),n("a-row",{staticClass:"content-line"},[n("a-col",{attrs:{span:5}},[n("h3",{domProps:{innerHTML:e._s(e.$t("homePage.groupName"))}})]),n("a-col",{attrs:{span:19}},[n("span",{domProps:{innerHTML:e._s(e.swaggerCurrentInstance.name)}})])],1),n("a-divider",{staticClass:"divider"}),n("a-row",{staticClass:"content-line"},[n("a-col",{attrs:{span:5}},[n("h3",{domProps:{innerHTML:e._s(e.$t("homePage.groupUrl"))}})]),n("a-col",{attrs:{span:19}},[n("span",{domProps:{innerHTML:e._s(e.swaggerCurrentInstance.url)}})])],1),n("a-divider",{staticClass:"divider"}),n("a-row",{staticClass:"content-line"},[n("a-col",{attrs:{span:5}},[n("h3",{domProps:{innerHTML:e._s(e.$t("homePage.groupLocation"))}})]),n("a-col",{attrs:{span:19}},[n("span",{domProps:{innerHTML:e._s(e.swaggerCurrentInstance.location)}})])],1),n("a-divider",{staticClass:"divider"}),n("a-row",{staticClass:"content-line"},[n("a-col",{attrs:{span:5}},[n("h3",{domProps:{innerHTML:e._s(e.$t("homePage.apiCountNumber"))}})]),n("a-col",{attrs:{span:19}},e._l(e.swaggerCurrentInstance.pathArrs,(function(t){return n("a-row",{key:t.method,staticClass:"content-line-count"},[n("a-col",{attrs:{span:3}},[e._v(" "+e._s(t.method)+" ")]),n("a-col",{attrs:{span:2}},[n("a-tag",{attrs:{color:"#108ee9"}},[e._v(e._s(t.count))])],1),n("a-divider",{staticClass:"divider-count"})],1)})),1)],1)],1)])],1)],1)}),[],!1,null,"2a2a2e9f",null);t.default=s.exports},1469:function(e,t,n){"use strict";n("d3b7"),n("ddb0");var a=n("a002"),r=n.n(a),s={getItem:function(e){return new Promise((function(t,n){r.a.getItem(e).then((function(e){t(e)})).catch((function(e){n(e)}))}))},setItem:function(e,t){return new Promise((function(n,a){r.a.setItem(e,t).then((function(e){n(e)})).catch((function(e){a(e)}))}))},removeItem:function(e){return new Promise((function(t,n){r.a.removeItem(e).then((function(){t()})).catch((function(e){n(e)}))}))},clear:function(){return new Promise((function(e,t){r.a.clear().then((function(){e()})).catch((function(e){t(e)}))}))},length:function(){return new Promise((function(e,t){r.a.length().then((function(t){e(t)})).catch((function(e){t(e)}))}))},key:function(e){return new Promise((function(t,n){r.a.key(e).then((function(e){t(e)})).catch((function(e){n(e)}))}))},keys:function(){return new Promise((function(e,t){r.a.keys().then((function(t){e(t)})).catch((function(e){t(e)}))}))},iterate:function(){return new Promise((function(e,t){r.a.iterate((function(t,n,a){e([t,n,a])})).then((function(t){e(t)})).catch((function(e){t(e)}))}))},setDriver:function(e){return new Promise((function(t,n){t(r.a.setDriver(e))}))},config:function(e){return new Promise((function(t,n){t(r.a.config(e))}))},createInstance:function(e){return new Promise((function(t,n){t(r.a.createInstance(e))}))}},i=new(n("2b0e").a)({name:"localStore",methods:s});t.a=i},"190e":function(e,t,n){"use strict";var a=n("b012");n.n(a).a},"1be9":function(e,t,n){"use strict";var a=n("9c80");n.n(a).a},"1cb5":function(e,t,n){"use strict";var a=n("dc98");n.n(a).a},2:function(e,t){},2395:function(e,t,n){},"2ee0":function(e,t,n){},"32ba":function(e,t,n){},3896:function(e,t,n){},"3bbc":function(e,t,n){"use strict";n.r(t);var a=(n("a4d3"),n("e01a"),n("99af"),n("4160"),n("c975"),n("b0c0"),n("d3b7"),n("ac1f"),n("5319"),n("159b"),n("5530")),r=n("b1c7"),s=n("5609"),i=[{title:"参数名称",dataIndex:"name",width:"30%"},{title:"参数说明",dataIndex:"description",width:"25%"},{title:"请求类型",dataIndex:"in",scopedSlots:{customRender:"typeTemplate"}},{title:"是否必须",dataIndex:"require",scopedSlots:{customRender:"requireTemplate"}},{title:"数据类型",dataIndex:"type",scopedSlots:{customRender:"datatypeTemplate"}},{title:"schema",dataIndex:"schemaValue",width:"15%"}],o=[{title:"状态码",dataIndex:"code",width:"20%"},{title:"说明",dataIndex:"description",width:"55%",scopedSlots:{customRender:"descriptionTemplate"}},{title:"schema",dataIndex:"schema"}],l=[{title:"参数名称",dataIndex:"name",width:"30%"},{title:"参数说明",dataIndex:"description",width:"55%"},{title:"数据类型",dataIndex:"type"}],c=[{title:"参数名称",dataIndex:"name",width:"35%"},{title:"参数说明",dataIndex:"description",width:"40%"},{title:"类型",dataIndex:"type"},{title:"schema",dataIndex:"schemaValue",width:"15%"}],p=null,u={name:"Document",components:{editor:n("7c9e"),DataType:function(){return n.e("chunk-2d0bd799").then(n.bind(null,"2bc6"))},EditorShow:function(){return Promise.all([n.e("chunk-3b888a65"),n.e("chunk-3ec4aaa8"),n.e("chunk-2d0af44e")]).then(n.bind(null,"0e36"))}},props:{api:{type:Object,required:!0},swaggerInstance:{type:Object,required:!0}},beforeCreate:function(){p=this},data:function(){return{content:"Hello",columns:i,responseHeaderColumns:l,responseStatuscolumns:o,responseParametersColumns:c,expanRows:!0,multipCode:!1,multipCodeDatas:[],multipData:{},page:!1,reqParameters:[]}},created:function(){this.reqParameters=this.api.reqParameters,p.initResponseCodeParams()},methods:{genUnionTableKey:function(){return r.a.randomMd5()},initRequestParams:function(){var e=[],t=this,n=s.a.globalTreeTableModelParams+this.api.instanceId,a=(this.swaggerInstance.refTreeTableModels,this.api);null!=a.parameters&&a.parameters.length>0&&(e=e.concat(a.parameters)),null!=a.refTreetableparameters&&a.refTreetableparameters.length>0&&a.refTreetableparameters.forEach((function(t){e=e.concat(t.params)})),null!=e&&e.sort((function(e,t){return t.require-e.require}));var i=[];null!=e&&e.length>0&&e.forEach((function(e){if("-1"==e.pid){if(e.children=[],e.schema){var a=e.schemaValue;if(r.a.checkUndefined(a)&&t.$Knife4jModels.exists(n,a)){var s=t.$Knife4jModels.getByModelName(n,a);if(r.a.checkUndefined(s)){var o=s.params;r.a.arrNotEmpty(o)&&o.forEach((function(n){var a=t.copyNewParameter(n);a.pid=e.id,e.children.push(a)}))}}}r.a.arrNotEmpty(e.children)||(e.children=null),i.push(e)}})),t.reqParameters=i},storeCacheModels:function(e){var t=s.a.globalTreeTableModelParams+this.api.instanceId;this.$localStore.setItem(t,e)},deepTreeTableSchemaModel:function(e,t,n){var a=this,i=s.a.globalTreeTableModelParams+this.api.instanceId;if(r.a.checkUndefined(e.schemaValue)){var o=t[e.schemaValue];r.a.checkUndefined(o)&&(n.parentTypes.push(e.schemaValue),r.a.arrNotEmpty(o.params)&&o.params.forEach((function(s){var o=a.copyNewParameter(s);if(o.pid=e.id,e.children.push(o),o.schema&&-1==n.parentTypes.indexOf(o.schemaValue)){var l=o.schemaValue;if(r.a.checkUndefined(l))if(o.children=[],a.$Knife4jModels.exists(i,l)){var c=a.$Knife4jModels.getByModelName(i,l);r.a.arrNotEmpty(c)&&c.forEach((function(e){var t=a.copyNewParameter(e);t.pid=o.id,o.children.push(t)}))}else a.deepTreeTableSchemaModel(o,t,n),0==o.children.length&&(o.children=null),a.$Knife4jModels.addModels(i,l,o.children)}})))}},copyNewParameter:function(e){return{children:e.children,childrenTypes:e.childrenTypes,def:e.def,description:e.description,enum:e.enum,example:e.example,id:e.id,ignoreFilterName:e.ignoreFilterName,in:e.in,level:e.level,name:e.name,parentTypes:e.parentTypes,pid:e.pid,readOnly:e.readOnly,require:e.require,schema:e.schema,schemaValue:e.schemaValue,show:e.show,txtValue:e.txtValue,type:e.type,validateInstance:e.validateInstance,validateStatus:e.validateStatus,value:e.value}},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;e.multipCode=e.api.multipartResponseSchema;var t=e.api.responseCodes;null!=t&&null!=t&&t.forEach((function(t){if(null!=t.schema&&null!=t.schema){var n=[];null!=t.responseParameters&&t.responseParameters.length>0&&(n=n.concat(t.responseParameters)),null!=t.responseTreetableRefParameters&&t.responseTreetableRefParameters.length>0&&t.responseTreetableRefParameters.forEach((function(e){n=n.concat(e.params)}));var r=[];null!=n&&n.length>0&&n.forEach((function(e){"-1"==e.pid&&(e.children=[],0==e.children.length&&(e.children=null),r.push(e))}));var s=Object(a.a)(Object(a.a)({},t),{},{data:r});e.multipCode||(e.multipData=s),e.multipCodeDatas.push(s)}}))},formaterJson:function(e){try{return"string"!=typeof e&&(e=JSON.stringify(e,void 0,2)),(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,(function(e){var t="number";return/^"/.test(e)?t=/:$/.test(e)?"key":"string":/true|false/.test(e)?t="boolean":/null/.test(e)&&(t="null"),''+e+""}))}catch(t){return e}}}},d=(n("b7e94"),n("2877")),h=Object(d.a)(u,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"knife4j-document"},[n("a-row",[n("a-row",{staticClass:"knife4j-api-title",attrs:{id:e.api.operationId}},[e._v(" "+e._s(e.api.summary)+" ")]),n("a-row",{class:"knife4j-api-"+e.api.methodType.toLowerCase()},[n("div",{staticClass:"knife4j-api-summary"},[n("span",{staticClass:"knife4j-api-summary-method"},[e._v(e._s(e.api.methodType))]),n("span",{staticClass:"knife4j-api-summary-path"},[e._v(e._s(e.api.showUrl))])])]),n("a-row",{staticClass:"knife4j-api-row"},[n("a-col",{attrs:{span:12}},[n("a-row",[n("a-col",{staticClass:"api-basic-title",attrs:{span:6}},[e._v("请求数据类型")]),e._v(" "+e._s(e.api.consumes)+" ")],1)],1),n("a-col",{attrs:{span:12}},[n("a-row",[n("a-col",{staticClass:"api-basic-title",attrs:{span:6}},[e._v("响应数据类型")]),e._v(" "+e._s(e.api.produces)+" ")],1)],1)],1)],1),e.api.description?n("div",[n("div",{staticClass:"api-title"},[e._v(" 接口描述 ")]),e.api.description?n("div",{staticClass:"api-body-desc",domProps:{innerHTML:e._s(e.api.description)}}):e._e()]):e._e(),e.api.requestValue?n("div",[n("div",{staticClass:"api-title"},[e._v(" 请求示例 ")]),n("pre",{staticClass:"api-editor-show",domProps:{innerHTML:e._s(e.formaterJson(e.api.requestValue))}})]):e._e(),n("div",{staticClass:"api-title"},[e._v(" 请求参数 ")]),n("a-table",{attrs:{defaultExpandAllRows:"",columns:e.columns,dataSource:e.reqParameters,rowKey:e.genUnionTableKey,size:"small",pagination:e.page},scopedSlots:e._u([{key:"requireTemplate",fn:function(t){return[t?n("span",{staticStyle:{color:"red"}},[e._v(e._s(t.toLocaleString()))]):n("span",[e._v(e._s(t.toLocaleString()))])]}},{key:"typeTemplate",fn:function(t){return[n("span",{class:"knife4j-request-"+t},[e._v(e._s(t))])]}},{key:"datatypeTemplate",fn:function(e,t){return[n("data-type",{attrs:{text:e,record:t}})]}}])}),n("div",{staticClass:"api-title"},[e._v(" 响应状态 ")]),n("a-table",{attrs:{defaultExpandAllRows:e.expanRows,columns:e.responseStatuscolumns,dataSource:e.api.responseCodes,rowKey:"code",size:"small",pagination:e.page},scopedSlots:e._u([{key:"descriptionTemplate",fn:function(t){return[n("div",{domProps:{innerHTML:e._s(t)}})]}}])}),e.api.multipartResponseSchema?n("div",e._l(e.multipCodeDatas,(function(t){return n("a-tabs",{key:t.code},[n("a-tab-pane",{attrs:{tab:t.code}},[t.responseHeaderParameters?n("div",[n("div",{staticClass:"api-title"},[e._v(" 响应Header ")]),n("a-table",{attrs:{defaultExpandAllRows:e.expanRows,columns:e.responseHeaderColumns,dataSource:t.responseHeaderParameters,rowKey:"id",size:"small",pagination:e.page}})],1):e._e(),n("div",{staticClass:"api-title"},[e._v(" 响应参数 ")]),n("a-table",{attrs:{defaultExpandAllRows:e.expanRows,columns:e.responseParametersColumns,dataSource:t.data,rowKey:"id",size:"small",pagination:e.page}}),n("div",{staticClass:"api-title"},[e._v(" 响应示例 ")]),t.responseBasicType?n("div",{staticClass:"api-editor-show"},[e._v(" "+e._s(t.responseText)+" ")]):n("pre",{staticClass:"api-editor-show",domProps:{innerHTML:e._s(e.formaterJson(t.responseValue))}})],1)],1)})),1):n("div",[e.api.responseHeaderParameters?n("div",[n("div",{staticClass:"api-title"},[e._v(" 响应Header ")]),n("a-table",{attrs:{defaultExpandAllRows:e.expanRows,columns:e.responseHeaderColumns,dataSource:e.api.responseHeaderParameters,rowKey:"id",size:"small",pagination:e.page}})],1):e._e(),n("div",{staticClass:"api-title"},[e._v(" 响应参数 ")]),n("a-table",{attrs:{defaultExpandAllRows:e.expanRows,columns:e.responseParametersColumns,dataSource:e.multipData.data,rowKey:"id",size:"small",pagination:e.page}}),n("div",{staticClass:"api-title"},[e._v(" 响应示例 ")]),e.multipData.responseBasicType?n("div",{staticClass:"api-editor-show"},[e._v(" "+e._s(e.multipData.responseText)+" ")]):n("pre",{staticClass:"api-editor-show",domProps:{innerHTML:e._s(e.formaterJson(e.multipData.responseValue))}})],1)],1)}),[],!1,null,"1e4b0586",null);t.default=h.exports},"3cd9":function(e,t,n){"use strict";n.r(t);var a=(n("a4d3"),n("e01a"),n("99af"),n("4160"),n("b0c0"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0"),n("2b3d"),n("5530")),r='\n.content-line {\n  height: 25px;\n  line-height: 25px;\n}\n.content-line-count {\n  height: 35px;\n  line-height: 35px;\n}\n.title {\n  margin-top: 25px;\n}\n.knife4j-description {\n /*  width: 90%;\n  margin: 15px auto; */\n  margin-top: 5px;\n}\n.divider {\n  margin: 4px 0;\n}\n.divider-count {\n  margin: 8px 0;\n}\n.knife4j-document {\n  margin-top: 30px;\n}\n.api-tab {\n  margin-top: 15px;\n\n  .ant-tag {\n    height: 32px;\n    line-height: 32px;\n  }\n}\n.knife4j-menu-api-deprecated {\n  text-decoration: line-through;\n}\n\n.knife4j-api-title {\n  margin-top: 10px;\n  margin-bottom: 5px;\n  font-size: 16px;\n  font-weight: 600;\n  color: #616368;\n  height: 35px;\n  line-height: 35px;\n}\n.knife4j-api-row {\n  height: 45px;\n  line-height: 45px;\n}\n\n.knife4j-api-summary {\n  border-color: #49cc90;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n  -ms-flex-align: center;\n  align-items: center;\n  padding: 2px;\n  cursor: pointer;\n}\n.knife4j-api-summary-method {\n  font-size: 14px;\n  font-weight: 700;\n  min-width: 80px;\n  padding: 6px 15px;\n  text-align: center;\n  border-radius: 3px;\n  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);\n  font-family: Titillium Web, sans-serif;\n  color: #fff;\n}\n.knife4j-api-summary-path {\n  font-size: 14px;\n  display: flex;\n  -webkit-box-flex: 0;\n  -ms-flex: 0 3 auto;\n  flex: 0 3 auto;\n  -webkit-box-align: center;\n  -ms-flex-align: center;\n  align-items: center;\n  word-break: break-all;\n  padding: 0 32px;\n}\n\n.knife4j-api-post {\n  border-color: #49cc90;\n  background: rgba(73, 204, 144, 0.1);\n}\n.knife4j-api-post .knife4j-api-summary-method {\n  background: #49cc90;\n}\n\n.knife4j-api-get {\n  border-color: #61affe;\n  background: rgba(97, 175, 254, 0.1);\n}\n.knife4j-api-get .knife4j-api-summary-method {\n  background: #61affe;\n}\n.knife4j-api-head {\n  border-color: #9012fe;\n  background: rgba(144, 18, 254, 0.1);\n}\n.knife4j-api-head .knife4j-api-summary-method {\n  background: #9012fe;\n}\n.knife4j-api-put {\n  border-color: #fca130;\n  background: rgba(252, 161, 48, 0.1);\n}\n.knife4j-api-put .knife4j-api-summary-method {\n  background: #fca130;\n}\n.knife4j-api-delete {\n  border-color: #f93e3e;\n  background: rgba(249, 62, 62, 0.1);\n}\n.knife4j-api-delete .knife4j-api-summary-method {\n  background: #f93e3e;\n}\n.knife4j-api-options {\n  border-color: #0d5aa7;\n  background: rgba(13, 90, 167, 0.1);\n}\n.knife4j-api-options .knife4j-api-summary-method {\n  background: #0d5aa7;\n}\n.knife4j-api-patch {\n  border-color: #50e3c2;\n  background: rgba(80, 227, 194, 0.1);\n}\n.knife4j-api-patch .knife4j-api-summary-method {\n  background: #50e3c2;\n}\n#knife4jDoc ul{\n  padding-left: 10px;\n  list-style: none;\n  counter-reset: ordered;\n}\n\n#knife4jDoc ul li:before {\n  counter-increment: ordered;\n  content: counters(ordered,".")" ";\n  color:#1890ff;\n}\n.api-basic {\n  padding: 11px;\n}\n.api-basic-title {\n  font-size: 14px;\n  font-weight: 700;\n}\n.api-basic-body {\n  font-size: 14px;\n  font-family: -webkit-body;\n}\n.knife4j-api-editor-show {\n  margin: 15px 0;\n  font: 100 12px/18px monaco, andale mono, courier new;\n  padding: 10px 12px;\n  border: #ccc 1px solid;\n  border-left-width: 4px;\n  background-color: #fefefe;\n  box-shadow: 0 0 4px #eee;\n  word-break: break-all;\n  word-wrap: break-word;\n  color: #444;\n}\n.knife4j-api-editor-show .string { color: green; }        /*字符串的样式*/\n.knife4j-api-editor-show .number { color: darkorange; }    /*数字的样式*/\n.knife4j-api-editor-show .boolean { color: blue; }        /*布尔型数据的样式*/\n.knife4j-api-editor-show .null { color: magenta; }        /*null值的样式*/\n.knife4j-api-editor-show .key { color: red; }            /*key值的样式*/\n.api-description {\n  border-left: 4px solid #ddd;\n  line-height: 30px;\n}\n.api-body-desc {\n  padding: 10px;\n  min-height: 35px;\n  box-sizing: border-box;\n  border: 1px solid #e8e8e8;\n}\n.ant-card-body {\n  padding: 5px;\n}\n.api-title {\n  margin-top: 10px;\n  margin-bottom: 5px;\n  font-size: 16px;\n  font-weight: 600;\n  height: 30px;\n  line-height: 30px;\n  border-left: 4px solid #00ab6d;\n  text-indent: 8px;\n}\n.content-line {\n  height: 25px;\n  line-height: 25px;\n}\n.content-line-count {\n  height: 35px;\n  line-height: 35px;\n}\n.divider {\n  margin: 4px 0;\n}\n.knife4j-doc-m{\n  position: fixed;\n  height: 500px;\n  width: 400px;\n  border: 1px solid #b7b4b4;\n  overflow-y: auto;\n  right: 12px;\n  top: 40px;\n  z-index: 9999;\n  background: #fcfafa;\n}\n';n("a15b"),n("25f0");var s=n("b1c7");function i(e){var t=[];return null!=e&&null!=e&&(function(e,t){t.push("# "+e.title),o(t),t.push("**简介**:"+e.description),o(t),t.push("**HOST**:"+e.host),o(t),t.push("**联系人**:"+e.contact),o(t),t.push("**Version**:"+e.version),o(t),t.push("**接口路径**:"+e.url),o(t),t.push("[TOC]"),o(t)}(e,t),function(e,t){null!=e.tags&&null!=e.tags&&(t.push("\n"),e.tags.forEach((function(e){o(t),t.push("# "+e.name),null!=e.childrens&&null!=e.childrens&&e.childrens.length>0?e.childrens.forEach((function(e){!function(e,t){o(t),t.push("## "+e.summary),o(t),t.push("**接口地址**:`"+e.showUrl+"`"),o(t),t.push("**请求方式**:`"+e.methodType+"`"),o(t),t.push("**请求数据类型**:`"+s.a.toString(e.consumes,"*")+"`"),o(t),t.push("**响应数据类型**:`"+s.a.toString(e.produces,"*")+"`"),o(t),s.a.strNotBlank(e.author)&&(t.push("**开发者**:"+s.a.toString(e.author,"暂无")),o(t)),t.push("**接口描述**:"+s.a.toString(e.description,"暂无")),s.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("**请求参数**:"),s.a.arrNotEmpty(n)?(o(t),t.push("| 参数名称 | 参数说明 | 请求类型    | 是否必须 | 数据类型 | schema |"),t.push("| -------- | -------- | ----- | -------- | -------- | ------ |"),function e(t,n,a){null!=t&&null!=t&&t.length>0&&t.forEach((function(t){t.level=a,n.push("|"+c(t)+"|"+s.a.toString(t.description,"")+"|"+s.a.toString(t.in,"")+"|"+s.a.toString(t.require,"")+"|"+s.a.toString(t.type,"")+"|"+s.a.toString(t.schemaValue,"")+"|"),e(t.children,n,t.level+1)}))}(n,t,1)):(o(t),t.push("暂无"))}(e,t),function(e,t){s.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("|"+s.a.toString(e.code,"")+"|"+s.a.toString(e.description,"")+"|"+s.a.toString(e.schema,"")+"|")})))}(e,t),function(e,t){if(e.multipartResponseSchema){var n=e.multipCodeDatas;s.a.arrNotEmpty(n)&&n.forEach((function(e){o(t),t.push("**响应状态码-"+s.a.toString(e.code,"")+"**:"),l(e,t)}))}else l(e.multipData,t)}(e,t)}(e,t)})):t.push("暂无接口文档")})))}(e,t),function(e,t){s.a.checkUndefined(e.markdownFiles)&&e.markdownFiles.length>0&&(o(t),t.push("# 附录"),e.markdownFiles.forEach((function(e){o(t),s.a.arrNotEmpty(e.children)&&(t.push("## "+e.name),o(t),e.children.forEach((function(e){t.push("### "+e.title),t.push(e.content)})))})))}(e,t)),t.join("\n")}function o(e){e.push("\n")}function l(e,t){(function(e,t){s.a.checkUndefined(e)&&e.length>0&&(o(t),t.push("**响应Header**:"),o(t),t.push("| 参数名称 | 参数说明 | 数据类型 |"),t.push("| -------- | -------- | ----- | "),e.forEach((function(e){t.push("|"+s.a.toString(e.name,"")+"|"+s.a.toString(e.description,"")+"|"+s.a.toString(e.type,"")+"|")})))})(e.responseHeaderParameters,t),o(t),t.push("**响应参数**:"),o(t),s.a.arrNotEmpty(e.data)?(t.push("| 参数名称 | 参数说明 | 类型 | schema |"),t.push("| -------- | -------- | ----- |----- | "),e.data.forEach((function(e){e.level=1,t.push("|"+c(e)+"|"+s.a.toString(e.description,"")+"|"+s.a.toString(e.type,"")+"|"+s.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("|"+c(t)+"|"+s.a.toString(t.description,"")+"|"+s.a.toString(t.type,"")+"|"+s.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 c(e){for(var t=[],n=1;n\n  \n  \n      \n      \n      导出Swagger文档到Word\n