Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
base-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
base-platform
Commits
777b0fd8
Commit
777b0fd8
authored
Mar 08, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文档与添加登录返回token和过期时间
parent
aca13562
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
91 additions
and
12 deletions
+91
-12
base-manager/src/main/java/com/mortals/xhx/base/system/upload/web/UploadController.java
.../mortals/xhx/base/system/upload/web/UploadController.java
+1
-1
base-manager/src/main/java/com/mortals/xhx/module/area/service/impl/AreaServiceImpl.java
...mortals/xhx/module/area/service/impl/AreaServiceImpl.java
+2
-3
doc/api-two.md
doc/api-two.md
+39
-2
doc/preview/api-two.html
doc/preview/api-two.html
+49
-6
No files found.
base-manager/src/main/java/com/mortals/xhx/base/system/upload/web/UploadController.java
View file @
777b0fd8
...
...
@@ -52,7 +52,7 @@ public class UploadController extends BaseController {
@RequestMapping
(
value
=
"commonupload"
)
public
String
doFileUpload
(
MultipartFile
file
,
@RequestParam
(
value
=
"prePath"
)
String
prePath
)
{
public
String
doFileUpload
(
MultipartFile
file
,
@RequestParam
(
value
=
"prePath"
,
defaultValue
=
"/file/fileupload"
)
String
prePath
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
<>();
String
jsonStr
=
""
;
try
{
...
...
base-manager/src/main/java/com/mortals/xhx/module/area/service/impl/AreaServiceImpl.java
View file @
777b0fd8
...
...
@@ -163,9 +163,8 @@ public class AreaServiceImpl extends AbstractCRUDCacheServiceImpl<AreaDao, AreaE
AreaEntity
areaEntity
=
this
.
selectOne
(
new
AreaQuery
().
iid
(
parentId
));
if
(!
ObjectUtils
.
isEmpty
(
areaEntity
))
{
//查询当前区域是否有站点。
List
<
AreaTreeSelect
>
collect1
=
siteService
.
find
(
new
SiteQuery
().
areaCode
(
areaEntity
.
getAreaCode
())).
stream
().
map
(
site
->
new
AreaTreeSelect
(
site
)
).
collect
(
Collectors
.
toList
());
List
<
AreaTreeSelect
>
collect1
=
siteService
.
find
(
new
SiteQuery
().
areaCode
(
areaEntity
.
getAreaCode
()))
.
stream
().
map
(
site
->
new
AreaTreeSelect
(
site
)).
collect
(
Collectors
.
toList
());
collect
.
addAll
(
collect1
);
}
...
...
doc/api-two.md
View file @
777b0fd8
...
...
@@ -136,6 +136,43 @@ msg|String|消息|-
**响应消息样例:**
```
```
### 上传附件
**请求URL:**
file/commonupload
**请求方式:**
POST
**内容类型:**
multipart/form-data
**简要描述:**
用户上传附件
**请求参数:**
参数名称|类型|备注|必填|其它
---|---|---|---|---
file|multipart|附件|是|-
prePath|String|附件存放相对路径|否|不填时候默认为/file/fileupload
**请求样例:**
```
http://127.0.0.1/file/commonupload?prePath=/file/fileupload
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="1.excel"
Content-Type: multipart/form-data
```
**响应参数:**
**响应消息样例:**
```
...
...
@@ -724,7 +761,7 @@ dict|object|字典对象|-
参数名称|类型|备注|必填|其它
---|---|---|---|---
parentId|String|区域树父id|是|
-
parentId|String|区域树父id|是|
0为树的顶层节点
**请求样例:**
```
...
...
@@ -744,7 +781,7 @@ data|object|数据对象|-
  
label|String|节点名称|-
  
areaCode|String|区域编码|-
  
isLeaf|String|是否叶子节点|-
  
type|String|节点类型|
-
  
type|String|节点类型|
type='site'表示站点,type='area'表示区域
  
icon|String|图标|-
  
children|Arrays|子节点|-
...
...
doc/preview/api-two.html
View file @
777b0fd8
<html>
<head>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=utf-8"
/>
<title>
i5ting_ztree_toc:
</title>
<link
href=
"toc/style/
gith
ub.css"
media=
"all"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"toc/style/
gith
ub2.css"
media=
"all"
rel=
"stylesheet"
type=
"text/css"
/>
<title>
i5ting_ztree_toc:
api-two
</title>
<link
href=
"toc/style/
GitH
ub.css"
media=
"all"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"toc/style/
GitH
ub2.css"
media=
"all"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"toc/css/zTreeStyle/zTreeStyle.css"
media=
"all"
rel=
"stylesheet"
type=
"text/css"
/>
<style>
pre
{
...
...
@@ -63,7 +63,7 @@
</ul>
</div>
<div
id=
'readme'
style=
'width:
7
0%;margin-left:20%;'
>
<div
id=
'readme'
style=
'width:
9
0%;margin-left:20%;'
>
<article
class=
'markdown-body'
>
<h1
id=
"-"
>
基础服务平台
</h1>
<table>
...
...
@@ -304,6 +304,49 @@
{
}
</code></pre><p><strong>
响应参数:
</strong></p>
<p><strong>
响应消息样例:
</strong></p>
<pre
class=
"prettyprint linenums:0"
><code>
</code></pre><h3
id=
"-"
>
上传附件
</h3>
<p><strong>
请求URL:
</strong>
file/commonupload
</p>
<p><strong>
请求方式:
</strong>
POST
</p>
<p><strong>
内容类型:
</strong>
multipart/form-data
</p>
<p><strong>
简要描述:
</strong>
用户上传附件
</p>
<p><strong>
请求参数:
</strong></p>
<table>
<thead>
<tr>
<th>
参数名称
</th>
<th>
类型
</th>
<th>
备注
</th>
<th>
必填
</th>
<th>
其它
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
file
</td>
<td>
multipart
</td>
<td>
附件
</td>
<td>
是
</td>
<td>
-
</td>
</tr>
<tr>
<td>
prePath
</td>
<td>
String
</td>
<td>
附件存放相对路径
</td>
<td>
否
</td>
<td>
不填时候默认为/file/fileupload
</td>
</tr>
</tbody>
</table>
<p><strong>
请求样例:
</strong></p>
<pre
class=
"prettyprint linenums:0"
><code>
http://127.0.0.1/file/commonupload?prePath=/file/fileupload
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name=
"
file
"
; filename=
"
1.excel
"
Content-Type: multipart/form-data
</code></pre><p><strong>
响应参数:
</strong></p>
<p><strong>
响应消息样例:
</strong></p>
<pre
class=
"prettyprint linenums:0"
><code>
...
...
@@ -1799,7 +1842,7 @@
<td>
String
</td>
<td>
区域树父id
</td>
<td>
是
</td>
<td>
-
</td>
<td>
0为树的顶层节点
</td>
</tr>
</tbody>
</table>
...
...
@@ -1870,7 +1913,7 @@
<td>
  
type
</td>
<td>
String
</td>
<td>
节点类型
</td>
<td>
-
</td>
<td>
type=
'
site
'
表示站点,type=
'
area
'
表示区域
</td>
</tr>
<tr>
<td>
  
icon
</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment