文件权限控制,展示下载数

This commit is contained in:
暮光:城中城
2019-06-18 22:38:46 +08:00
parent 994ced47bc
commit 0f9f909d73
2 changed files with 5 additions and 2 deletions

View File

@@ -43,7 +43,6 @@ import java.util.*;
* @author 暮光:城中城
* @since 2019年2月17日
*/
@AuthMan
@RestController
@RequestMapping("/zyplayer-doc-wiki/common")
public class WikiCommonController {
@@ -63,6 +62,7 @@ public class WikiCommonController {
@Resource
WikiPageFileMapper wikiPageFileMapper;
@AuthMan
@PostMapping("/user/base")
public ResponseJson<Object> userBaseInfo(String search) {
if (StringUtils.isBlank(search)) {
@@ -76,6 +76,7 @@ public class WikiCommonController {
return DocResponseJson.ok(userInfoList);
}
@AuthMan
@PostMapping("/wangEditor/upload")
public Map<String, Object> wangEditorUpload(WikiPageFile wikiPageFile, @RequestParam("files") MultipartFile file) {
this.upload(wikiPageFile, file);
@@ -85,6 +86,7 @@ public class WikiCommonController {
return resultMap;
}
@AuthMan
@PostMapping("/upload")
public ResponseJson<Object> upload(WikiPageFile wikiPageFile, @RequestParam("files") MultipartFile file) {
DocUserDetails currentUser = DocUserUtil.getCurrentUser();

View File

@@ -52,7 +52,8 @@
<a target="_blank" :href="scope.row.fileUrl">{{scope.row.fileName}}</a>
</template>
</el-table-column>
<el-table-column prop="createTime" label="创建时间"></el-table-column>
<el-table-column prop="createTime" label="创建时间" width="180px"></el-table-column>
<el-table-column prop="downloadNum" label="下载次数" width="80px"></el-table-column>
</el-table>
</div>
<div class="wiki-content w-e-text">