mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-12 11:41:39 +08:00
一些不太重要的文件的小变动
This commit is contained in:
6
bookshelfplus/.idea/runConfigurations/App.xml
generated
6
bookshelfplus/.idea/runConfigurations/App.xml
generated
@@ -1,15 +1,15 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="App" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
|
||||
<option name="ACTIVE_PROFILES" />
|
||||
<module name="bookshelfplus" />
|
||||
<option name="SPRING_BOOT_MAIN_CLASS" value="plus.bookshelf.App" />
|
||||
<option name="VM_PARAMETERS" value="-XX:+AlwaysPreTouch -Xms128m -Xmx2048m -Dspring.jmx.enabled=false -client -DarchetypeCatalog=internal -Ddruid.mysql.usePingMethod=false" />
|
||||
<extension name="coverage">
|
||||
<pattern>
|
||||
<option name="PATTERN" value="plus.bookshelf.*" />
|
||||
<option name="ENABLED" value="true" />
|
||||
</pattern>
|
||||
</extension>
|
||||
<option name="SPRING_BOOT_MAIN_CLASS" value="plus.bookshelf.App" />
|
||||
<option name="VM_PARAMETERS" value="-XX:+AlwaysPreTouch -Xms128m -Xmx2048m -Dspring.jmx.enabled=false -client -DarchetypeCatalog=internal" />
|
||||
<option name="ALTERNATIVE_JRE_PATH" />
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
|
@@ -684,12 +684,14 @@ __可选__||string
|
||||
__可选__||integer (int32)
|
||||
|**FormData**|**fileName** +
|
||||
__可选__||string
|
||||
|**FormData**|**fileNameAndExt** +
|
||||
__可选__||string
|
||||
|**FormData**|**fileSha1** +
|
||||
__可选__||string
|
||||
|**FormData**|**fileSize** +
|
||||
__可选__||integer (int64)
|
||||
|**FormData**|**fileType** +
|
||||
__可选__||string
|
||||
|**FormData**|**lastModified** +
|
||||
__可选__||integer (int64)
|
||||
|**FormData**|**token** +
|
||||
__可选__||string
|
||||
|===
|
||||
@@ -745,6 +747,60 @@ __可选__||string
|
||||
----
|
||||
|
||||
|
||||
[[_getfileusingget]]
|
||||
==== 书籍下载页面获取文件提供的下载方式
|
||||
....
|
||||
GET /api/file/getFile
|
||||
....
|
||||
|
||||
|
||||
===== 参数
|
||||
|
||||
[options="header", cols=".^2a,.^3a,.^9a,.^4a"]
|
||||
|===
|
||||
|类型|名称|说明|类型
|
||||
|**Query**|**bookId** +
|
||||
__可选__|bookId|integer (int32)
|
||||
|===
|
||||
|
||||
|
||||
===== 响应
|
||||
|
||||
[options="header", cols=".^2a,.^14a,.^4a"]
|
||||
|===
|
||||
|HTTP代码|说明|类型
|
||||
|**200**|OK|<<_commonreturntype,CommonReturnType>>
|
||||
|**401**|Unauthorized|无内容
|
||||
|**403**|Forbidden|无内容
|
||||
|**404**|Not Found|无内容
|
||||
|===
|
||||
|
||||
|
||||
===== 生成
|
||||
|
||||
* `\*/*`
|
||||
|
||||
|
||||
===== HTTP请求示例
|
||||
|
||||
====== 请求 path
|
||||
----
|
||||
/api/file/getFile
|
||||
----
|
||||
|
||||
|
||||
===== HTTP响应示例
|
||||
|
||||
====== 响应 200
|
||||
[source,json]
|
||||
----
|
||||
{
|
||||
"data" : "object",
|
||||
"status" : "string"
|
||||
}
|
||||
----
|
||||
|
||||
|
||||
[[_listusingpost]]
|
||||
==== 【管理员】查询文件列表
|
||||
....
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,79 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
<style>
|
||||
a,
|
||||
a:visited {
|
||||
color: blue;
|
||||
margin: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="container">
|
||||
|
||||
</div>
|
||||
<script>
|
||||
var links = [
|
||||
{
|
||||
url: 'http://localhost/',
|
||||
title: 'Home'
|
||||
},
|
||||
"<hr>",
|
||||
{
|
||||
// url: 'http://localhost/api/swagger-ui.html',
|
||||
url: 'http://localhost/api/swagger-ui/index.html',
|
||||
title: 'Swagger'
|
||||
},
|
||||
{
|
||||
url: './bookshelfplus/docs/asciidoc/html/all.html',
|
||||
title: 'Swagger生成的Api文档'
|
||||
},
|
||||
{
|
||||
url: 'http://localhost/api/',
|
||||
title: 'API'
|
||||
},
|
||||
"<p>API测试</p>",
|
||||
{
|
||||
url: 'http://localhost/api/book/get?id=1',
|
||||
title: ''
|
||||
},
|
||||
{
|
||||
url: 'http://localhost/api/status/getProcessCpu',
|
||||
title: ''
|
||||
},
|
||||
"<hr>",
|
||||
{
|
||||
url: 'http://localhost/nginx_status',
|
||||
title: 'Nginx Status'
|
||||
},
|
||||
"<hr>",
|
||||
{
|
||||
url: 'http://fanyi.youdao.com/',
|
||||
title: '有道翻译'
|
||||
},
|
||||
{
|
||||
url: 'http://fanyi.baidu.com/',
|
||||
title: '百度翻译'
|
||||
},
|
||||
]
|
||||
|
||||
var html = '';
|
||||
links.forEach(function (link) {
|
||||
if (typeof link === 'object') {
|
||||
html += '<p>' + link.title + '<a href="' + link.url + '" target="_blank">' + link.url + '</a></p>';
|
||||
} else if (typeof link === 'string') {
|
||||
html += link;
|
||||
}
|
||||
});
|
||||
document.getElementById('container').innerHTML = html;
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
35
run.bat
35
run.bat
@@ -1,35 +0,0 @@
|
||||
@echo off
|
||||
:: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>MySQL<51><4C><EFBFBD>ݿ<EFBFBD>
|
||||
:: skip ...
|
||||
|
||||
:: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>SpringBoot
|
||||
cd ./bookshelfplus/
|
||||
:: refer: https://blog.csdn.net/abc86319253/article/details/44019881
|
||||
:: mvn clean install
|
||||
start mvn install -Djar.forceCreation spring-boot:run
|
||||
echo <20><><EFBFBD><EFBFBD> SpringBoot
|
||||
cd ../
|
||||
|
||||
:: <20><><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0>nodejs
|
||||
cd ./bookshelfplus-frontend/
|
||||
start cmd /C npm run dev
|
||||
echo <20><><EFBFBD><EFBFBD> nodejs
|
||||
cd ../
|
||||
|
||||
:: <20><><EFBFBD><EFBFBD>nginx
|
||||
(taskkill /f /t /im nginx.exe) > nul
|
||||
cd ./server/nginx/
|
||||
start /b nginx.exe
|
||||
:: /b <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>´<EFBFBD><C2B4><EFBFBD>
|
||||
echo <20><><EFBFBD><EFBFBD> nginx
|
||||
cd ../../
|
||||
|
||||
:: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
start explorer quickReach.html
|
||||
echo <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
:: pause
|
||||
|
||||
:: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϲ<EFBFBD><CFB2><EFBFBD><EFBFBD>˳<EFBFBD>
|
||||
:: start cmd /k echo Hello, World!
|
||||
:: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϻ<EFBFBD><CFBB>˳<EFBFBD>
|
||||
:: start cmd /C echo Hello, World!
|
Reference in New Issue
Block a user