|
@@ -1,5 +1,35 @@
|
|
|
# dmp-file接口
|
|
|
|
|
|
+## 前端使用引导
|
|
|
+
|
|
|
+### 1.本地安装(版本号:ISC)
|
|
|
+
|
|
|
+```
|
|
|
+npm install dmp-file --save
|
|
|
+```
|
|
|
+
|
|
|
+### 2.使用方法
|
|
|
+
|
|
|
+```js
|
|
|
+import { uploadFile } from 'dmp-file'
|
|
|
+
|
|
|
+/* @param url 文件服务地址 例如‘http://develop.persagy.com/dmp-file’
|
|
|
+@param groupCode 集团编码 例如‘YL’
|
|
|
+@param file 文件 例如‘input.files[0]’
|
|
|
+@param func 回调函数 默认console.log步骤
|
|
|
+* { 回调函数返回值
|
|
|
+* msg:'',
|
|
|
+* chunkCount:1,
|
|
|
+* partNumber:0
|
|
|
+* }
|
|
|
+*/
|
|
|
+
|
|
|
+uploadFile('http://develop.persagy.com/dmp-file', 'YL', event.target.files[0], func)
|
|
|
+
|
|
|
+```
|
|
|
+
|
|
|
+###
|
|
|
+
|
|
|
## 后端使用引导
|
|
|
|
|
|
### 1.引入jar坐标(Maven方式)
|