文件权限控制,展示下载数
This commit is contained in:
@@ -43,7 +43,6 @@ import java.util.*;
|
|||||||
* @author 暮光:城中城
|
* @author 暮光:城中城
|
||||||
* @since 2019年2月17日
|
* @since 2019年2月17日
|
||||||
*/
|
*/
|
||||||
@AuthMan
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/zyplayer-doc-wiki/common")
|
@RequestMapping("/zyplayer-doc-wiki/common")
|
||||||
public class WikiCommonController {
|
public class WikiCommonController {
|
||||||
@@ -63,6 +62,7 @@ public class WikiCommonController {
|
|||||||
@Resource
|
@Resource
|
||||||
WikiPageFileMapper wikiPageFileMapper;
|
WikiPageFileMapper wikiPageFileMapper;
|
||||||
|
|
||||||
|
@AuthMan
|
||||||
@PostMapping("/user/base")
|
@PostMapping("/user/base")
|
||||||
public ResponseJson<Object> userBaseInfo(String search) {
|
public ResponseJson<Object> userBaseInfo(String search) {
|
||||||
if (StringUtils.isBlank(search)) {
|
if (StringUtils.isBlank(search)) {
|
||||||
@@ -76,6 +76,7 @@ public class WikiCommonController {
|
|||||||
return DocResponseJson.ok(userInfoList);
|
return DocResponseJson.ok(userInfoList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@AuthMan
|
||||||
@PostMapping("/wangEditor/upload")
|
@PostMapping("/wangEditor/upload")
|
||||||
public Map<String, Object> wangEditorUpload(WikiPageFile wikiPageFile, @RequestParam("files") MultipartFile file) {
|
public Map<String, Object> wangEditorUpload(WikiPageFile wikiPageFile, @RequestParam("files") MultipartFile file) {
|
||||||
this.upload(wikiPageFile, file);
|
this.upload(wikiPageFile, file);
|
||||||
@@ -85,6 +86,7 @@ public class WikiCommonController {
|
|||||||
return resultMap;
|
return resultMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@AuthMan
|
||||||
@PostMapping("/upload")
|
@PostMapping("/upload")
|
||||||
public ResponseJson<Object> upload(WikiPageFile wikiPageFile, @RequestParam("files") MultipartFile file) {
|
public ResponseJson<Object> upload(WikiPageFile wikiPageFile, @RequestParam("files") MultipartFile file) {
|
||||||
DocUserDetails currentUser = DocUserUtil.getCurrentUser();
|
DocUserDetails currentUser = DocUserUtil.getCurrentUser();
|
||||||
|
|||||||
@@ -52,7 +52,8 @@
|
|||||||
<a target="_blank" :href="scope.row.fileUrl">{{scope.row.fileName}}</a>
|
<a target="_blank" :href="scope.row.fileUrl">{{scope.row.fileName}}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<div class="wiki-content w-e-text">
|
<div class="wiki-content w-e-text">
|
||||||
|
|||||||
Reference in New Issue
Block a user