deason hace 7 años
padre
commit
143f4ba97c

+ 0 - 3
src/main/java/cn/com/qmth/examcloud/app/controller/v1/UserAuthRestController.java

@@ -9,9 +9,7 @@ package cn.com.qmth.examcloud.app.controller.v1;
 
 import cn.com.qmth.examcloud.app.model.Result;
 import cn.com.qmth.examcloud.app.model.UserInfo;
-import cn.com.qmth.examcloud.app.model.UserToken;
 import cn.com.qmth.examcloud.app.service.UserAuthService;
-import cn.com.qmth.examcloud.app.utils.StrUtils;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.slf4j.Logger;
@@ -20,7 +18,6 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
 import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpSession;
 
 import static cn.com.qmth.examcloud.app.model.Constants.COMMON_ACCOUNT_TYPE;
 

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/app/utils/DateUtils.java → src/main/java/cn/com/qmth/examcloud/app/core/utils/DateUtils.java

@@ -5,7 +5,7 @@
  * *************************************************
  */
 
-package cn.com.qmth.examcloud.app.utils;
+package cn.com.qmth.examcloud.app.core.utils;
 
 import java.text.SimpleDateFormat;
 import java.util.Date;

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/app/utils/HttpBuilder.java → src/main/java/cn/com/qmth/examcloud/app/core/utils/HttpBuilder.java

@@ -5,7 +5,7 @@
  * *************************************************
  */
 
-package cn.com.qmth.examcloud.app.utils;
+package cn.com.qmth.examcloud.app.core.utils;
 
 import okhttp3.OkHttpClient;
 

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/app/utils/HttpUtils.java → src/main/java/cn/com/qmth/examcloud/app/core/utils/HttpUtils.java

@@ -5,7 +5,7 @@
  * *************************************************
  */
 
-package cn.com.qmth.examcloud.app.utils;
+package cn.com.qmth.examcloud.app.core.utils;
 
 import cn.com.qmth.examcloud.app.model.Constants;
 import cn.com.qmth.examcloud.app.model.ResBody;

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/app/utils/JsonMapper.java → src/main/java/cn/com/qmth/examcloud/app/core/utils/JsonMapper.java

@@ -5,7 +5,7 @@
  * *************************************************
  */
 
-package cn.com.qmth.examcloud.app.utils;
+package cn.com.qmth.examcloud.app.core.utils;
 
 import com.fasterxml.jackson.annotation.JsonInclude.Include;
 import com.fasterxml.jackson.core.JsonProcessingException;

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/app/utils/StrUtils.java → src/main/java/cn/com/qmth/examcloud/app/core/utils/StrUtils.java

@@ -5,7 +5,7 @@
  * *************************************************
  */
 
-package cn.com.qmth.examcloud.app.utils;
+package cn.com.qmth.examcloud.app.core.utils;
 
 import java.util.Random;
 import java.util.UUID;

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/app/repository/DeviceRecordRepository.java → src/main/java/cn/com/qmth/examcloud/app/dao/DeviceRecordRepository.java

@@ -5,7 +5,7 @@
  * *************************************************
  */
 
-package cn.com.qmth.examcloud.app.repository;
+package cn.com.qmth.examcloud.app.dao;
 
 import cn.com.qmth.examcloud.app.model.DeviceRecord;
 import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/app/service/DeviceRecordService.java

@@ -9,7 +9,7 @@ package cn.com.qmth.examcloud.app.service;
 
 import cn.com.qmth.examcloud.app.model.DeviceRecord;
 import cn.com.qmth.examcloud.app.model.Result;
-import cn.com.qmth.examcloud.app.repository.DeviceRecordRepository;
+import cn.com.qmth.examcloud.app.dao.DeviceRecordRepository;
 import org.apache.commons.lang3.StringUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/app/service/ExamAdminService.java

@@ -8,7 +8,7 @@
 package cn.com.qmth.examcloud.app.service;
 
 import cn.com.qmth.examcloud.app.model.Result;
-import cn.com.qmth.examcloud.app.utils.HttpUtils;
+import cn.com.qmth.examcloud.app.core.utils.HttpUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;

+ 3 - 3
src/main/java/cn/com/qmth/examcloud/app/service/NetExamService.java

@@ -10,9 +10,9 @@ package cn.com.qmth.examcloud.app.service;
 import cn.com.qmth.examcloud.app.core.exception.ApiException;
 import cn.com.qmth.examcloud.app.model.Constants;
 import cn.com.qmth.examcloud.app.model.Result;
-import cn.com.qmth.examcloud.app.utils.DateUtils;
-import cn.com.qmth.examcloud.app.utils.HttpUtils;
-import cn.com.qmth.examcloud.app.utils.JsonMapper;
+import cn.com.qmth.examcloud.app.core.utils.DateUtils;
+import cn.com.qmth.examcloud.app.core.utils.HttpUtils;
+import cn.com.qmth.examcloud.app.core.utils.JsonMapper;
 import okhttp3.FormBody;
 import okhttp3.MediaType;
 import okhttp3.MultipartBody;

+ 1 - 1
src/main/java/cn/com/qmth/examcloud/app/service/QuestionPoolService.java

@@ -8,7 +8,7 @@
 package cn.com.qmth.examcloud.app.service;
 
 import cn.com.qmth.examcloud.app.model.Result;
-import cn.com.qmth.examcloud.app.utils.HttpUtils;
+import cn.com.qmth.examcloud.app.core.utils.HttpUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;

+ 3 - 3
src/main/java/cn/com/qmth/examcloud/app/service/SmsService.java

@@ -10,9 +10,9 @@ package cn.com.qmth.examcloud.app.service;
 import cn.com.qmth.examcloud.app.model.Constants;
 import cn.com.qmth.examcloud.app.model.ResBody;
 import cn.com.qmth.examcloud.app.model.Result;
-import cn.com.qmth.examcloud.app.utils.HttpUtils;
-import cn.com.qmth.examcloud.app.utils.JsonMapper;
-import cn.com.qmth.examcloud.app.utils.StrUtils;
+import cn.com.qmth.examcloud.app.core.utils.HttpUtils;
+import cn.com.qmth.examcloud.app.core.utils.JsonMapper;
+import cn.com.qmth.examcloud.app.core.utils.StrUtils;
 import okhttp3.FormBody;
 import okhttp3.MediaType;
 import okhttp3.RequestBody;

+ 3 - 3
src/main/java/cn/com/qmth/examcloud/app/service/UserAuthService.java

@@ -11,9 +11,9 @@ import cn.com.qmth.examcloud.app.model.Constants;
 import cn.com.qmth.examcloud.app.model.ResBody;
 import cn.com.qmth.examcloud.app.model.Result;
 import cn.com.qmth.examcloud.app.model.UserInfo;
-import cn.com.qmth.examcloud.app.utils.HttpBuilder;
-import cn.com.qmth.examcloud.app.utils.HttpUtils;
-import cn.com.qmth.examcloud.app.utils.JsonMapper;
+import cn.com.qmth.examcloud.app.core.utils.HttpBuilder;
+import cn.com.qmth.examcloud.app.core.utils.HttpUtils;
+import cn.com.qmth.examcloud.app.core.utils.JsonMapper;
 import okhttp3.*;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;