用户登录接口
接口URL
http://localhost:8080/infol
请求方式
POST
Content-Type
application/x-www-form-urlencoded
请求body参数
参数 | 示例值 | 是否必填 | 参数描述 |
---|---|---|---|
id | liubei_1 | 必填 | - |
pwd | 123456 | 必填 | |
成功响应示例
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<title>简存取</title>
<script src="/js/jquery-3.4.1.min.js" type="application/javascript"></script>
<script src="/js/bootstrap.min.js" type="application/javascript"></script>
<script src="/js/jiancunqu.js" type="application/javascript"></script>
<link rel="stylesheet" href="/css/bootstrap.min.css" />
<link rel="stylesheet" href="/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="/css/jiancunqu.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
.up_form {
text-align: center;
}
</style>
</head>
<body>
<!--导航-->
<div>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"></div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<div class="navbar-header">
<span class="navbar-brand">简存取</span>
</div>
</div>
<div class="col-xs-5 col-sm-5 col-md-5 col-lg-5"></div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="pull-right navbar-header">
<span class="navbar-brand" id="span_welcome"> 尊敬的用户:刘备,您好!</span>
</div>
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1">
<div>
<a class="navbar-brand" href="/logout" data-toggle="tooltip" data-placement="right" title="注销">
<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"></div>
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 table-margin">
<script type="text/javascript">
**function** _s() {
var f **=** document.**getElementById**("f").files;
//var welcome = document.getElementById("span_welcome").textContent;
//var input_usr = document.getElementById("user_id");
//var begin = welcome.indexOf(":") + 1;
//var end = welcome.indexOf(",");
//input_usr.value = welcome.substring(begin, end);
//上次修改时间
//alert(f[0].lastModifiedDate);
var time **=** document.**getElementById**("file_time");
//time.textContent = f[0].lastModifiedDate.toLocaleString();
time.value **=** f[0].lastModifiedDate.toLocaleDateString();
//名称
//alert(f[0].name);
var name **=** document.**getElementById**("file_name");
//name.textContent = f[0].name;
name.value **=** f[0].name;
//大小 字节
//alert(f[0].size);
var size **=** document.**getElementById**("file_size");
//size.textContent = f[0].size + '字节';
size.value **=** f[0].size;
var di **=** document.**getElementById**("hid");
di.hidden **=** **false**;
}
**function** cancel() {
var di **=** document.**getElementById**("hid");
di.hidden **=** **true**;
}
</script>
<table class="table table-hover">
<thead>
<tr>
<th>文件名</th>
<th>文件大小</th>
<th>修改时间</th>
<th>下载</th>
<th>共享</th>
<th>删除</th>
</tr>
</thead>
<tr colspan="4">
<img src="./img/directory.png" width="100" zheight="100"><a href="/shareFile">公司共享文件</a>
</tr>
<tbody>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_banner.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352164&Signature=%2F29YmWQCy4kHGJ%2F25PNMypoSDJI%3D">banner.txt</a>
</td>
<th>3175字节</th>
<td>Sun Dec 27 00:00:00 GMT+08:00 2020</td>
<td><a
href="/download?file_name=刘备_banner.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_banner.txt"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_banner.txt"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_log4j.properties?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352242&Signature=w%2Bj3fV8ZDUoJS%2BIZjpFm9jhlh7s%3D">log4j.properties</a>
</td>
<th>1167字节</th>
<td>Sun Dec 27 00:00:00 GMT+08:00 2020</td>
<td><a
href="/download?file_name=刘备_log4j.properties"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_log4j.properties"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_log4j.properties"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_tmp1.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352469&Signature=sg5JUfwMn7ONhQKs46y3s1e8vLI%3D">tmp1.txt</a>
</td>
<th>3字节</th>
<td>Sat Jan 09 00:00:00 GMT+08:00 2021</td>
<td><a
href="/download?file_name=刘备_tmp1.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_tmp1.txt"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_tmp1.txt"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_tmp2.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352479&Signature=KFKZ8u0%2F%2FroIV%2FiTuqJhlH9U%2Bp4%3D">tmp2.txt</a>
</td>
<th>5字节</th>
<td>Sun Jan 10 00:00:00 GMT+08:00 2021</td>
<td><a
href="/download?file_name=刘备_tmp2.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_tmp2.txt"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_tmp2.txt"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_tmp3.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352488&Signature=Pwi0o17kDsjHXomMK%2BW0k7Y7ty8%3D">tmp3.txt</a>
</td>
<th>3字节</th>
<td>Sat Jan 09 00:00:00 GMT+08:00 2021</td>
<td><a
href="/download?file_name=刘备_tmp3.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_tmp3.txt"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_tmp3.txt"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_tmp5.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352504&Signature=Flg3B1B1hMyp%2B%2FhOXfLDkW1r96Q%3D">tmp5.txt</a>
</td>
<th>11字节</th>
<td>Sat Jan 09 00:00:00 GMT+08:00 2021</td>
<td><a
href="/download?file_name=刘备_tmp5.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_tmp5.txt"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_tmp5.txt"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
</tbody>
</table>
<br/>
<hr />
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"></div>
</div>
<div class="up_form">
<!--bootstrap实现弹出模态框-->
<center>
<button class="btn btn-default" data-target="#myModal" data-toggle="modal" id="up_bt">
上传文件
</button>
</center>
<!--fade 淡入淡出-->
<div class="modal fade" id="myModal" aria-labelledby="myModallabel" aria-hidden="true" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button class="close" type="button" data-dismiss="modal" aria-hidden="true">×</button>
<h5 class="modal-title" id="myModallabel">上传文件</h5>
</div>
<form id="formData" class="form-horizontal" action="/upload" method="post">
<div class="modal-body">
<div class="form-group">
<input type="file" name="f" id="f" onchange="document.getElementById('file_path').textContent=this.value"/>
<br/>
<input type="button" name="aa" id="aa" value="确定选择" onclick="javascript: _s();" />
</div>
<div id="hid" hidden="true">
<div class="form-group">
<label class="control-label col-lg-2">所属用户</label>
<div class="col-lg-9">
<input type="text" name="name" id="user_id" value="刘备" />
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">文件名称</label>
<div class="col-lg-9">
<input type="text" name="file_name" id="file_name" />
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">文件大小</label>
<div class="col-lg-9">
<input type="text" name="file_size" id="file_size" />
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">修改时间</label>
<div class="col-lg-9">
<input type="text" name="file_time" id="file_time" />
</div>
</div>
<div class="modal-footer">
<input type="submit" value="上传" formenctype="multipart/form-data" />
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
下载文件
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-TrruVG8e-1612933103135)(file:///C:/Users/12542/AppData/Local/Temp/msohtmlclip1/01/clip_image004.gif)]
接口URL
http://localhost:8080/download?file_name=%E5%88%98%E5%A4%87_banner.txt
请求方式
GET
Content-Type
application/octet-stream;charset=utf-8
请求Query参数
参数 | 示例值 | 是否必填 | 参数描述 |
---|---|---|---|
file_name | 刘备_banner.txt | 必填 | - |
上传文件
接口URL
http://localhost:8080/upload
请求方式
POST
Content-Type
multipart/form-data
请求Query参数
参数 | 示例值 | 是否必填 | 参数描述 |
---|---|---|---|
Content-Type | multipart/form-data | 必填 | - |
Referer | http://localhost:8080/upload | 必填 | |
上传相同文件
接口URL
http://localhost:8080/upload
请求方式
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-upkXjAXY-1612933103137)(file:///C:/Users/12542/AppData/Local/Temp/msohtmlclip1/01/clip_image002.gif)]POST
Content-Type
multipart/form-data
成功响应示例
{
"status": 304,
"message": "null",
"data": 111
}
用户文件分享
接口URL
http://localhost:8080/share?file_name=%E5%88%98%E5%A4%87_banner.txt
请求方式
POST
Content-Type
multipart/form-data
成功响应示例
<html lang="zh-CN">
<head>
<title>简存取</title>
<script src="/js/jquery-3.4.1.min.js" type="application/javascript"></script>
<script src="/js/bootstrap.min.js" type="application/javascript"></script>
<script src="/js/jiancunqu.js" type="application/javascript"></script>
<link rel="stylesheet" href="/css/bootstrap.min.css" />
<link rel="stylesheet" href="/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="/css/jiancunqu.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
.up_form {
text-align: center;
}
</style>
</head>
<body>
<!--导航-->
<div>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"></div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<div class="navbar-header">
<span class="navbar-brand">简存取</span>
</div>
</div>
<div class="col-xs-5 col-sm-5 col-md-5 col-lg-5"></div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="pull-right navbar-header">
<span class="navbar-brand" id="span_welcome"> 尊敬的用户:刘备,您好!</span>
</div>
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1">
<div>
<a class="navbar-brand" href="/logout" data-toggle="tooltip" data-placement="right" title="注销">
<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"></div>
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 table-margin">
<script type="text/javascript">
**function** _s() {
var f **=** document.**getElementById**("f").files;
//var welcome = document.getElementById("span_welcome").textContent;
//var input_usr = document.getElementById("user_id");
//var begin = welcome.indexOf(":") + 1;
//var end = welcome.indexOf(",");
//input_usr.value = welcome.substring(begin, end);
//上次修改时间
//alert(f[0].lastModifiedDate);
var time **=** document.**getElementById**("file_time");
//time.textContent = f[0].lastModifiedDate.toLocaleString();
time.value **=** f[0].lastModifiedDate.toLocaleDateString();
//名称
//alert(f[0].name);
var name **=** document.**getElementById**("file_name");
//name.textContent = f[0].name;
name.value **=** f[0].name;
//大小 字节
//alert(f[0].size);
var size **=** document.**getElementById**("file_size");
//size.textContent = f[0].size + '字节';
size.value **=** f[0].size;
var di **=** document.**getElementById**("hid");
di.hidden **=** **false**;
}
**function** cancel() {
var di **=** document.**getElementById**("hid");
di.hidden **=** **true**;
}
</script>
<table class="table table-hover">
<thead>
<tr>
<th>文件名</th>
<th>文件大小</th>
<th>修改时间</th>
<th>下载</th>
<th>共享</th>
<th>删除</th>
</tr>
</thead>
<tr colspan="4">
<img src="./img/directory.png" width="100" zheight="100"><a href="/shareFile">公司共享文件</a>
</tr>
<tbody>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_banner.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352164&Signature=%2F29YmWQCy4kHGJ%2F25PNMypoSDJI%3D">banner.txt</a>
</td>
<th>3175字节</th>
<td>Tue Dec 15 00:00:00 GMT+08:00 2020</td>
<td><a
href="/download?file_name=刘备_banner.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_banner.txt"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_banner.txt"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_Client.exe?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620373114&Signature=IG52S1kkg5As60iYY%2Fg%2BgA7XeF0%3D">Client.exe</a>
</td>
<th>838736字节</th>
<td>Mon Mar 30 00:00:00 GMT+08:00 2020</td>
<td><a
href="/download?file_name=刘备_Client.exe"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_Client.exe"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_Client.exe"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_eclipse.exe?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620372857&Signature=GpM052JtStvfOxeRCEp7coZ%2FLH0%3D">eclipse.exe</a>
</td>
<th>424456字节</th>
<td>Sun Aug 11 00:00:00 GMT+08:00 2019</td>
<td><a
href="/download?file_name=刘备_eclipse.exe"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_eclipse.exe"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_eclipse.exe"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_log4j.properties?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352242&Signature=w%2Bj3fV8ZDUoJS%2BIZjpFm9jhlh7s%3D">log4j.properties</a>
</td>
<th>1167字节</th>
<td>Sun Dec 27 00:00:00 GMT+08:00 2020</td>
<td><a
href="/download?file_name=刘备_log4j.properties"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_log4j.properties"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_log4j.properties"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_mmog_data.xml?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620371984&Signature=oNqQ%2FPfa6fOTQIGqh409M3tZr8M%3D">mmog_data.xml</a>
</td>
<th>385字节</th>
<td>Mon Mar 30 00:00:00 GMT+08:00 2020</td>
<td><a
href="/download?file_name=刘备_mmog_data.xml"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_mmog_data.xml"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_mmog_data.xml"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_tmp1.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352469&Signature=sg5JUfwMn7ONhQKs46y3s1e8vLI%3D">tmp1.txt</a>
</td>
<th>3字节</th>
<td>Sat Jan 09 00:00:00 GMT+08:00 2021</td>
<td><a
href="/download?file_name=刘备_tmp1.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_tmp1.txt"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_tmp1.txt"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_tmp2.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352479&Signature=KFKZ8u0%2F%2FroIV%2FiTuqJhlH9U%2Bp4%3D">tmp2.txt</a>
</td>
<th>5字节</th>
<td>Sun Jan 10 00:00:00 GMT+08:00 2021</td>
<td><a
href="/download?file_name=刘备_tmp2.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_tmp2.txt"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_tmp2.txt"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_tmp3.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352488&Signature=Pwi0o17kDsjHXomMK%2BW0k7Y7ty8%3D">tmp3.txt</a>
</td>
<th>3字节</th>
<td>Sat Jan 09 00:00:00 GMT+08:00 2021</td>
<td><a
href="/download?file_name=刘备_tmp3.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_tmp3.txt"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_tmp3.txt"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_tmp5.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352504&Signature=Flg3B1B1hMyp%2B%2FhOXfLDkW1r96Q%3D">tmp5.txt</a>
</td>
<th>11字节</th>
<td>Sat Jan 09 00:00:00 GMT+08:00 2021</td>
<td><a
href="/download?file_name=刘备_tmp5.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
<td><a href="/share?file_name=刘备_tmp5.txt"
onclick="return confirm('确定分享?');"><span class="glyphicon glyphicon-cloud" aria-hidden="true"></span></a>
</td>
<td><a href="/delete?file_name=刘备_tmp5.txt"
onclick="return confirm('确定删除?');"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
</td>
</tr>
</tbody>
</table>
<br/>
<hr />
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"></div>
</div>
<div class="up_form">
<!--bootstrap实现弹出模态框-->
<center>
<button class="btn btn-default" data-target="#myModal" data-toggle="modal" id="up_bt">
上传文件
</button>
</center>
<!--fade 淡入淡出-->
<div class="modal fade" id="myModal" aria-labelledby="myModallabel" aria-hidden="true" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button class="close" type="button" data-dismiss="modal" aria-hidden="true">×</button>
<h5 class="modal-title" id="myModallabel">上传文件</h5>
</div>
<form id="formData" class="form-horizontal" action="/upload" method="post">
<div class="modal-body">
<div class="form-group">
<input type="file" name="f" id="f" onchange="document.getElementById('file_path').textContent=this.value"/>
<br/>
<input type="button" name="aa" id="aa" value="确定选择" onclick="javascript: _s();" />
</div>
<div id="hid" hidden="true">
<div class="form-group">
<label class="control-label col-lg-2">所属用户</label>
<div class="col-lg-9">
<input type="text" name="name" id="user_id" value="刘备" />
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">文件名称</label>
<div class="col-lg-9">
<input type="text" name="file_name" id="file_name" />
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">文件大小</label>
<div class="col-lg-9">
<input type="text" name="file_size" id="file_size" />
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">修改时间</label>
<div class="col-lg-9">
<input type="text" name="file_time" id="file_time" />
</div>
</div>
<div class="modal-footer">
<input type="submit" value="上传" formenctype="multipart/form-data" />
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
用户注销
接口URL
http://localhost:8080/logout
请求方式
GET
Content-Type
无
成功响应示例
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<title>简存取</title>
<script src="/js/jquery-3.4.1.min.js" type="application/javascript"></script>
<script src="/js/bootstrap.min.js" type="application/javascript"></script>
<script src="/js/jiancunqu.js" type="application/javascript"></script>
<link rel="stylesheet" href="/css/bootstrap.min.css" />
<link rel="stylesheet" href="/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="/css/jiancunqu.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<!--导航-->
<div>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"></div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<div class="navbar-header">
<span class="navbar-brand">简存取</span>
</div>
</div>
<div class="col-xs-5 col-sm-5 col-md-5 col-lg-5"></div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1">
</div>
</div>
</div>
<div class="table-margin">
<div class="col-xs-0 col-sm-1 col-md-3 col-lg-3"></div>
<div class="jumbotron login-jumbotron col-xs-12 col-sm-10 col-md-6 col-lg-6">
<div class="login-form">
<form class="form-horizontal" action="/info" method="post">
<div class="form-group">
<label for="inputId" class="col-sm-2 control-label">工号</label>
<div class="col-sm-10">
<input type="text" name="id" class="form-control" id="inputId" placeholder="工号">
</div>
</div>
<div class="form-group">
<label for="inputPassword" class="col-sm-2 control-label">密码</label>
<div class="col-sm-10">
<input type="password" name="pwd" class="form-control" id="inputPassword"
placeholder="Password">
</div>
</div>
<div class="form-group">
<div class=" col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn btn-primary button-right">登录</button>
</div>
</div>
</form>
</div>
</div>
<div class="col-xs-0 col-sm-1 col-md-3 col-lg-3"></div>
</div>
</body>
</html>
查看共享文件
接口URL
http://localhost:8080/shareFile
请求方式
GET
Content-Type
form-data
成功响应示例
<html lang="zh-CN">
<head>
<title>简存取</title>
<script src="/js/jquery-3.4.1.min.js" type="application/javascript"></script>
<script src="/js/bootstrap.min.js" type="application/javascript"></script>
<script src="/js/jiancunqu.js" type="application/javascript"></script>
<link rel="stylesheet" href="/css/bootstrap.min.css" />
<link rel="stylesheet" href="/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="/css/jiancunqu.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
.up_form {
text-align: center;
}
</style>
</head>
<body>
<!--导航-->
<div>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"></div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<div class="navbar-header">
<span class="navbar-brand">简存取</span>
</div>
</div>
<div class="col-xs-5 col-sm-5 col-md-5 col-lg-5"></div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="pull-right navbar-header">
<span class="navbar-brand" id="span_welcome"> 尊敬的用户:刘备,您好!</span>
</div>
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1">
<div>
<a class="navbar-brand" href="/logout" data-toggle="tooltip" data-placement="right" title="注销">
<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"></div>
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 table-margin">
<script type="text/javascript">
**function** _s() {
var f **=** document.**getElementById**("f").files;
//上次修改时间
//alert(f[0].lastModifiedDate);
var time **=** document.**getElementById**("file_time");
//time.textContent = f[0].lastModifiedDate.toLocaleString();
time.value **=** f[0].lastModifiedDate.toLocaleDateString();
//名称
//alert(f[0].name);
var name **=** document.**getElementById**("file_name");
//name.textContent = f[0].name;
name.value **=** f[0].name;
//大小 字节
//alert(f[0].size);
var size **=** document.**getElementById**("file_size");
//size.textContent = f[0].size + '字节';
size.value **=** f[0].size;
var di **=** document.**getElementById**("hid");
di.hidden **=** **false**;
}
**function** cancel() {
var di **=** document.**getElementById**("hid");
di.hidden **=** **true**;
}
</script>
<table class="table table-hover">
<thead>
<tr>
<th>文件名</th>
<th>文件大小</th>
<th>上传时间</th>
<th>下载</th>
</tr>
</thead>
<tbody>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/wu_2020%E5%B9%B4%E4%B8%8B%E5%8D%8A%E5%B9%B4%E8%8B%B1%E8%AF%AD%E5%85%AD%E7%BA%A7%E7%AC%94%E8%AF%95%E5%87%86%E8%80%83%E8%AF%81%28%E9%83%AD%E7%8E%89%E6%98%8E%29.zip?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1610324331&Signature=6x6qJ%2Bpseskn%2Ft%2BFwP7Az6mBzJ0%3D">2020年下半年英语六级笔试准考证(郭玉明).zip</a>
</td>
<th>74234字节</th>
<td>Sat Dec 05 00:00:00 GMT+08:00 2020</td>
<td><a
href="/download?file_name=wu_2020年下半年英语六级笔试准考证(郭玉明).zip"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_banner.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352164&Signature=%2F29YmWQCy4kHGJ%2F25PNMypoSDJI%3D">banner.txt</a>
</td>
<th>3175字节</th>
<td>Thu Dec 17 00:00:00 GMT+08:00 2020</td>
<td><a
href="/download?file_name=刘备_banner.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_tmp1.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352469&Signature=sg5JUfwMn7ONhQKs46y3s1e8vLI%3D">tmp1.txt</a>
</td>
<th>3字节</th>
<td>Sat Jan 09 00:00:00 GMT+08:00 2021</td>
<td><a
href="/download?file_name=刘备_tmp1.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_tmp3.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352488&Signature=Pwi0o17kDsjHXomMK%2BW0k7Y7ty8%3D">tmp3.txt</a>
</td>
<th>3字节</th>
<td>Sat Jan 09 00:00:00 GMT+08:00 2021</td>
<td><a
href="/download?file_name=刘备_tmp3.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<!--<th th:text="${item.fileName}"></th>-->
<td><a
href="https://jiancunqu.obs.cn-east-3.myhuaweicloud.com:443/%E5%88%98%E5%A4%87_tmp5.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352504&Signature=Flg3B1B1hMyp%2B%2FhOXfLDkW1r96Q%3D">tmp5.txt</a>
</td>
<th>11字节</th>
<td>Sat Jan 09 00:00:00 GMT+08:00 2021</td>
<td><a
href="/download?file_name=刘备_tmp5.txt"><span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span></a>
</td>
</tr>
</tbody>
</table>
<br/>
<hr />
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"></div>
</div>
</body>
文件预览
接口URL
https://jiancunqu.obs.cn-east-3.myhuaweicloud.com/%E5%88%98%E5%A4%87_tmp1.txt?AccessKeyId=EPLSETJPABV27GJIFUZH&Expires=1620352469&Signature=sg5JUfwMn7ONhQKs46y3s1e8vLI%3D
请求方式
GET
Content-Type
text/plain
请求Query参数
参数 | 示例值 | 是否必填 | 参数描述 |
---|---|---|---|
id | 1 | 必填 | - |
成功响应示例
{
"status": 304,
"message": "null",
"data": 111
}
文件删除
接口URL
http://localhost:8080/delete?file_name=%E5%88%98%E5%A4%87_Client.exe
请求方式
GET
Content-Type
application/x-www-form-urlencoded
请求Query参数
参数 | 示例值 | 是否必填 | 参数描述 |
---|---|---|---|
Cookie | Idea-1cf1afa1=5fe40ed6-ef09-46ca-8439-b3c9eab6ae16; JSESSIONID=8427BE4F80EAABAFFB0FE5BE12C7456A; loginUser=liubei_1 | 必填 | - |
管理员登录
接口URL
http://localhost:8080/admin/info
请求方式
POST
Content-Type
application/x-www-form-urlencoded
请求Body参数
参数 | 示例值 | 是否必填 | 参数描述 |
---|---|---|---|
id | 1 | 必填 | - |
pwd | 11 | 必填 | |
成功响应示例
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<title>简存取</title>
<script src="/js/jquery-3.4.1.min.js" type="application/javascript"></script>
<script src="/js/bootstrap.min.js" type="application/javascript"></script>
<script src="/js/jiancunqu.js" type="application/javascript"></script>
<link rel="stylesheet" href="/css/bootstrap.min.css" />
<link rel="stylesheet" href="/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="/css/jiancunqu.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<!--导航-->
<div>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"></div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<div class="navbar-header">
<span class="navbar-brand">简存取</span>
</div>
</div>
<div class="col-xs-5 col-sm-5 col-md-5 col-lg-5"></div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<div class="pull-right navbar-header">
<span class="navbar-brand"> 尊敬的管理员:liubei_1,您好!</span>
</div>
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1">
<div>
<a class="navbar-brand" href="/logout" data-toggle="tooltip" data-placement="right" title="注销">
<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
</a>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"></div>
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 ">
<table class="table table-hover">
<thead>
<tr>
<th>序号</th>
<th>姓名</th>
<th>工号</th>
<th>手机号</th>
<th>身份证号</th>
<th>可用容量</th>
<th>控制
<!--添加-->
<button type="button" class="btn btn-link my-btn-link" data-toggle="modal" data-target="#addModal">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
</button>
<div id="addModal" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span></button>
<h4 class="modal-title">添加员工</h4>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="idAdd">工号</label>
<input name="id" type="text" class="form-control" id="idAdd"
placeholder="不能为空...">
</div>
<div class="form-group">
<label for="nameAdd">姓名</label>
<input name="phoneNum" type="text" class="form-control" id="nameAdd"
placeholder="不能为空...">
</div>
<div class="form-group">
<label for="pwdAdd">密码</label>
<input name="pwd" type="password" class="form-control" id="pwdAdd"
placeholder="不能为空...">
</div>
<div class="form-group">
<label for="phoneNumAdd">手机号</label>
<input name="phoneNum" type="number" class="form-control" id="phoneNumAdd"
placeholder="不能为空...">
</div>
<div class="form-group">
<label for="realIdNumAdd">身份证号</label>
<input name="realIdNum" type="text" class="form-control"
id="realIdNumAdd" placeholder="不能为空...">
</div>
</form>
</div>
<div class="modal-footer">
<button onclick="addPost()" type="button" class="btn btn-primary">确认</button>
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
</div>
</div>
</div>
</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</th>
<th>wu</th>
<th>3</th>
<td>11111111111</td>
<td>38128734738289732</td>
<td>100</td>
<td>
<!--控制-->
<div>
<!--修改-->
<button type="button" class="btn btn-link my-btn-link" data-toggle="modal"
data-target="#modifyModal3">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
</button>
<!--编辑弹框-->
<div id="modifyModal3" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span></button>
<h4 class="modal-title">编辑用户信息-
<span>3</span>-
<span>wu</span>
</h4>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="phoneNumModify">手机号</label>
<input value="11111111111"
name="phoneNum" type="number"
class="form-control" id="phoneNumModify3"
placeholder="不能为空...">
</div>
<div class="form-group">
<label for="realIdNumModify">身份证号</label>
<input value="38128734738289732"
name="realIdNum"
type="text"
class="form-control" id="realIdNumModify3"
placeholder="不能为空...">
</div>
<div class="form-group">
<label for="volumeModify">可用容量(MB)</label>
<input value="100"
name="volume"
type="number"
class="form-control" id="volumeModify3"
placeholder="不能为空...">
</div>
</form>
</div>
<div class="modal-footer">
<button onclick="modifyPost("3")"
type="button" class="btn btn-primary">
确认
</button>
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
</div>
</div>
</div>
</div>
<!--禁用-->
<button type="button" class="btn btn-link my-btn-link" data-toggle="modal"
data-target="#forbidModal3">
<span class="glyphicon glyphicon-stop" aria-hidden="true"></span>
</button>
<!--禁用弹框-->
<div class="modal fade" id="forbidModal3" tabindex="-1" role="dialog"
aria-labelledby="forbidModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title">警告-
<span>3</span>-
<span>wu</span>
</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-4">
<strong>确认禁用该用户?</strong>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button onclick="forbidPost("3",false)"
class="btn btn-danger" type="button" name="foo"
value="3">确认
</button>
</div>
</div>
</div>
</div>
<!--删除-->
<button type="button" class="btn btn-link my-btn-link" data-toggle="modal"
data-target="#deleteModal3">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
</button>
<!--删除弹框-->
<div class="modal fade" id="deleteModal3" tabindex="-1" role="dialog"
aria-labelledby="forbidModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title">警告-删除-
<span>3</span>-
<span>wu</span>
</h4>
</div>
<div class="modal-body">
<strong>确认删除该用户?操作不可撤销!</strong>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button onclick="deletePost("3")" class="btn btn-danger"
type="button" name="foo">确认
</button>
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr>
<th>2</th>
<th>刘备</th>
<th>liubei_1</th>
<td>190999999</td>
<td>600600600600600600</td>
<td>100</td>
<td>
<!--控制-->
<div>
<!--修改-->
<button type="button" class="btn btn-link my-btn-link" data-toggle="modal"
data-target="#modifyModalliubei_1">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
</button>
<!--编辑弹框-->
<div id="modifyModalliubei_1" class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span></button>
<h4 class="modal-title">编辑用户信息-
<span>liubei_1</span>-
<span>刘备</span>
</h4>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="phoneNumModify">手机号</label>
<input value="190999999"
name="phoneNum" type="number"
class="form-control" id="phoneNumModifyliubei_1"
placeholder="不能为空...">
</div>
<div class="form-group">
<label for="realIdNumModify">身份证号</label>
<input value="600600600600600600"
name="realIdNum"
type="text"
class="form-control" id="realIdNumModifyliubei_1"
placeholder="不能为空...">
</div>
<div class="form-group">
<label for="volumeModify">可用容量(MB)</label>
<input value="100"
name="volume"
type="number"
class="form-control" id="volumeModifyliubei_1"
placeholder="不能为空...">
</div>
</form>
</div>
<div class="modal-footer">
<button onclick="modifyPost("liubei_1")"
type="button" class="btn btn-primary">
确认
</button>
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
</div>
</div>
</div>
</div>
<!--禁用-->
<button type="button" class="btn btn-link my-btn-link" data-toggle="modal"
data-target="#forbidModalliubei_1">
<span class="glyphicon glyphicon-stop" aria-hidden="true"></span>
</button>
<!--禁用弹框-->
<div class="modal fade" id="forbidModalliubei_1" tabindex="-1" role="dialog"
aria-labelledby="forbidModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title">警告-
<span>liubei_1</span>-
<span>刘备</span>
</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-4">
<strong>确认禁用该用户?</strong>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button onclick="forbidPost("liubei_1",false)"
class="btn btn-danger" type="button" name="foo"
value="liubei_1">确认
</button>
</div>
</div>
</div>
</div>
<!--删除-->
<button type="button" class="btn btn-link my-btn-link" data-toggle="modal"
data-target="#deleteModalliubei_1">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
</button>
<!--删除弹框-->
<div class="modal fade" id="deleteModalliubei_1" tabindex="-1" role="dialog"
aria-labelledby="forbidModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title">警告-删除-
<span>liubei_1</span>-
<span>刘备</span>
</h4>
</div>
<div class="modal-body">
<strong>确认删除该用户?操作不可撤销!</strong>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button onclick="deletePost("liubei_1")" class="btn btn-danger"
type="button" name="foo">确认
</button>
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-xs-1 col-sm-1 col-md-1 col-lg-1"></div>
</div>
</body>
修改用户信息
接口URL
http://localhost:8080/admin/modify
请求方式
POST
Content-Type
form-data
请求Query参数
参数 | 示例值 | 是否必填 | 参数描述 |
---|---|---|---|
Cookie | Idea-1cf1afa1=5fe40ed6-ef09-46ca-8439-b3c9eab6ae16; JSESSIONID=8427BE4F80EAABAFFB0FE5BE12C7456A; loginUser=1 | 必填 | - |
管理员禁用用户
接口URL
http://localhost:8080/admin/forbid
请求方式
POST
Content-Type
application/x-www-form-urlencoded
成功响应实例
[
{
"id": "1",
"pwd": 11,
"available": "false",
}
]
管理员添加用户
接口URL
http://localhost:8080/admin/add
请求方式
POST
Content-Type
application/x-www-form-urlencoded
请求Body参数
{
"id": "2",
"name": "玄德",
"pwd": "123456",
"phoneNum": "12345678",
"realidnum": "12345678765432",
"available": "true",
}
管理员退出登录
接口URL
http://localhost:8080/logout
请求方式
GET
Content-Type
application/x-www-form-urlencode
成功响应示例
{
"status": 200,
"message": "null",
"data": null
}
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-jz0DrQdv-1612933103140)(file:///C:/Users/12542/AppData/Local/Temp/msohtmlclip1/01/clip_image014.gif)]
ade" id=“deleteModalliubei_1” tabindex="-1" role=“dialog”
aria-labelledby=“forbidModal”>
<button type=“button” class=“close” data-dismiss=“modal”
aria-label=“Close”><span
aria-hidden=“true”>×
警告-删除-
liubei_1-
刘备
确认删除该用户?操作不可撤销!
取消
<button οnclick=“deletePost(“liubei_1”)” class=“btn btn-danger”
type=“button” name=“foo”>确认
## 修改用户信息
#### 接口URL
> http://localhost:8080/admin/modify
#### 请求方式
> POST
#### Content-Type
> form-data
#### 请求Query参数
| **参数** | **示例值** | **是否必填** | **参数描述** |
| -------- | ------------------------------------------------------------ | ------------ | ------------ |
| Cookie | Idea-1cf1afa1=5fe40ed6-ef09-46ca-8439-b3c9eab6ae16; JSESSIONID=8427BE4F80EAABAFFB0FE5BE12C7456A; loginUser=1 | 必填 | - |
## 管理员禁用用户
#### 接口URL
> http://localhost:8080/admin/forbid
#### 请求方式
> POST
#### **Content-Type**
> application/x-www-form-urlencoded
#### 成功响应实例
```json
[
{
"id": "1",
"pwd": 11,
"available": "false",
}
]
管理员添加用户
接口URL
http://localhost:8080/admin/add
请求方式
POST
Content-Type
application/x-www-form-urlencoded
请求Body参数
{
"id": "2",
"name": "玄德",
"pwd": "123456",
"phoneNum": "12345678",
"realidnum": "12345678765432",
"available": "true",
}
管理员退出登录
接口URL
http://localhost:8080/logout
请求方式
GET
Content-Type
application/x-www-form-urlencode
成功响应示例
{
"status": 200,
"message": "null",
"data": null
}
[外链图片转存中…(img-jz0DrQdv-1612933103140)]