# fms **Repository Path**: wdworks/fms ## Basic Information - **Project Name**: fms - **Description**: 文件管理系统, 文件上传 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2019-06-05 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## fms - 项目依赖的架构, [framework-boot](https://gitee.com/sesamekim/framework-boot) , 拉下来后 install 一下 #### 项目介绍 文件管理系统, 文件上传 ### docker部署 ``` docker run -p 8072:8072 --restart always --name test.fms \ -v ~/ars/fms:/root/ars/fms \ -v /opt/data/fmsdata:/opt/data/fmsdata \ -e spring.profiles.active=test \ -e fms.file-path=/opt/data/fmsdata \ -e fms.mapping=http://fms.sesame.kim \ --privileged=true -d johnnywjh/kim.fms:2.0 ``` ### 使用介绍 #### 上传文件 - 请求地址 http://ip:port/upload, 例如 http://127.0.0.1:8072/upload - 请求参数说明 ``` ------ 下面这两个参数必须要有一个 ------------ file : 文件流,java后台是用 MultipartFile 接收的 fileBase64 : 文件base64字符串 ------------------------- fileType : 文件类型,用 fileBase64 时 必填 module : 模块名称, 必填 , 可以带上 "/" 例如 fms/user path : 路径,可为空,默认 yyyy/MM/dd ``` - 返回结果 ``` { "success": true, "exceptionType": "", "errorCode": "", "message": "", "result": "http://10.0.75.1:8072/fms/user/2019/03/28/f2bd4738a8264428a1fe152211480f1d.jpg" } ``` #### 删除 - 请求地址 http://ip:port/delete, 例如 http://127.0.0.1:8072/delete - 请求参数说明 ``` path : 文件路径 http://10.0.75.1:8072/fms/user/2019/03/28/f2bd4738a8264428a1fe152211480f1d.jpg 或者 /fms/user/2019/03/28/f2bd4738a8264428a1fe152211480f1d.jpg ``` - 返回结果 ``` { "success": true, "exceptionType": "", "errorCode": "", "message": "", "result": null } ```