lyhzzz 2 лет назад
Родитель
Сommit
d234d80481

+ 1 - 1
src/main/java/com/fdkankan/tk/common/util/UploadToOssUtil.java

@@ -119,7 +119,7 @@ public class UploadToOssUtil {
 			case "local":uploadLocal(filePath,key1);  break;
 		}
 	}
-	public void delete(String key1) throws IOException{
+	public void delete(String key1) {
 		switch (type){
 			case "oss":deleteOss(key1); break;
 			case "aws": deleteS3Object(key1); break;

+ 3 - 1
src/main/java/com/fdkankan/tk/controller/RoomController.java

@@ -11,6 +11,8 @@ import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
+import java.io.IOException;
+
 /**
  *房间管理
  */
@@ -54,7 +56,7 @@ public class RoomController extends BaseController{
      * 删除房间
      */
     @PostMapping("/roomDelete")
-    public ResultData roomDelete(@RequestBody RoomAddParam param){
+    public ResultData roomDelete(@RequestBody RoomAddParam param) {
         if(param.getRoomId() == null){
             throw new BusinessException(ResultCode.PARAM_MISS);
         }

+ 1 - 1
src/main/java/com/fdkankan/tk/service/IRoomService.java

@@ -23,7 +23,7 @@ public interface IRoomService extends IService<Room> {
 
     Room addOrUpdate(RoomAddParam param, String token);
 
-    void deleteById(Integer roomId) throws IOException;
+    void deleteById(Integer roomId);
 
     RoomVo getRoomInfo(Integer roomId);
 

+ 1 - 1
src/main/java/com/fdkankan/tk/service/impl/RoomServiceImpl.java

@@ -123,7 +123,7 @@ public class RoomServiceImpl extends ServiceImpl<IRoomMapper, Room> implements I
     }
 
     @Override
-    public void deleteById(Integer roomId) throws IOException {
+    public void deleteById(Integer roomId) {
         Room room = this.getById(roomId);
         if(room == null ){
             throw new BusinessException(ResultCode.ROOM_MISS);