Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
customer-service
Commits
4b1b833f
Commit
4b1b833f
authored
Mar 03, 2022
by
yexiong.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释fastDfs
parent
fb5a0b6b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
256 additions
and
256 deletions
+256
-256
IFastDFSService.java
.../java/cn/quantgroup/customer/service/IFastDFSService.java
+74
-74
FastDFSServiceImpl.java
.../quantgroup/customer/service/impl/FastDFSServiceImpl.java
+179
-179
VccServiceImpl.java
...a/cn/quantgroup/customer/service/impl/VccServiceImpl.java
+3
-3
No files found.
src/main/java/cn/quantgroup/customer/service/IFastDFSService.java
View file @
4b1b833f
package
cn
.
quantgroup
.
customer
.
service
;
import
java.io.IOException
;
import
java.io.InputStream
;
/**
* fastDFS 接入 http://confluence.quantgroup.cn/x/bMU5AQ
*
* @author jingfeng.guo
* @since 2019-08-24 17:04
*/
public
interface
IFastDFSService
{
/**
* 上传文件
*
* @param fileInput
* @param fileSize
* @param fileExtName 扩展名
* @return
* @throws IOException
*/
String
uploadFile
(
InputStream
fileInput
,
Long
fileSize
,
String
fileExtName
)
throws
IOException
;
/**
* 上传文件
*
* @param bytes
* @param fileExtName
* @return
* @throws IOException
*/
String
uploadFile
(
byte
[]
bytes
,
String
fileExtName
)
throws
IOException
;
/**
* 文件上传, 下载url 再传
*
* @param url
* @param fileExtName
* @return
* @throws IOException
*/
String
uploadFile
(
String
url
,
String
fileExtName
)
throws
IOException
;
/**
* 上传文件 base64
*
* @param base64String
* @param fileExtName
* @return
* @throws IOException
*/
String
uploadFileOfBase64String
(
String
base64String
,
String
fileExtName
)
throws
IOException
;
/**
* 下载文件
*
* @param path
* @return
* @throws IOException
*/
byte
[]
downloadFile
(
String
path
)
throws
IOException
;
/**
* 转成一个临时可用的url
*
* @param path
* @return
* @throws IOException
*/
String
toUrl
(
String
path
)
throws
IOException
;
}
//
package cn.quantgroup.customer.service;
//
//
import java.io.IOException;
//
import java.io.InputStream;
//
/
//
**
//
* fastDFS 接入 http://confluence.quantgroup.cn/x/bMU5AQ
//
*
//
* @author jingfeng.guo
//
* @since 2019-08-24 17:04
//
*/
//
//
public interface IFastDFSService {
//
//
/**
//
* 上传文件
//
*
//
* @param fileInput
//
* @param fileSize
//
* @param fileExtName 扩展名
//
* @return
//
* @throws IOException
//
*/
//
String uploadFile(InputStream fileInput, Long fileSize, String fileExtName) throws IOException;
//
//
/**
//
* 上传文件
//
*
//
* @param bytes
//
* @param fileExtName
//
* @return
//
* @throws IOException
//
*/
//
String uploadFile(byte[] bytes, String fileExtName) throws IOException;
//
//
/**
//
* 文件上传, 下载url 再传
//
*
//
* @param url
//
* @param fileExtName
//
* @return
//
* @throws IOException
//
*/
//
String uploadFile(String url, String fileExtName) throws IOException;
//
//
//
/**
//
* 上传文件 base64
//
*
//
* @param base64String
//
* @param fileExtName
//
* @return
//
* @throws IOException
//
*/
//
String uploadFileOfBase64String(String base64String, String fileExtName) throws IOException;
//
//
/**
//
* 下载文件
//
*
//
* @param path
//
* @return
//
* @throws IOException
//
*/
//
byte[] downloadFile(String path) throws IOException;
//
//
/**
//
* 转成一个临时可用的url
//
*
//
* @param path
//
* @return
//
* @throws IOException
//
*/
//
String toUrl(String path) throws IOException;
//
}
src/main/java/cn/quantgroup/customer/service/impl/FastDFSServiceImpl.java
View file @
4b1b833f
This diff is collapsed.
Click to expand it.
src/main/java/cn/quantgroup/customer/service/impl/VccServiceImpl.java
View file @
4b1b833f
...
...
@@ -14,7 +14,7 @@ import cn.quantgroup.customer.rest.param.vcc.UserPreRepayInfoQuery;
import
cn.quantgroup.customer.rest.vo.JsonResult
;
import
cn.quantgroup.customer.rest.vo.vcc.QueryPreOfflineRepayVo
;
import
cn.quantgroup.customer.rest.vo.vcc.QuerySubmitRecordVo
;
import
cn.quantgroup.customer.service.IFastDFSService
;
//
import cn.quantgroup.customer.service.IFastDFSService;
import
cn.quantgroup.customer.service.IOpSystemService
;
import
cn.quantgroup.customer.service.IVccService
;
import
cn.quantgroup.customer.service.ftp.IFtpService
;
...
...
@@ -62,8 +62,8 @@ public class VccServiceImpl implements IVccService {
private
OfflineRepayOperateRecordRepo
offlineRepayOperateRecordRepo
;
@Autowired
private
IOpSystemService
IOpSystemService
;
@Autowired
private
IFastDFSService
fastDfsService
;
//
@Autowired
//
private IFastDFSService fastDfsService;
@Autowired
private
IFtpService
ftpService
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment