修改版本号为 1.2.0-snapshot
parent
a19f92ff2c
commit
65843d55a0
2
pom.xml
2
pom.xml
|
@ -20,7 +20,7 @@
|
||||||
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
|
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<revision>1.1.0-snapshot</revision>
|
<revision>1.2.0-snapshot</revision>
|
||||||
<!-- Maven 相关 -->
|
<!-- Maven 相关 -->
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
|
|
|
@ -5,6 +5,7 @@ import cn.iocoder.yudao.adminserver.modules.infra.service.file.InfFileService;
|
||||||
import cn.iocoder.yudao.adminserver.modules.infra.controller.file.vo.InfFilePageReqVO;
|
import cn.iocoder.yudao.adminserver.modules.infra.controller.file.vo.InfFilePageReqVO;
|
||||||
import cn.iocoder.yudao.coreservice.modules.infra.controller.file.vo.InfFileRespVO;
|
import cn.iocoder.yudao.coreservice.modules.infra.controller.file.vo.InfFileRespVO;
|
||||||
import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.file.InfFileDO;
|
import cn.iocoder.yudao.coreservice.modules.infra.dal.dataobject.file.InfFileDO;
|
||||||
|
import cn.iocoder.yudao.coreservice.modules.infra.service.file.InfFileCoreService;
|
||||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
import cn.iocoder.yudao.adminserver.modules.infra.convert.file.InfFileConvert;
|
import cn.iocoder.yudao.adminserver.modules.infra.convert.file.InfFileConvert;
|
||||||
|
@ -36,6 +37,8 @@ public class InfFileController {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private InfFileService fileService;
|
private InfFileService fileService;
|
||||||
|
@Resource
|
||||||
|
private InfFileCoreService fileCoreService;
|
||||||
|
|
||||||
@PostMapping("/upload")
|
@PostMapping("/upload")
|
||||||
@ApiOperation("上传文件")
|
@ApiOperation("上传文件")
|
||||||
|
@ -45,7 +48,7 @@ public class InfFileController {
|
||||||
})
|
})
|
||||||
public CommonResult<String> uploadFile(@RequestParam("file") MultipartFile file,
|
public CommonResult<String> uploadFile(@RequestParam("file") MultipartFile file,
|
||||||
@RequestParam("path") String path) throws IOException {
|
@RequestParam("path") String path) throws IOException {
|
||||||
return success(fileService.createFile(path, IoUtil.readBytes(file.getInputStream())));
|
return success(fileCoreService.createFile(path, IoUtil.readBytes(file.getInputStream())));
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
|
@ -53,7 +56,7 @@ public class InfFileController {
|
||||||
@ApiImplicitParam(name = "id", value = "编号", required = true)
|
@ApiImplicitParam(name = "id", value = "编号", required = true)
|
||||||
@PreAuthorize("@ss.hasPermission('infra:file:delete')")
|
@PreAuthorize("@ss.hasPermission('infra:file:delete')")
|
||||||
public CommonResult<Boolean> deleteFile(@RequestParam("id") String id) {
|
public CommonResult<Boolean> deleteFile(@RequestParam("id") String id) {
|
||||||
fileService.deleteFile(id);
|
fileCoreService.deleteFile(id);
|
||||||
return success(true);
|
return success(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +64,7 @@ public class InfFileController {
|
||||||
@ApiOperation("下载文件")
|
@ApiOperation("下载文件")
|
||||||
@ApiImplicitParam(name = "path", value = "文件附件", required = true, dataTypeClass = MultipartFile.class)
|
@ApiImplicitParam(name = "path", value = "文件附件", required = true, dataTypeClass = MultipartFile.class)
|
||||||
public void getFile(HttpServletResponse response, @PathVariable("path") String path) throws IOException {
|
public void getFile(HttpServletResponse response, @PathVariable("path") String path) throws IOException {
|
||||||
InfFileDO file = fileService.getFile(path);
|
InfFileDO file = fileCoreService.getFile(path);
|
||||||
if (file == null) {
|
if (file == null) {
|
||||||
log.warn("[getFile][path({}) 文件不存在]", path);
|
log.warn("[getFile][path({}) 文件不存在]", path);
|
||||||
response.setStatus(HttpStatus.NOT_FOUND.value());
|
response.setStatus(HttpStatus.NOT_FOUND.value());
|
||||||
|
|
|
@ -11,30 +11,6 @@ import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
*/
|
*/
|
||||||
public interface InfFileService {
|
public interface InfFileService {
|
||||||
|
|
||||||
/**
|
|
||||||
* 保存文件,并返回文件的访问路径
|
|
||||||
*
|
|
||||||
* @param path 文件路径
|
|
||||||
* @param content 文件内容
|
|
||||||
* @return 文件路径
|
|
||||||
*/
|
|
||||||
String createFile(String path, byte[] content);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除文件
|
|
||||||
*
|
|
||||||
* @param id 编号
|
|
||||||
*/
|
|
||||||
void deleteFile(String id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获得文件
|
|
||||||
*
|
|
||||||
* @param path 文件路径
|
|
||||||
* @return 文件
|
|
||||||
*/
|
|
||||||
InfFileDO getFile(String path);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获得文件分页
|
* 获得文件分页
|
||||||
*
|
*
|
||||||
|
|
|
@ -21,24 +21,6 @@ public class InfFileServiceImpl implements InfFileService {
|
||||||
@Resource
|
@Resource
|
||||||
private InfFileMapper fileMapper;
|
private InfFileMapper fileMapper;
|
||||||
|
|
||||||
@Resource
|
|
||||||
private InfFileCoreService fileCoreService;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String createFile(String path, byte[] content) {
|
|
||||||
return fileCoreService.createFile(path,content);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void deleteFile(String id) {
|
|
||||||
fileCoreService.deleteFile(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public InfFileDO getFile(String path) {
|
|
||||||
return fileCoreService.getFile(path);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PageResult<InfFileDO> getFilePage(InfFilePageReqVO pageReqVO) {
|
public PageResult<InfFileDO> getFilePage(InfFilePageReqVO pageReqVO) {
|
||||||
return fileMapper.selectPage(pageReqVO);
|
return fileMapper.selectPage(pageReqVO);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package cn.iocoder.yudao.adminserver.modules.system.enums;
|
package cn.iocoder.yudao.adminserver.modules.system.enums;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
||||||
import javafx.beans.binding.MapExpression;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* System 错误码枚举类
|
* System 错误码枚举类
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>yudao</artifactId>
|
<artifactId>yudao</artifactId>
|
||||||
<groupId>cn.iocoder.boot</groupId>
|
<groupId>cn.iocoder.boot</groupId>
|
||||||
<version>1.1.0-snapshot</version>
|
<version>1.2.0-snapshot</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
|
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<revision>1.1.0-snapshot</revision>
|
<revision>1.2.0-snapshot</revision>
|
||||||
<!-- 统一依赖管理 -->
|
<!-- 统一依赖管理 -->
|
||||||
<spring.boot.version>2.4.5</spring.boot.version>
|
<spring.boot.version>2.4.5</spring.boot.version>
|
||||||
<!-- Web 相关 -->
|
<!-- Web 相关 -->
|
||||||
|
|
|
@ -55,5 +55,6 @@ public class SysUserProfileController {
|
||||||
public CommonResult<MbrUserInfoRespVO> getUserInfo() {
|
public CommonResult<MbrUserInfoRespVO> getUserInfo() {
|
||||||
return success(userService.getUserInfo(getLoginUserId()));
|
return success(userService.getUserInfo(getLoginUserId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -109,6 +109,7 @@ public class MbrUserServiceImpl implements MbrUserService {
|
||||||
@Override
|
@Override
|
||||||
public MbrUserInfoRespVO getUserInfo(Long userId) {
|
public MbrUserInfoRespVO getUserInfo(Long userId) {
|
||||||
MbrUserDO user = this.checkUserExists(userId);
|
MbrUserDO user = this.checkUserExists(userId);
|
||||||
|
// 拼接返回结果
|
||||||
MbrUserInfoRespVO userResp = new MbrUserInfoRespVO();
|
MbrUserInfoRespVO userResp = new MbrUserInfoRespVO();
|
||||||
userResp.setNickName(user.getNickname());
|
userResp.setNickName(user.getNickname());
|
||||||
userResp.setAvatar(user.getAvatar());
|
userResp.setAvatar(user.getAvatar());
|
||||||
|
|
10
更新日志.md
10
更新日志.md
|
@ -3,16 +3,20 @@
|
||||||
* 邮件
|
* 邮件
|
||||||
* 钉钉、飞书等通知
|
* 钉钉、飞书等通知
|
||||||
|
|
||||||
## [v1.2.0] 待定
|
## [v1.3.0] 待定
|
||||||
|
|
||||||
* 工作流
|
* 工作流
|
||||||
|
|
||||||
## [v1.1.1] 待定
|
## [v1.2.0] 进行中
|
||||||
|
|
||||||
|
* 新增用户前台的昵称、头像的修改
|
||||||
|
|
||||||
|
TODO
|
||||||
|
|
||||||
* 支付
|
* 支付
|
||||||
* 用户前台的社交登陆
|
* 用户前台的社交登陆
|
||||||
|
|
||||||
## [v1.1.0] 进行中
|
## [v1.1.0] 2021.10.25
|
||||||
|
|
||||||
* 新增管理后台的企业微信、钉钉等社交登录
|
* 新增管理后台的企业微信、钉钉等社交登录
|
||||||
* 新增用户前台(例如说,用户使用的小程序)的后端项目 `yudao-user-server`
|
* 新增用户前台(例如说,用户使用的小程序)的后端项目 `yudao-user-server`
|
||||||
|
|
Loading…
Reference in New Issue