| | |
| | | package com.dy.pipIrrGlobal.webCtrls; |
| | | |
| | | |
| | | import com.dy.common.aop.SsoAop; |
| | | import com.dy.common.webUtil.BaseResponse; |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.pipIrrGlobal.dyFile.FileConstant; |
| | |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * web文件上传 |
| | | */ |
| | |
| | | * @return 返回结果 |
| | | */ |
| | | @PostMapping("/upPhoto") |
| | | @SsoAop() |
| | | //参考:https://blog.zhengru.top/posts/33486.html#%E5%8D%95%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0 |
| | | public BaseResponse<?> upPhoto(MultipartFile file) { |
| | | try { |
| | |
| | | * @return 返回结果 |
| | | */ |
| | | @PostMapping("/upPhone") |
| | | @SsoAop() |
| | | public BaseResponse<?> upPhone(MultipartFile file) { |
| | | try { |
| | | if (file != null) { |
| | |
| | | * @return 返回结果 |
| | | */ |
| | | @PostMapping("/upVideo") |
| | | @SsoAop() |
| | | public BaseResponse<?> upVideo(MultipartFile file) { |
| | | try { |
| | | if (file != null) { |
| | |
| | | * @return 返回结果 |
| | | */ |
| | | @PostMapping("/upDocument") |
| | | @SsoAop() |
| | | public BaseResponse<?> upDocument(MultipartFile file) { |
| | | try { |
| | | if (file != null) { |