Commit 65843d55a07693e7651934bf740c6bce0aabfde8

Authored by YunaiV
1 parent a19f92ff

修改版本号为 1.2.0-snapshot

... ... @@ -20,7 +20,7 @@
20 20 <url>https://github.com/YunaiV/ruoyi-vue-pro</url>
21 21  
22 22 <properties>
23   - <revision>1.1.0-snapshot</revision>
  23 + <revision>1.2.0-snapshot</revision>
24 24 <!-- Maven 相关 -->
25 25 <java.version>1.8</java.version>
26 26 <maven.compiler.source>${java.version}</maven.compiler.source>
... ...
yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/infra/controller/file/InfFileController.java
... ... @@ -5,6 +5,7 @@ import cn.iocoder.yudao.adminserver.modules.infra.service.file.InfFileService;
5 5 import cn.iocoder.yudao.adminserver.modules.infra.controller.file.vo.InfFilePageReqVO;
6 6 import cn.iocoder.yudao.coreservice.modules.infra.controller.file.vo.InfFileRespVO;
7 7 import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.file.InfFileDO;
  8 +import cn.iocoder.yudao.coreservice.modules.infra.service.file.InfFileCoreService;
8 9 import cn.iocoder.yudao.framework.common.pojo.CommonResult;
9 10 import cn.iocoder.yudao.framework.common.pojo.PageResult;
10 11 import cn.iocoder.yudao.adminserver.modules.infra.convert.file.InfFileConvert;
... ... @@ -36,6 +37,8 @@ public class InfFileController {
36 37  
37 38 @Resource
38 39 private InfFileService fileService;
  40 + @Resource
  41 + private InfFileCoreService fileCoreService;
39 42  
40 43 @PostMapping("/upload")
41 44 @ApiOperation("上传文件")
... ... @@ -45,7 +48,7 @@ public class InfFileController {
45 48 })
46 49 public CommonResult<String> uploadFile(@RequestParam("file") MultipartFile file,
47 50 @RequestParam("path") String path) throws IOException {
48   - return success(fileService.createFile(path, IoUtil.readBytes(file.getInputStream())));
  51 + return success(fileCoreService.createFile(path, IoUtil.readBytes(file.getInputStream())));
49 52 }
50 53  
51 54 @DeleteMapping("/delete")
... ... @@ -53,7 +56,7 @@ public class InfFileController {
53 56 @ApiImplicitParam(name = "id", value = "编号", required = true)
54 57 @PreAuthorize("@ss.hasPermission('infra:file:delete')")
55 58 public CommonResult<Boolean> deleteFile(@RequestParam("id") String id) {
56   - fileService.deleteFile(id);
  59 + fileCoreService.deleteFile(id);
57 60 return success(true);
58 61 }
59 62  
... ... @@ -61,7 +64,7 @@ public class InfFileController {
61 64 @ApiOperation("下载文件")
62 65 @ApiImplicitParam(name = "path", value = "文件附件", required = true, dataTypeClass = MultipartFile.class)
63 66 public void getFile(HttpServletResponse response, @PathVariable("path") String path) throws IOException {
64   - InfFileDO file = fileService.getFile(path);
  67 + InfFileDO file = fileCoreService.getFile(path);
65 68 if (file == null) {
66 69 log.warn("[getFile][path({}) 文件不存在]", path);
67 70 response.setStatus(HttpStatus.NOT_FOUND.value());
... ...
yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/infra/service/file/InfFileService.java
... ... @@ -12,30 +12,6 @@ import cn.iocoder.yudao.framework.common.pojo.PageResult;
12 12 public interface InfFileService {
13 13  
14 14 /**
15   - * 保存文件,并返回文件的访问路径
16   - *
17   - * @param path 文件路径
18   - * @param content 文件内容
19   - * @return 文件路径
20   - */
21   - String createFile(String path, byte[] content);
22   -
23   - /**
24   - * 删除文件
25   - *
26   - * @param id 编号
27   - */
28   - void deleteFile(String id);
29   -
30   - /**
31   - * 获得文件
32   - *
33   - * @param path 文件路径
34   - * @return 文件
35   - */
36   - InfFileDO getFile(String path);
37   -
38   - /**
39 15 * 获得文件分页
40 16 *
41 17 * @param pageReqVO 分页查询
... ...
yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/infra/service/file/impl/InfFileServiceImpl.java
... ... @@ -21,24 +21,6 @@ public class InfFileServiceImpl implements InfFileService {
21 21 @Resource
22 22 private InfFileMapper fileMapper;
23 23  
24   - @Resource
25   - private InfFileCoreService fileCoreService;
26   -
27   - @Override
28   - public String createFile(String path, byte[] content) {
29   - return fileCoreService.createFile(path,content);
30   - }
31   -
32   - @Override
33   - public void deleteFile(String id) {
34   - fileCoreService.deleteFile(id);
35   - }
36   -
37   - @Override
38   - public InfFileDO getFile(String path) {
39   - return fileCoreService.getFile(path);
40   - }
41   -
42 24 @Override
43 25 public PageResult<InfFileDO> getFilePage(InfFilePageReqVO pageReqVO) {
44 26 return fileMapper.selectPage(pageReqVO);
... ...
yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/system/enums/SysErrorCodeConstants.java
1 1 package cn.iocoder.yudao.adminserver.modules.system.enums;
2 2  
3 3 import cn.iocoder.yudao.framework.common.exception.ErrorCode;
4   -import javafx.beans.binding.MapExpression;
5 4  
6 5 /**
7 6 * System 错误码枚举类
... ...
yudao-core-service/pom.xml
... ... @@ -5,7 +5,7 @@
5 5 <parent>
6 6 <artifactId>yudao</artifactId>
7 7 <groupId>cn.iocoder.boot</groupId>
8   - <version>1.1.0-snapshot</version>
  8 + <version>1.2.0-snapshot</version>
9 9 </parent>
10 10 <modelVersion>4.0.0</modelVersion>
11 11  
... ...
yudao-dependencies/pom.xml
... ... @@ -14,7 +14,7 @@
14 14 <url>https://github.com/YunaiV/ruoyi-vue-pro</url>
15 15  
16 16 <properties>
17   - <revision>1.1.0-snapshot</revision>
  17 + <revision>1.2.0-snapshot</revision>
18 18 <!-- 统一依赖管理 -->
19 19 <spring.boot.version>2.4.5</spring.boot.version>
20 20 <!-- Web 相关 -->
... ...
yudao-user-server/src/main/java/cn/iocoder/yudao/userserver/modules/member/controller/user/SysUserProfileController.java
... ... @@ -55,5 +55,6 @@ public class SysUserProfileController {
55 55 public CommonResult<MbrUserInfoRespVO> getUserInfo() {
56 56 return success(userService.getUserInfo(getLoginUserId()));
57 57 }
  58 +
58 59 }
59 60  
... ...
yudao-user-server/src/main/java/cn/iocoder/yudao/userserver/modules/member/service/user/impl/MbrUserServiceImpl.java
... ... @@ -109,6 +109,7 @@ public class MbrUserServiceImpl implements MbrUserService {
109 109 @Override
110 110 public MbrUserInfoRespVO getUserInfo(Long userId) {
111 111 MbrUserDO user = this.checkUserExists(userId);
  112 + // 拼接返回结果
112 113 MbrUserInfoRespVO userResp = new MbrUserInfoRespVO();
113 114 userResp.setNickName(user.getNickname());
114 115 userResp.setAvatar(user.getAvatar());
... ...
更新日志.md
... ... @@ -3,16 +3,20 @@
3 3 * 邮件
4 4 * 钉钉、飞书等通知
5 5  
6   -## [v1.2.0] 待定
  6 +## [v1.3.0] 待定
7 7  
8 8 * 工作流
9 9  
10   -## [v1.1.1] 待定
  10 +## [v1.2.0] 进行中
  11 +
  12 +* 新增用户前台的昵称、头像的修改
  13 +
  14 +TODO
11 15  
12 16 * 支付
13 17 * 用户前台的社交登陆
14 18  
15   -## [v1.1.0] 进行中
  19 +## [v1.1.0] 2021.10.25
16 20  
17 21 * 新增管理后台的企业微信、钉钉等社交登录
18 22 * 新增用户前台(例如说,用户使用的小程序)的后端项目 `yudao-user-server`
... ...