1、分布式web文件系统及相关调用完善;2、增加应用示例文档。
| | |
| | | package com.dy.pipIrrGlobal.daoFi; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dy.pipIrrGlobal.pojoFi.WebFile; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Mapper |
| | | public interface WebFileMapper { |
| | | public interface WebFileMapper extends BaseMapper<WebFile> { |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(WebFile record); |
| | |
| | | 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) { |
| | |
| | | @Service |
| | | public class WebFileSv { |
| | | |
| | | private WebFileMapper dao; |
| | | |
| | | @Autowired |
| | | public void setDao(WebFileMapper dao){ |
| | | this.dao = dao ; |
| | | } |
| | | private WebFileMapper dao; |
| | | |
| | | @Transactional |
| | | public Long save(WebFile po){ |
| | |
| | | |
| | | pipIrr: |
| | | global: |
| | | dev: false #æ¯å¦å¼åé¶æ®µï¼trueæfalse |
| | | dev: true #æ¯å¦å¼åé¶æ®µï¼trueæfalse |
| | | dsName: ym #å¼åé¶æ®µï¼è®¾ç½®ä¸´æ¶çæ°æ®åºåç§° |
| | | nginx: |
| | | webPort: 54321 |
| | |
| | | - /remote/comRes/receive |
| | | - /wx/comRes/receive |
| | | - /app/captcha/get |
| | | - /file/file #webåå¸å¼æä»¶ç³»ç» |
| | | |
| | | #èªå¨ç»è®¡é
ç½®ï¼èªå¨ç»è®¡å®æ¶ä»»å¡ä¼æ¯å¤©å®æ¶è¿è¡ |
| | | auto-statistics: |
| | | startHour: 0 #å¼å§å°æ¶ 0 |
| | |
| | | }) |
| | | } |
| | | ) |
| | | @MapperScan(basePackages={"com.dy.pipIrrGlobal.daoOp", "com.dy.pipIrrGlobal.daoBa"}) |
| | | @MapperScan(basePackages={"com.dy.pipIrrGlobal.daoOp", "com.dy.pipIrrGlobal.daoBa","com.dy.pipIrrGlobal.daoFi"}) |
| | | public class PipIrrAppApplication { |
| | | |
| | | public static void main(String[] args) { |
| | |
| | | }) |
| | | } |
| | | ) |
| | | @MapperScan(basePackages={"com.dy.pipIrrGlobal.daoBa","com.dy.pipIrrGlobal.daoSe","com.dy.pipIrrGlobal.daoRm","com.dy.pipIrrGlobal.daoPr"}) |
| | | @MapperScan(basePackages={"com.dy.pipIrrGlobal.daoBa","com.dy.pipIrrGlobal.daoSe","com.dy.pipIrrGlobal.daoRm","com.dy.pipIrrGlobal.daoPr","com.dy.pipIrrGlobal.daoFi"}) |
| | | public class PipIrrBaseApplication { |
| | | |
| | | public static void main(String[] args) { |
| | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * åç¹ç»å½ï¼ |
| | | * åå¸å¼webæä»¶ç³»ç»ç®¡çç³»ç» |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | |
| | | }) |
| | | } |
| | | ) |
| | | @MapperScan({"com.dy.pipIrrGlobal.daoPr", "com.dy.pipIrrGlobal.daoBa"}) |
| | | @MapperScan({"com.dy.pipIrrGlobal.daoPr", "com.dy.pipIrrGlobal.daoBa","com.dy.pipIrrGlobal.daoFi"}) |
| | | public class PipIrrProjectApplication { |
| | | |
| | | public static void main(String[] args) { |
| | |
| | | }) |
| | | } |
| | | ) |
| | | @MapperScan(basePackages={"com.dy.pipIrrGlobal.daoRm", "com.dy.pipIrrGlobal.daoPr", "com.dy.pipIrrGlobal.daoSe", "com.dy.pipIrrGlobal.daoBa"}) |
| | | @MapperScan(basePackages={"com.dy.pipIrrGlobal.daoRm", "com.dy.pipIrrGlobal.daoPr", "com.dy.pipIrrGlobal.daoSe", "com.dy.pipIrrGlobal.daoBa","com.dy.pipIrrGlobal.daoFi"}) |
| | | public class PipIrrWechatApplication { |
| | | |
| | | public static void main(String[] args) { |