update .gitignore

This commit is contained in:
2025-04-12 11:10:30 +08:00
parent 1e678ad6b6
commit 901012288e
4 changed files with 128 additions and 342 deletions

File diff suppressed because one or more lines are too long

View File

@@ -49,16 +49,10 @@ input[type="date"] {
src: url('./glyphicons-halflings-regular.eot');
src: url('./glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
url('./glyphicons-halflings-regular.woff') format('woff'),
url('./glyphicons-halflings-regular.woff2') format('woff2'),
url('./glyphicons-halflings-regular.ttf') format('truetype'),
url('./glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg');
}
/* Hide vertical scrollbar on off canvas animation ("left" positioning) */
html {
overflow-x: hidden;
}
body {
font-family: "Source Sans Pro", sans-serif;
}
@@ -69,6 +63,7 @@ a:focus {
#content {
margin-top: 10px;
margin-left: 20%;
padding-left: 10px;
}
@@ -198,30 +193,16 @@ td.code {
/* ------------------------------------------------------------------------------------------
* Sidenav
* ------------------------------------------------------------------------------------------ */
#scrollingNav {
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 10;
background-color: var(--dark-gray);
box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}
.sidenav {
color: var(--white);
position: absolute;
width: 20%;
position: fixed;
top: 50px;
left: 0;
right: 0;
bottom: 0;
overflow-x: hidden;
overflow-y: hidden;
}
.sidenav:hover {
overflow-x: auto;
overflow-y: auto;
background-color: var(--dark-gray);
}
.sidenav > li > a {
@@ -269,80 +250,14 @@ td.code {
}
*/
/*
* Off Canvas
* --------------------------------------------------
*/
@media screen and (max-width: 767px) {
#content {
margin-top: 58px;
}
.row-offcanvas {
position: relative;
-webkit-transition: all .25s ease-out;
-o-transition: all .25s ease-out;
transition: all .25s ease-out;
left: 0;
}
.row-offcanvas,
.row-offcanvas * {
transition: all 0.5s ease-out;
}
.row-offcanvas .sidebar-offcanvas {
position: absolute;
top: 0;
left: -200px !important; /* 6 columns */
width: 100%; /* 6 columns */
max-width: 200px;
}
.nav-toggle {
position: fixed;
left: 0;
background: var(--dark-gray);
width: 100%;
}
.nav-toggle .btn {
margin: 10px 14px;
}
.nav-toggle .icon-bar {
display: block;
width: 22px;
height: 2px;
border-radius: 1px;
background-color: var(--white);
}
.nav-toggle .icon-bar + .icon-bar {
margin-top: 4px;
}
.row-offcanvas.active .sidebar-offcanvas {
left: 0 !important; /* 6 columns */
}
.row-offcanvas.active, .row-offcanvas.active .nav-toggle {
left: 200px;
}
/* Styling the three lines to make it an X */
.row-offcanvas.active .nav-toggle .btn > .icon-bar {
transform: rotate(45deg) translate(-4px, -4px);
}
.row-offcanvas.active .nav-toggle .btn .icon-bar:nth-child(2) {
display: none;
}
.row-offcanvas.active .nav-toggle .btn .icon-bar:nth-child(3) {
transform: rotate(-45deg);
}
}
/* ------------------------------------------------------------------------------------------
* Side nav search
* ------------------------------------------------------------------------------------------ */
.sidenav-search {
padding: 16px 10px 10px;
width: 20%;
left: 0px;
position: fixed;
padding: 16px 20px 10px 20px;
background-color: var(--dark-gray);
}
@@ -358,28 +273,10 @@ td.code {
height: 20px;
text-align: center;
right: 28px;
top: 18px;
top: 17px;
background-color: #fff;
}
/* ------------------------------------------------------------------------------------------
* Prism - Toolbar
* ------------------------------------------------------------------------------------------ */
div.code-toolbar.code-toolbar > .toolbar {
top: .4rem;
right: .4rem;
}
div.code-toolbar.code-toolbar > .toolbar > .toolbar-item > button:hover,
div.code-toolbar.code-toolbar > .toolbar > .toolbar-item > button:focus {
color: var(--white);
}
div.code-toolbar.code-toolbar > .toolbar > .toolbar-item > button {
color: var(--light-gray);
padding: .5em;
background: var(--hover-gray);
box-shadow: 0 2px 1px 1px rgba(0,0,0,.5);
}
/* ------------------------------------------------------------------------------------------
* Compare
* ------------------------------------------------------------------------------------------ */

View File

@@ -5,30 +5,20 @@
<meta name="description" content="Shop电商app后端接口">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="assets/bootstrap.min.css?v=1739896396792" rel="stylesheet" media="screen">
<link href="assets/prism.css?v=1739896396792" rel="stylesheet" />
<link href="assets/prism-toolbar.css?v=1739896396792" rel="stylesheet" />
<link href="assets/prism-diff-highlight.css?v=1739896396792" rel="stylesheet" />
<link href="assets/main.css?v=1739896396792" rel="stylesheet" media="screen, print">
<link href="assets/favicon.ico?v=1739896396792" rel="icon" type="image/x-icon">
<link href="assets/apple-touch-icon.png?v=1739896396792" rel="apple-touch-icon" sizes="180x180">
<link href="assets/favicon-32x32.png?v=1739896396792" rel="icon" type="image/png" sizes="32x32">
<link href="assets/favicon-16x16.png?v=1739896396792" rel="icon" type="image/png" sizes="16x16">
<link href="assets/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="assets/prism.css" rel="stylesheet" />
<link href="assets/main.css" rel="stylesheet" media="screen, print">
<link href="assets/favicon.ico" rel="icon" type="image/x-icon">
<link href="assets/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180">
<link href="assets/favicon-32x32.png" rel="icon" type="image/png" sizes="32x32">
<link href="assets/favicon-16x16.png"rel="icon" type="image/png" sizes="16x16">
</head>
<body class="container-fluid">
<!-- SIDENAV -->
<script id="template-sidenav" type="text/x-handlebars-template">
<nav id="scrollingNav" class="col-sm-3 col-lg-2 sidebar-offcanvas">
<div class="nav-toggle visible-xs">
<button type="button" class="btn btn-link" data-toggle="offcanvas">
<span class="sr-only">{{__ "Toggle navigation"}}</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<nav id="scrollingNav">
<div class="sidenav-search">
<input class="form-control search" data-action='filter-search' type="text" placeholder="{{__ "Filter..."}}">
<span class="search-reset">x</span>
@@ -155,12 +145,7 @@
<p>{{{nl2br article.description}}}</p>
{{/if}}
<span class="method meth-{{toLowerCase article.type}}">{{article.type}}</span>
<pre
data-type="{{toLowerCase article.type}}"
data-prismjs-copy="{{__ "Copy"}}"
data-prismjs-copy-error="{{__ "Press Ctrl+C to copy"}}"
data-prismjs-copy-success="{{__ "copied!"}}"
><code class="language-http">{{article.url}}</code></pre>
<pre data-type="{{toLowerCase article.type}}"><code class="language-http">{{article.url}}</code></pre>
{{#if article.permission}}
<p>
@@ -189,12 +174,7 @@
<div class="tab-content">
{{#each article.examples}}
<div class="tab-pane{{#ifCond @index '==' 0}} active{{/ifCond}}" id="examples-{{../id}}-{{@index}}">
<pre
data-type="{{type}}"
data-prismjs-copy="{{__ "Copy"}}"
data-prismjs-copy-error="{{__ "Press Ctrl+C to copy"}}"
data-prismjs-copy-success="{{__ "copied!"}}"
><code class="language-{{type}}">{{content}}</code></pre>
<pre data-type="{{type}}"><code class="language-{{type}}">{{content}}</code></pre>
</div>
{{/each}}
</div>
@@ -227,9 +207,8 @@
<tbody>
{{#each params}}
<tr>
<td class="code">
{{{nestObject this}}}
{{#if this.optional}}
<td class="code">{{this.field}}&nbsp;&nbsp;
{{#if optional}}
<span class="label optional">{{__ "optional"}}</span>
{{else}}
{{#if ../template.showRequiredLabels}}
@@ -273,9 +252,8 @@
<tbody>
{{#each params}}
<tr>
<td class="code">
{{{nestObject this}}}
{{#if this.optional}}
<td class="code">{{this.field}}&nbsp;&nbsp;
{{#if optional}}
<span class="label optional">{{__ "optional"}}</span>
{{else}}
{{#if ../template.showRequiredLabels}}
@@ -324,12 +302,11 @@
<tbody>
{{#each this}}
<tr>
<td class="code">
{{{nestObject this}}}
<td class="code">{{{splitFill field "." "&nbsp;&nbsp;"}}}
{{#if optional}}
<span class="label optional">{{__ "optional"}}</span>
{{else}}
{{#if ../../template.showRequiredLabels}}
{{#if ../template.showRequiredLabels}}
<span class="label required">{{__ "required"}}</span>
{{/if}}
{{/if}}</td>
@@ -366,12 +343,7 @@
<div class="tab-content">
{{#each params.examples}}
<div class="tab-pane{{#ifCond @index '==' 0}} active{{/ifCond}}" id="{{../section}}-examples-{{../id}}-{{@index}}">
<pre
data-type="{{type}}"
data-prismjs-copy="{{__ "Copy"}}"
data-prismjs-copy-error="{{__ "Press Ctrl+C to copy"}}"
data-prismjs-copy-success="{{__ "copied!"}}"
><code class="language-{{type}}">{{reformat content type}}</code></pre>
<pre data-type="{{type}}"><code class="language-{{type}}">{{reformat content type}}</code></pre>
</div>
{{/each}}
</div>
@@ -441,13 +413,12 @@
<div class="{{../id}}-sample-request-param-fields {{../id}}-sample-header-content-type-fields">
{{#each this}}
<div class="form-group">
{{#ifNotObject type}}
<label class="col-md-3 control-label" for="sample-request-param-field-{{field}}">{{field}}</label>
<div class="input-group">
<div class="input-group-addon">{{{type}}}</div>
{{#if allowedValues}}
<div class="input-group-addon sample-request-select">
<select class="form-control" data-name="{{dot2bracket this}}" data-family="query" data-group="{{@../index}}" {{#if optional}}data-optional="true"{{/if}}>
<select class="form-control" data-name="{{field}}" data-family="query" data-group="{{@../index}}" {{#if optional}}data-optional="true"{{/if}}>
<option value="" class="empty">&lt;{{__ "No value"}}&gt;</option>
{{#each allowedValues}}
<option {{#ifCond ../defaultValue '===' this}} selected {{/ifCond}}value="{{{removeDblQuotes this}}}">{{{removeDblQuotes this}}}</option>
@@ -461,15 +432,14 @@
class="{{#ifCond type '!==' 'Boolean'}}form-control{{/ifCond}} sample-request-param"
type="{{setInputType type}}"
value="{{#if defaultValue}}{{ defaultValue }}{{/if}}"
placeholder="{{#if defaultValue}}{{ defaultValue }}{{/if}}"
data-name="{{dot2bracket this}}"
placeholder="{{#if defaultValue}}{{ defaultValue }}{{else}}{{field}}{{/if}}"
data-name="{{field}}"
data-family="query"
data-group="{{@../index}}"
{{#if optional}}data-optional="true"{{/if}}>
</div></div>
{{/if}}
</div>
{{/ifNotObject}}
</div>
{{/each}}
</div>
@@ -482,13 +452,12 @@
<div class="{{../id}}-sample-request-param-fields {{../id}}-sample-header-content-type-fields">
{{#each article.query}}
<div class="form-group">
{{#ifNotObject type}}
<label class="col-md-3 control-label" for="sample-request-param-field-{{field}}">{{field}}{{#if optional}} ({{__ "optional"}}){{/if}}</label>
<div class="input-group col-md-6">
<div class="input-group-addon">{{{type}}}</div>
{{#if allowedValues}}
<div class="input-group-addon sample-request-select">
<select class="form-control" data-name="{{dot2bracket this}}" data-family="query" data-group="{{@../index}}" {{#if optional}}data-optional="true"{{/if}}>
<select class="form-control" data-name="{{field}}" data-family="query" data-group="{{@../index}}" {{#if optional}}data-optional="true"{{/if}}>
<option value="" class="empty">&lt;{{__ "No value"}}&gt;</option>
{{#each allowedValues}}
<option {{#ifCond ../defaultValue '===' this}} selected {{/ifCond}}value="{{{removeDblQuotes this}}}">{{{removeDblQuotes this}}}</option>
@@ -502,15 +471,14 @@
class="{{#ifCond type '!==' 'Boolean'}}form-control{{/ifCond}} sample-request-input"
type="{{setInputType type}}"
value="{{#if defaultValue}}{{ defaultValue }}{{/if}}"
placeholder="{{#if defaultValue}}{{ defaultValue }}{{/if}}"
data-name="{{dot2bracket this}}"
placeholder="{{#if defaultValue}}{{ defaultValue }}{{else}}{{field}}{{/if}}"
data-name="{{field}}"
data-family="query"
data-group="{{@../index}}"
{{#if optional}}data-optional="true"{{/if}}>
</div></div>
{{/if}}
</div>
{{/ifNotObject}}
</div>
{{/each}}
</div>
@@ -543,13 +511,12 @@
<div hidden class="col-md-9" id="sample-request-body-form-input-{{this.id}}">
{{#each article.body}}
<div class="form-group">
{{#ifNotObject type}}
<label class="col-md-3 control-label" for="sample-request-param-field-{{field}}">{{field}}</label>
<div class="input-group">
<div class="input-group-addon">{{{type}}}</div>
{{#if allowedValues}}
<div class="input-group-addon sample-request-select">
<select class="form-control" data-name="{{dot2bracket this}}" data-family="body" data-group="{{@../index}}" {{#if optional}}data-optional="true"{{/if}}>
<select class="form-control" data-name="{{field}}" data-family="body" data-group="{{@../index}}" {{#if optional}}data-optional="true"{{/if}}>
<option value="" class="empty">&lt;{{__ "No value"}}&gt;</option>
{{#each allowedValues}}
<option {{#ifCond ../defaultValue '===' this}} selected {{/ifCond}}value="{{{removeDblQuotes this}}}">{{{removeDblQuotes this}}}</option>
@@ -564,15 +531,14 @@
type="{{setInputType type}}"
value="{{#ifCond type '!==' 'Boolean'}}{{#if defaultValue}}{{ defaultValue }}{{/if}}{{/ifCond}}"
{{#if checked}}checked{{/if}}
placeholder="{{#if defaultValue}}{{ defaultValue }}{{/if}}"
placeholder="{{field}}"
data-family="body"
data-name="{{dot2bracket this}}"
data-name="{{field}}"
data-content-type="form"
{{#if optional}}data-optional="true"{{/if}}>
</div></div>
{{/if}}
</div>
{{/ifNotObject}}
</div>
{{/each}}
</div>
@@ -589,12 +555,7 @@
{{__ "Response"}}
<button class="btn btn-default btn-xs pull-right sample-request-clear">X</button>
</h3>
<pre
data-type="json"
data-prismjs-copy="{{__ "Copy"}}"
data-prismjs-copy-error="{{__ "Press Ctrl+C to copy"}}"
data-prismjs-copy-success="{{__ "copied!"}}"
><code class="language-json sample-request-response-json"></code></pre>
<pre data-type="json"><code class="language-json sample-request-response-json"></code></pre>
</div>
</fieldset>
</form>
@@ -636,13 +597,7 @@
{{/if}}
<span class="method meth-{{toLowerCase compare.type}}">{{compare.type}}</span>
<pre
data-type="{{toLowerCase article.type}}"
data-prismjs-copy="{{__ "Copy"}}"
data-prismjs-copy-error="{{__ "Press Ctrl+C to copy"}}"
data-prismjs-copy-success="{{__ "copied!"}}"
class="language-html"
>{{{showDiff article.url compare.url}}}</pre>
<pre data-type="{{toLowerCase article.type}}" class="language-html">{{{showDiff article.url compare.url}}}</pre>
{{subTemplate "article-compare-permission" article=article compare=compare}}
@@ -650,19 +605,19 @@
{{#each_compare_title article.examples compare.examples}}
{{#if typeSame}}
<li{{#ifCond index '==' 0}} class="active"{{/ifCond}}>
<a href="#compare-examples-{{../article.id}}-{{index}}" role="tab" data-toggle="tab">{{{showDiff source.title compare.title}}}</a>
<a href="#compare-examples-{{../../article.id}}-{{index}}" role="tab" data-toggle="tab">{{{showDiff source.title compare.title}}}</a>
</li>
{{/if}}
{{#if typeIns}}
<li{{#ifCond index '==' 0}} class="active"{{/ifCond}}>
<a href="#compare-examples-{{../article.id}}-{{index}}"><ins>{{{source.title}}}</ins></a>
<a href="#compare-examples-{{../../article.id}}-{{index}}"><ins>{{{source.title}}}</ins></a>
</li>
{{/if}}
{{#if typeDel}}
<li{{#ifCond index '==' 0}} class="active"{{/ifCond}}>
<a href="#compare-examples-{{../article.id}}-{{index}}"><del>{{{compare.title}}}</del></a>
<a href="#compare-examples-{{../../article.id}}-{{index}}"><del>{{{compare.title}}}</del></a>
</li>
{{/if}}
{{/each_compare_title}}
@@ -672,45 +627,27 @@
{{#each_compare_title article.examples compare.examples}}
{{#if typeSame}}
<div class="tab-pane{{#ifCond index '==' 0}} active{{/ifCond}}" id="compare-examples-{{../article.id}}-{{index}}">
<pre
data-type="{{source.type}}"
data-prismjs-copy="{{__ "Copy"}}"
data-prismjs-copy-error="{{__ "Press Ctrl+C to copy"}}"
data-prismjs-copy-success="{{__ "copied!"}}"
><code class="language-diff-{{source.type}} diff-highlight">{{{showDiff source.content compare.content "code"}}}</code></pre>
<div class="tab-pane{{#ifCond index '==' 0}} active{{/ifCond}}" id="compare-examples-{{../../article.id}}-{{index}}">
<pre data-type="{{source.type}}" class="language-{{source.type}}">{{{showDiff source.content compare.content}}}</pre>
</div>
{{/if}}
{{#if typeIns}}
<div class="tab-pane{{#ifCond index '==' 0}} active{{/ifCond}}" id="compare-examples-{{../article.id}}-{{index}}">
<pre
data-type="{{source.type}}"
data-prismjs-copy="{{__ "Copy"}}"
data-prismjs-copy-error="{{__ "Press Ctrl+C to copy"}}"
data-prismjs-copy-success="{{__ "copied!"}}"
><code class="language-{{source.type}}">{{{source.content}}}</code></pre>
<div class="tab-pane{{#ifCond index '==' 0}} active{{/ifCond}}" id="compare-examples-{{../../article.id}}-{{index}}">
<pre data-type="{{source.type}}" class="language-{{source.type}}">{{{source.content}}}</pre>
</div>
{{/if}}
{{#if typeDel}}
<div class="tab-pane{{#ifCond index '==' 0}} active{{/ifCond}}" id="compare-examples-{{../article.id}}-{{index}}">
<pre
data-type="{{compare.type}}"
data-prismjs-copy="{{__ "Copy"}}"
data-prismjs-copy-error="{{__ "Press Ctrl+C to copy"}}"
data-prismjs-copy-success="{{__ "copied!"}}"
><code class="language-{{source.type}}">{{{compare.content}}}</code></pre>
<div class="tab-pane{{#ifCond index '==' 0}} active{{/ifCond}}" id="compare-examples-{{../../article.id}}-{{index}}">
<pre data-type="{{compare.type}}" class="language-{{source.type}}">{{{compare.content}}}</pre>
</div>
{{/if}}
{{/each_compare_title}}
</div>
{{subTemplate "article-compare-param-block" source=article.header compare=compare.header _hasType=_hasTypeInHeaderFields section="header"}}
{{subTemplate "article-compare-param-block" source=article.parameter compare=compare.parameter _hasType=_hasTypeInParameterFields section="parameter"}}
{{subTemplate "article-compare-query-block" source=article.query compare=compare.query _hasType=_hasTypeInParameterFields section="query"}}
{{subTemplate "article-compare-body-block" source=article.body compare=compare.body _hasType=_hasTypeInParameterFields section="body"}}
{{subTemplate "article-compare-param-block" source=article.success compare=compare.success _hasType=_hasTypeInSuccessFields section="success"}}
{{subTemplate "article-compare-param-block" source=article.error compare=compare.error _col1="Name" _hasType=_hasTypeInErrorFields section="error"}}
@@ -839,19 +776,19 @@
{{#each_compare_title source.examples compare.examples}}
{{#if typeSame}}
<li{{#ifCond index '==' 0}} class="active"{{/ifCond}}>
<a href="#{{../section}}-compare-examples-{{../article.id}}-{{index}}" role="tab" data-toggle="tab">{{{showDiff source.title compare.title}}}</a>
<a href="#{{../../section}}-compare-examples-{{../../article.id}}-{{index}}" role="tab" data-toggle="tab">{{{showDiff source.title compare.title}}}</a>
</li>
{{/if}}
{{#if typeIns}}
<li{{#ifCond index '==' 0}} class="active"{{/ifCond}}>
<a href="#{{../section}}-compare-examples-{{../article.id}}-{{index}}"><ins>{{{source.title}}}</ins></a>
<a href="#{{../../section}}-compare-examples-{{../../article.id}}-{{index}}"><ins>{{{source.title}}}</ins></a>
</li>
{{/if}}
{{#if typeDel}}
<li{{#ifCond index '==' 0}} class="active"{{/ifCond}}>
<a href="#{{../section}}-compare-examples-{{../article.id}}-{{index}}"><del>{{{compare.title}}}</del></a>
<a href="#{{../../section}}-compare-examples-{{../../article.id}}-{{index}}"><del>{{{compare.title}}}</del></a>
</li>
{{/if}}
{{/each_compare_title}}
@@ -861,35 +798,20 @@
{{#each_compare_title source.examples compare.examples}}
{{#if typeSame}}
<div class="tab-pane{{#ifCond index '==' 0}} active{{/ifCond}}" id="{{../section}}-compare-examples-{{../article.id}}-{{index}}">
<pre
data-type="{{source.type}}"
data-prismjs-copy="{{__ "Copy"}}"
data-prismjs-copy-error="{{__ "Press Ctrl+C to copy"}}"
data-prismjs-copy-success="{{__ "copied!"}}"
><code class="language-diff-{{source.type}} diff-highlight">{{{showDiff source.content compare.content "code"}}}</code></pre>
<div class="tab-pane{{#ifCond index '==' 0}} active{{/ifCond}}" id="{{../../section}}-compare-examples-{{../../article.id}}-{{index}}">
<pre data-type="{{source.type}}" class="language-{{source.type}}">{{{showDiff source.content compare.content}}}</pre>
</div>
{{/if}}
{{#if typeIns}}
<div class="tab-pane{{#ifCond index '==' 0}} active{{/ifCond}}" id="{{../section}}-compare-examples-{{../article.id}}-{{index}}">
<pre
data-type="{{source.type}}"
data-prismjs-copy="{{__ "Copy"}}"
data-prismjs-copy-error="{{__ "Press Ctrl+C to copy"}}"
data-prismjs-copy-success="{{__ "copied!"}}"
><code class="language-{{source.type}}">{{{source.content}}}</code></pre>
<div class="tab-pane{{#ifCond index '==' 0}} active{{/ifCond}}" id="{{../../section}}-compare-examples-{{../../article.id}}-{{index}}">
<pre data-type="{{source.type}}"><code class="language-{{source.type}}">{{{source.content}}}</code></pre>
</div>
{{/if}}
{{#if typeDel}}
<div class="tab-pane{{#ifCond index '==' 0}} active{{/ifCond}}" id="{{../section}}-compare-examples-{{../article.id}}-{{index}}">
<pre
data-type="{{compare.type}}"
data-prismjs-copy="{{__ "Copy"}}"
data-prismjs-copy-error="{{__ "Press Ctrl+C to copy"}}"
data-prismjs-copy-success="{{__ "copied!"}}"
><code class="language-{{source.type}}">{{{compare.content}}}</code></pre>
<div class="tab-pane{{#ifCond index '==' 0}} active{{/ifCond}}" id="{{../../section}}-compare-examples-{{../../article.id}}-{{index}}">
<pre data-type="{{compare.type}}"><code class="language-{{source.type}}">{{{compare.content}}}</code></pre>
</div>
{{/if}}
{{/each_compare_title}}
@@ -898,49 +820,13 @@
{{/if}}
</script>
<script id="template-article-compare-query-block" type="text/x-handlebars-template">
{{#if article.query}}
<h2>{{__ "Query Parameter(s)"}}</h2>
<table class="table table-hover">
<thead>
<tr>
<th style="width: 30%">{{#if ../_col1}}{{__ ../_col1}}{{else}}{{__ "Field"}}{{/if}}</th>
{{#unless this.Type compare=null}}
<th style="width: 10%">{{__ "Type"}}</th>
{{/unless}}
<th style="width: {{#if ../_hasType}}60%{{else}}70%{{/if}}">{{__ "Description"}}</th>
</tr>
</thead>
{{subTemplate "article-compare-param-block-body" source=source compare=compare _hasType=this.type}}
</table>
{{/if}}
</script>
<script id="template-article-compare-body-block" type="text/x-handlebars-template">
{{#if article.body}}
<h2>{{__ "Request Body"}}</h2>
<table class="table table-hover">
<thead>
<tr>
<th style="width: 30%">{{#if ../_col1}}{{__ ../_col1}}{{else}}{{__ "Field"}}{{/if}}</th>
{{#unless this.Type compare=null}}
<th style="width: 10%">{{__ "Type"}}</th>
{{/unless}}
<th style="width: {{#if ../_hasType}}60%{{else}}70%{{/if}}">{{__ "Description"}}</th>
</tr>
</thead>
{{subTemplate "article-compare-param-block-body" source=source compare=compare _hasType=this.type}}
</table>
{{/if}}
</script>
<script id="template-article-compare-param-block-body" type="text/x-handlebars-template">
<tbody>
{{#each_compare_field source compare}}
{{#if typeSame}}
<tr>
<td class="code">
{{{nestObject source}}}
{{{splitFill source.field "." "&nbsp;&nbsp;"}}}
{{#if source.optional}}
{{#if compare.optional}} <span class="label label-optional">{{__ "optional"}}</span>
{{else}} <span class="label label-optional label-ins">{{__ "optional"}}</span>
@@ -973,7 +859,7 @@
{{#if typeIns}}
<tr class="ins">
<td class="code">
{{{nestObject source}}}
{{{splitFill source.field "." "&nbsp;&nbsp;"}}}
{{#if source.optional}} <span class="label label-optional label-ins">{{__ "optional"}}</span>{{/if}}
</td>
@@ -993,7 +879,7 @@
{{#if typeDel}}
<tr class="del">
<td class="code">
{{{nestObject compare}}}
{{{splitFill compare.field "." "&nbsp;&nbsp;"}}}
{{#if compare.optional}} <span class="label label-optional label-del">{{__ "optional"}}</span>{{/if}}
</td>
@@ -1015,9 +901,9 @@
</script>
<div class="container-fluid">
<div class="row row-offcanvas row-offcanvas-left">
<div id="sidenav" class="col-sm-3 col-lg-2"></div>
<div id="content" class="col-sm-9 col-lg-10">
<div class="row">
<div id="sidenav" class="span2"></div>
<div id="content">
<div id="project"></div>
<div id="header"></div>
<div id="sections"></div>
@@ -1042,6 +928,6 @@
</div>
</div>
<script src="assets/main.bundle.js?v=1739896396792"></script>
<script src="assets/main.bundle.js"></script>
</body>
</html>

View File

@@ -2,12 +2,10 @@
## 【注意】使用注意事项
1前端接口使用`公钥`进行请求参数的加密操作,并将加密后的请求参数放到自定义请求头`data`中进行传递给后端,主要前端加密逻辑在`api/index.js`的拦截器中实现
2用户登录注册的时候发送接口请求头中不需要`jwt``token`字段。用户登录成功后,登录接口会返回`token`参数。请前端自己使用`localStorage.setItem`
1用户登录注册的时候发送接口,请求头中不需要`jwt``token`字段。用户登录成功后,登录接口会返回`token`参数。请前端自己使用`localStorage.setItem`
方法进行本地保存`token`字段。后端的所有接口在数据请求的时候需要在请求头携带`token`字段通过身份验证。
3:有些接口没有参数的话,需要在调用`xxxService`的时候传入一个空的对象。例如请求首页接口
2:有些接口没有参数的话,需要在调用`xxxService`的时候传入一个空的对象。例如请求首页接口
```
await this.$http.homeService.getHomeData({}); # getHomeData方法接口空对象: {}