Browse Source

判断手机号是否存在

liu 3 years ago
parent
commit
70c867fb78
24 changed files with 244 additions and 79 deletions
  1. 4 4
      .idea/libraries/Maven__com_baomidou_mybatis_plus_3_0_5.xml
  2. 4 4
      .idea/libraries/Maven__com_baomidou_mybatis_plus_annotation_3_0_5.xml
  3. 4 4
      .idea/libraries/Maven__com_baomidou_mybatis_plus_boot_starter_3_0_5.xml
  4. 4 4
      .idea/libraries/Maven__com_baomidou_mybatis_plus_core_3_0_5.xml
  5. 0 13
      .idea/libraries/Maven__com_baomidou_mybatis_plus_extension_3_0_5.xml
  6. 4 4
      .idea/libraries/Maven__com_baomidou_mybatis_plus_generator_3_0_5.xml
  7. 4 4
      .idea/libraries/Maven__com_github_jsqlparser_jsqlparser_1_2.xml
  8. 13 0
      .idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_4_10.xml
  9. 13 0
      .idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_jdk8_1_4_10.xml
  10. 4 4
      .idea/libraries/Maven__org_mybatis_mybatis_3_4_6.xml
  11. 4 4
      .idea/libraries/Maven__org_mybatis_mybatis_spring_1_3_2.xml
  12. 45 14
      .idea/workspace.xml
  13. 1 1
      pom.xml
  14. 10 9
      share_video.iml
  15. 7 0
      src/main/java/com/video/api/LogInfoControllerAPI.java
  16. 3 4
      src/main/java/com/video/api/SendControllerAPI.java
  17. 29 0
      src/main/java/com/video/controller/LogInfoController.java
  18. 5 1
      src/main/java/com/video/controller/SendController.java
  19. 2 1
      src/main/java/com/video/model/pojo/SystemUser.java
  20. 29 2
      src/main/java/com/video/model/utils/CommonResult.java
  21. 3 0
      src/main/java/com/video/services/SystemUserService.java
  22. 25 0
      src/main/java/com/video/services/impl/SystemUserServiceImpl.java
  23. 7 0
      src/main/java/common/result/Code.java
  24. 20 2
      src/main/java/common/result/ResponseStatusEnum.java

+ 4 - 4
.idea/libraries/Maven__com_baomidou_mybatis_plus_3_0_5.xml

@@ -1,13 +1,13 @@
 <component name="libraryTable">
-  <library name="Maven: com.baomidou:mybatis-plus:3.0.5">
+  <library name="Maven: com.baomidou:mybatis-plus:3.5.2">
     <CLASSES>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus/3.0.5/mybatis-plus-3.0.5.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus/3.5.2/mybatis-plus-3.5.2.jar!/" />
     </CLASSES>
     <JAVADOC>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus/3.0.5/mybatis-plus-3.0.5-javadoc.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus/3.5.2/mybatis-plus-3.5.2-javadoc.jar!/" />
     </JAVADOC>
     <SOURCES>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus/3.0.5/mybatis-plus-3.0.5-sources.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus/3.5.2/mybatis-plus-3.5.2-sources.jar!/" />
     </SOURCES>
   </library>
 </component>

+ 4 - 4
.idea/libraries/Maven__com_baomidou_mybatis_plus_annotation_3_0_5.xml

@@ -1,13 +1,13 @@
 <component name="libraryTable">
-  <library name="Maven: com.baomidou:mybatis-plus-annotation:3.0.5">
+  <library name="Maven: com.baomidou:mybatis-plus-annotation:3.5.2">
     <CLASSES>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-annotation/3.0.5/mybatis-plus-annotation-3.0.5.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-annotation/3.5.2/mybatis-plus-annotation-3.5.2.jar!/" />
     </CLASSES>
     <JAVADOC>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-annotation/3.0.5/mybatis-plus-annotation-3.0.5-javadoc.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-annotation/3.5.2/mybatis-plus-annotation-3.5.2-javadoc.jar!/" />
     </JAVADOC>
     <SOURCES>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-annotation/3.0.5/mybatis-plus-annotation-3.0.5-sources.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-annotation/3.5.2/mybatis-plus-annotation-3.5.2-sources.jar!/" />
     </SOURCES>
   </library>
 </component>

+ 4 - 4
.idea/libraries/Maven__com_baomidou_mybatis_plus_boot_starter_3_0_5.xml

@@ -1,13 +1,13 @@
 <component name="libraryTable">
-  <library name="Maven: com.baomidou:mybatis-plus-boot-starter:3.0.5">
+  <library name="Maven: com.baomidou:mybatis-plus-boot-starter:3.5.2">
     <CLASSES>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-boot-starter/3.0.5/mybatis-plus-boot-starter-3.0.5.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-boot-starter/3.5.2/mybatis-plus-boot-starter-3.5.2.jar!/" />
     </CLASSES>
     <JAVADOC>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-boot-starter/3.0.5/mybatis-plus-boot-starter-3.0.5-javadoc.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-boot-starter/3.5.2/mybatis-plus-boot-starter-3.5.2-javadoc.jar!/" />
     </JAVADOC>
     <SOURCES>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-boot-starter/3.0.5/mybatis-plus-boot-starter-3.0.5-sources.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-boot-starter/3.5.2/mybatis-plus-boot-starter-3.5.2-sources.jar!/" />
     </SOURCES>
   </library>
 </component>

+ 4 - 4
.idea/libraries/Maven__com_baomidou_mybatis_plus_core_3_0_5.xml

@@ -1,13 +1,13 @@
 <component name="libraryTable">
-  <library name="Maven: com.baomidou:mybatis-plus-core:3.0.5">
+  <library name="Maven: com.baomidou:mybatis-plus-core:3.5.2">
     <CLASSES>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-core/3.0.5/mybatis-plus-core-3.0.5.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-core/3.5.2/mybatis-plus-core-3.5.2.jar!/" />
     </CLASSES>
     <JAVADOC>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-core/3.0.5/mybatis-plus-core-3.0.5-javadoc.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-core/3.5.2/mybatis-plus-core-3.5.2-javadoc.jar!/" />
     </JAVADOC>
     <SOURCES>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-core/3.0.5/mybatis-plus-core-3.0.5-sources.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-core/3.5.2/mybatis-plus-core-3.5.2-sources.jar!/" />
     </SOURCES>
   </library>
 </component>

+ 0 - 13
.idea/libraries/Maven__com_baomidou_mybatis_plus_extension_3_0_5.xml

@@ -1,13 +0,0 @@
-<component name="libraryTable">
-  <library name="Maven: com.baomidou:mybatis-plus-extension:3.0.5">
-    <CLASSES>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-extension/3.0.5/mybatis-plus-extension-3.0.5.jar!/" />
-    </CLASSES>
-    <JAVADOC>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-extension/3.0.5/mybatis-plus-extension-3.0.5-javadoc.jar!/" />
-    </JAVADOC>
-    <SOURCES>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-extension/3.0.5/mybatis-plus-extension-3.0.5-sources.jar!/" />
-    </SOURCES>
-  </library>
-</component>

+ 4 - 4
.idea/libraries/Maven__com_baomidou_mybatis_plus_generator_3_0_5.xml

@@ -1,13 +1,13 @@
 <component name="libraryTable">
-  <library name="Maven: com.baomidou:mybatis-plus-generator:3.0.5">
+  <library name="Maven: com.baomidou:mybatis-plus-extension:3.5.2">
     <CLASSES>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-generator/3.0.5/mybatis-plus-generator-3.0.5.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-extension/3.5.2/mybatis-plus-extension-3.5.2.jar!/" />
     </CLASSES>
     <JAVADOC>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-generator/3.0.5/mybatis-plus-generator-3.0.5-javadoc.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-extension/3.5.2/mybatis-plus-extension-3.5.2-javadoc.jar!/" />
     </JAVADOC>
     <SOURCES>
-      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-generator/3.0.5/mybatis-plus-generator-3.0.5-sources.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/baomidou/mybatis-plus-extension/3.5.2/mybatis-plus-extension-3.5.2-sources.jar!/" />
     </SOURCES>
   </library>
 </component>

+ 4 - 4
.idea/libraries/Maven__com_github_jsqlparser_jsqlparser_1_2.xml

@@ -1,13 +1,13 @@
 <component name="libraryTable">
-  <library name="Maven: com.github.jsqlparser:jsqlparser:1.2">
+  <library name="Maven: com.github.jsqlparser:jsqlparser:4.4">
     <CLASSES>
-      <root url="jar://D:/soft/maven-repository/com/github/jsqlparser/jsqlparser/1.2/jsqlparser-1.2.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/github/jsqlparser/jsqlparser/4.4/jsqlparser-4.4.jar!/" />
     </CLASSES>
     <JAVADOC>
-      <root url="jar://D:/soft/maven-repository/com/github/jsqlparser/jsqlparser/1.2/jsqlparser-1.2-javadoc.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/github/jsqlparser/jsqlparser/4.4/jsqlparser-4.4-javadoc.jar!/" />
     </JAVADOC>
     <SOURCES>
-      <root url="jar://D:/soft/maven-repository/com/github/jsqlparser/jsqlparser/1.2/jsqlparser-1.2-sources.jar!/" />
+      <root url="jar://D:/soft/maven-repository/com/github/jsqlparser/jsqlparser/4.4/jsqlparser-4.4-sources.jar!/" />
     </SOURCES>
   </library>
 </component>

+ 13 - 0
.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_4_10.xml

@@ -0,0 +1,13 @@
+<component name="libraryTable">
+  <library name="Maven: org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.10">
+    <CLASSES>
+      <root url="jar://D:/soft/maven-repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4.10/kotlin-stdlib-jdk7-1.4.10.jar!/" />
+    </CLASSES>
+    <JAVADOC>
+      <root url="jar://D:/soft/maven-repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4.10/kotlin-stdlib-jdk7-1.4.10-javadoc.jar!/" />
+    </JAVADOC>
+    <SOURCES>
+      <root url="jar://D:/soft/maven-repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4.10/kotlin-stdlib-jdk7-1.4.10-sources.jar!/" />
+    </SOURCES>
+  </library>
+</component>

+ 13 - 0
.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_jdk8_1_4_10.xml

@@ -0,0 +1,13 @@
+<component name="libraryTable">
+  <library name="Maven: org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10">
+    <CLASSES>
+      <root url="jar://D:/soft/maven-repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.10/kotlin-stdlib-jdk8-1.4.10.jar!/" />
+    </CLASSES>
+    <JAVADOC>
+      <root url="jar://D:/soft/maven-repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.10/kotlin-stdlib-jdk8-1.4.10-javadoc.jar!/" />
+    </JAVADOC>
+    <SOURCES>
+      <root url="jar://D:/soft/maven-repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.10/kotlin-stdlib-jdk8-1.4.10-sources.jar!/" />
+    </SOURCES>
+  </library>
+</component>

+ 4 - 4
.idea/libraries/Maven__org_mybatis_mybatis_3_4_6.xml

@@ -1,13 +1,13 @@
 <component name="libraryTable">
-  <library name="Maven: org.mybatis:mybatis:3.4.6">
+  <library name="Maven: org.mybatis:mybatis:3.5.10">
     <CLASSES>
-      <root url="jar://D:/soft/maven-repository/org/mybatis/mybatis/3.4.6/mybatis-3.4.6.jar!/" />
+      <root url="jar://D:/soft/maven-repository/org/mybatis/mybatis/3.5.10/mybatis-3.5.10.jar!/" />
     </CLASSES>
     <JAVADOC>
-      <root url="jar://D:/soft/maven-repository/org/mybatis/mybatis/3.4.6/mybatis-3.4.6-javadoc.jar!/" />
+      <root url="jar://D:/soft/maven-repository/org/mybatis/mybatis/3.5.10/mybatis-3.5.10-javadoc.jar!/" />
     </JAVADOC>
     <SOURCES>
-      <root url="jar://D:/soft/maven-repository/org/mybatis/mybatis/3.4.6/mybatis-3.4.6-sources.jar!/" />
+      <root url="jar://D:/soft/maven-repository/org/mybatis/mybatis/3.5.10/mybatis-3.5.10-sources.jar!/" />
     </SOURCES>
   </library>
 </component>

+ 4 - 4
.idea/libraries/Maven__org_mybatis_mybatis_spring_1_3_2.xml

@@ -1,13 +1,13 @@
 <component name="libraryTable">
-  <library name="Maven: org.mybatis:mybatis-spring:1.3.2">
+  <library name="Maven: org.mybatis:mybatis-spring:2.0.7">
     <CLASSES>
-      <root url="jar://D:/soft/maven-repository/org/mybatis/mybatis-spring/1.3.2/mybatis-spring-1.3.2.jar!/" />
+      <root url="jar://D:/soft/maven-repository/org/mybatis/mybatis-spring/2.0.7/mybatis-spring-2.0.7.jar!/" />
     </CLASSES>
     <JAVADOC>
-      <root url="jar://D:/soft/maven-repository/org/mybatis/mybatis-spring/1.3.2/mybatis-spring-1.3.2-javadoc.jar!/" />
+      <root url="jar://D:/soft/maven-repository/org/mybatis/mybatis-spring/2.0.7/mybatis-spring-2.0.7-javadoc.jar!/" />
     </JAVADOC>
     <SOURCES>
-      <root url="jar://D:/soft/maven-repository/org/mybatis/mybatis-spring/1.3.2/mybatis-spring-1.3.2-sources.jar!/" />
+      <root url="jar://D:/soft/maven-repository/org/mybatis/mybatis-spring/2.0.7/mybatis-spring-2.0.7-sources.jar!/" />
     </SOURCES>
   </library>
 </component>

+ 45 - 14
.idea/workspace.xml

@@ -4,13 +4,31 @@
     <option name="autoReloadType" value="ALL" />
   </component>
   <component name="ChangeListManager">
-    <list default="true" id="3ff4794b-6964-480b-bcb6-ead103f7d762" name="Default Changelist" comment="add:添加腾讯云短信发送服务">
+    <list default="true" id="3ff4794b-6964-480b-bcb6-ead103f7d762" name="Default Changelist" comment="发送短信信息测试">
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_4_10.xml" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_jetbrains_kotlin_kotlin_stdlib_jdk8_1_4_10.xml" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/src/main/java/com/video/api/LogInfoControllerAPI.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/src/main/java/com/video/controller/LogInfoController.java" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/src/main/java/common/result/Code.java" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/.idea/libraries/Maven__com_baomidou_mybatis_plus_3_0_5.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_baomidou_mybatis_plus_3_5_2.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/.idea/libraries/Maven__com_baomidou_mybatis_plus_annotation_3_0_5.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_baomidou_mybatis_plus_annotation_3_5_2.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/.idea/libraries/Maven__com_baomidou_mybatis_plus_boot_starter_3_0_5.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_baomidou_mybatis_plus_boot_starter_3_5_2.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/.idea/libraries/Maven__com_baomidou_mybatis_plus_core_3_0_5.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_baomidou_mybatis_plus_core_3_5_2.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/.idea/libraries/Maven__com_baomidou_mybatis_plus_extension_3_0_5.xml" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/.idea/libraries/Maven__com_baomidou_mybatis_plus_generator_3_0_5.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_baomidou_mybatis_plus_extension_3_5_2.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/.idea/libraries/Maven__com_github_jsqlparser_jsqlparser_1_2.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_github_jsqlparser_jsqlparser_4_4.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/.idea/libraries/Maven__org_mybatis_mybatis_3_4_6.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_mybatis_mybatis_3_5_10.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/.idea/libraries/Maven__org_mybatis_mybatis_spring_1_3_2.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_mybatis_mybatis_spring_2_0_7.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/share_video.iml" beforeDir="false" afterPath="$PROJECT_DIR$/share_video.iml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/src/main/java/com/video/api/SendControllerAPI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/video/api/SendControllerAPI.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/src/main/java/com/video/config/smsConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/video/config/smsConfig.java" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/src/main/java/com/video/controller/SendController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/video/controller/SendController.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/src/main/java/common/utils/SendSms.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/common/utils/SendSms.java" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/target/classes/com/video/config/smsConfig.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/video/config/smsConfig.class" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/video/model/pojo/SystemUser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/video/model/pojo/SystemUser.java" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/video/model/utils/CommonResult.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/video/model/utils/CommonResult.java" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/video/services/SystemUserService.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/video/services/SystemUserService.java" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/video/services/impl/SystemUserServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/video/services/impl/SystemUserServiceImpl.java" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/src/main/java/common/result/ResponseStatusEnum.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/common/result/ResponseStatusEnum.java" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -23,8 +41,8 @@
   <component name="FileTemplateManagerImpl">
     <option name="RECENT_TEMPLATES">
       <list>
-        <option value="Interface" />
         <option value="AnnotationType" />
+        <option value="Interface" />
         <option value="Class" />
       </list>
     </option>
@@ -348,16 +366,16 @@
       <recent name="D:\Bingo\Desktop\视频分享\src\main\resources" />
       <recent name="D:\Bingo\Desktop\视频分享\src\main\java\com\video\services\core" />
     </key>
+    <key name="MoveFile.RECENT_KEYS">
+      <recent name="D:\Bingo\Desktop\工作内容\视频系统\视频分享\src\main\resources\mapper\video" />
+      <recent name="D:\Bingo\Desktop\工作内容\视频系统\视频分享\src\test\java\com\videos" />
+    </key>
     <key name="CopyClassDialog.RECENTS_KEY">
+      <recent name="common.result" />
       <recent name="com.video.model.vo" />
       <recent name="com.video.api" />
       <recent name="com.video.services.annotation" />
       <recent name="com.video.services.core" />
-      <recent name="com.video.config" />
-    </key>
-    <key name="MoveFile.RECENT_KEYS">
-      <recent name="D:\Bingo\Desktop\工作内容\视频系统\视频分享\src\main\resources\mapper\video" />
-      <recent name="D:\Bingo\Desktop\工作内容\视频系统\视频分享\src\test\java\com\videos" />
     </key>
   </component>
   <component name="RunManager" selected="Spring Boot.MybatisPlusApplication">
@@ -440,7 +458,7 @@
       <workItem from="1681888841732" duration="1218000" />
       <workItem from="1681950116855" duration="4933000" />
       <workItem from="1681955450600" duration="1193000" />
-      <workItem from="1681956657556" duration="11352000" />
+      <workItem from="1681956657556" duration="17442000" />
     </task>
     <task id="LOCAL-00001" summary="add:添加腾讯云短信发送服务">
       <created>1681961682780</created>
@@ -449,7 +467,14 @@
       <option name="project" value="LOCAL" />
       <updated>1681961682780</updated>
     </task>
-    <option name="localTasksCounter" value="2" />
+    <task id="LOCAL-00002" summary="发送短信信息测试">
+      <created>1681973969534</created>
+      <option name="number" value="00002" />
+      <option name="presentableId" value="LOCAL-00002" />
+      <option name="project" value="LOCAL" />
+      <updated>1681973969534</updated>
+    </task>
+    <option name="localTasksCounter" value="3" />
     <servers />
   </component>
   <component name="TimeTrackingManager">
@@ -523,7 +548,8 @@
   </component>
   <component name="VcsManagerConfiguration">
     <MESSAGE value="add:添加腾讯云短信发送服务" />
-    <option name="LAST_COMMIT_MESSAGE" value="add:添加腾讯云短信发送服务" />
+    <MESSAGE value="发送短信信息测试" />
+    <option name="LAST_COMMIT_MESSAGE" value="发送短信信息测试" />
   </component>
   <component name="XDebuggerManager">
     <breakpoint-manager>
@@ -545,9 +571,14 @@
         </line-breakpoint>
         <line-breakpoint enabled="true" type="java-line">
           <url>file://$PROJECT_DIR$/src/main/java/com/video/controller/SendController.java</url>
-          <line>16</line>
+          <line>20</line>
           <option name="timeStamp" value="19" />
         </line-breakpoint>
+        <line-breakpoint enabled="true" type="java-line">
+          <url>file://$PROJECT_DIR$/src/main/java/common/result/ResponseStatusEnum.java</url>
+          <line>55</line>
+          <option name="timeStamp" value="20" />
+        </line-breakpoint>
       </breakpoints>
     </breakpoint-manager>
     <watches-manager>

+ 1 - 1
pom.xml

@@ -61,7 +61,7 @@
         <dependency>
             <groupId>com.baomidou</groupId>
             <artifactId>mybatis-plus-boot-starter</artifactId>
-            <version>3.0.5</version>
+            <version>3.5.2</version>
         </dependency>
 
         <dependency>

+ 10 - 9
share_video.iml

@@ -60,15 +60,16 @@
     <orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.7" level="project" />
     <orderEntry type="library" name="Maven: mysql:mysql-connector-java:8.0.22" level="project" />
     <orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.16" level="project" />
-    <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-boot-starter:3.0.5" level="project" />
-    <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus:3.0.5" level="project" />
-    <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-extension:3.0.5" level="project" />
-    <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.0.5" level="project" />
-    <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-annotation:3.0.5" level="project" />
-    <orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:1.2" level="project" />
-    <orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:1.3.2" level="project" />
-    <orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.6" level="project" />
-    <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-generator:3.0.5" level="project" />
+    <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-boot-starter:3.5.2" level="project" />
+    <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus:3.5.2" level="project" />
+    <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-extension:3.5.2" level="project" />
+    <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.5.2" level="project" />
+    <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-annotation:3.5.2" level="project" />
+    <orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:4.4" level="project" />
+    <orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.10" level="project" />
+    <orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.7" level="project" />
+    <orderEntry type="library" name="Maven: org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10" level="project" />
+    <orderEntry type="library" name="Maven: org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.10" level="project" />
     <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.4.0" level="project" />
     <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.4.0" level="project" />
     <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.4.5" level="project" />

+ 7 - 0
src/main/java/com/video/api/LogInfoControllerAPI.java

@@ -0,0 +1,7 @@
+package com.video.api;
+
+import com.video.model.utils.CommonResult;
+
+public interface LogInfoControllerAPI {
+    CommonResult verifyPhone(String phone);
+}

+ 3 - 4
src/main/java/com/video/api/SendControllerAPI.java

@@ -5,10 +5,9 @@ import common.utils.SendSms;
 import io.swagger.annotations.Api;
 import org.springframework.web.bind.annotation.*;
 
-@RequestMapping("/send/sms")
-@Api(tags = {"SendController"},value = "短信发送接口")
+
 public interface SendControllerAPI {
-    @PostMapping("/sendCodeAgain")
-    public SendStatus[] sendCodeAgain(@RequestBody String phone);
+
+     SendStatus[] sendCodeAgain(String phone);
 
 }

+ 29 - 0
src/main/java/com/video/controller/LogInfoController.java

@@ -0,0 +1,29 @@
+package com.video.controller;
+
+import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
+import com.video.annotation.PassToken;
+import com.video.api.LogInfoControllerAPI;
+import com.video.model.pojo.SystemUser;
+import com.video.model.utils.CommonResult;
+import com.video.services.impl.SystemUserServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@RequestMapping("/api/logInfo")
+public class LogInfoController implements LogInfoControllerAPI {
+
+
+    @Autowired
+    SystemUserServiceImpl systemUserService;
+
+    @Override
+    @PassToken
+    @PostMapping("/verify")
+    public CommonResult verifyPhone(@RequestBody String phone) {
+        return systemUserService.verifyPhone(phone);
+    }
+}

+ 5 - 1
src/main/java/com/video/controller/SendController.java

@@ -4,15 +4,19 @@ import com.tencentcloudapi.sms.v20210111.models.SendStatus;
 import com.video.annotation.PassToken;
 import com.video.api.SendControllerAPI;
 import common.utils.SendSms;
+import io.swagger.annotations.Api;
 import org.springframework.web.bind.annotation.*;
 
 @RestController
+@RequestMapping("/send/sms")
+@Api(tags = {"SendController"},value = "短信发送接口")
 public class SendController implements SendControllerAPI {
 
 
     @Override
     @PassToken
-    public SendStatus[] sendCodeAgain(String phone){
+    @PostMapping("/sendCodeAgain")
+    public SendStatus[] sendCodeAgain(@RequestBody String phone){
 
         phone="+86"+phone;
         String[] phones ={phone};

+ 2 - 1
src/main/java/com/video/model/pojo/SystemUser.java

@@ -69,5 +69,6 @@ public class SystemUser implements Serializable {
     @TableLogic
     private Long deleted;
 
-
+    @ApiModelProperty(value = "性别")
+    private char gender;
 }

+ 29 - 2
src/main/java/com/video/model/utils/CommonResult.java

@@ -1,6 +1,9 @@
 package com.video.model.utils;
 
+import com.fasterxml.jackson.annotation.JsonInclude;
+import common.result.Code;
 import common.result.ResponseStatusEnum;
+import lombok.Data;
 
 import java.io.Serializable;
 import java.util.Map;
@@ -11,8 +14,27 @@ import java.util.Map;
  * @Date: 2021-04-29 12:10
  * @Version: V1.0
  **/
+
+@JsonInclude(JsonInclude.Include.NON_NULL)
 public class CommonResult<T> extends BaseResult implements Serializable {
 
+
+    private Integer status;
+    // 调用是否成功
+    private Boolean success;
+    // 响应消息,可以为成功或者失败的消息
+    private String msg;
+
+    private T data;
+
+    public CommonResult(Code code, T data) {
+        this.status = code.getStatus();
+        this.msg = code.getMsg();
+        this.success = code.getSuccess();
+        this.data = data;
+    }
+
+
     private static final long serialVersionUID = 3616484754899974346L;
 
     public static CommonResult ok() {
@@ -31,7 +53,9 @@ public class CommonResult<T> extends BaseResult implements Serializable {
         return baseCreate(code, msg, false);
     }
 
-    public CommonResult(){}
+
+    public CommonResult() {
+    }
 
     private static <T> CommonResult<T> baseCreate(String code, String msg, boolean success) {
         CommonResult result = new CommonResult();
@@ -48,12 +72,13 @@ public class CommonResult<T> extends BaseResult implements Serializable {
         this.setData(data);
     }
 
-    public static CommonResult exception(ResponseStatusEnum responseStatus) {
+    public static CommonResult resultValue(ResponseStatusEnum responseStatus) {
         return new CommonResult(responseStatus);
     }
 
     /**
      * 错误返回,map中包含了多条错误信息,可以用于表单验证,把错误统一的全部返回出去
+     *
      * @param map
      * @return
      */
@@ -70,6 +95,7 @@ public class CommonResult<T> extends BaseResult implements Serializable {
 
     /**
      * 错误返回,直接返回错误的消息
+     *
      * @param msg
      * @return
      */
@@ -82,6 +108,7 @@ public class CommonResult<T> extends BaseResult implements Serializable {
         return this;
     }
 
+    @Override
     public T getData() {
         return (T) super.getData();
     }

+ 3 - 0
src/main/java/com/video/services/SystemUserService.java

@@ -2,6 +2,7 @@ package com.video.services;
 
 import com.baomidou.mybatisplus.extension.service.IService;
 import com.video.model.pojo.SystemUser;
+import com.video.model.utils.CommonResult;
 
 /**
  * <p>
@@ -13,4 +14,6 @@ import com.video.model.pojo.SystemUser;
  */
 public interface SystemUserService extends IService<SystemUser> {
 
+    CommonResult verifyPhone(String phone);
+
 }

+ 25 - 0
src/main/java/com/video/services/impl/SystemUserServiceImpl.java

@@ -1,9 +1,18 @@
 package com.video.services.impl;
 
+import com.baomidou.mybatisplus.core.conditions.Wrapper;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
+import com.tencentcloudapi.sms.v20210111.models.SendStatus;
 import com.video.mapper.SystemUserMapper;
 import com.video.model.pojo.SystemUser;
+import com.video.model.utils.CommonResult;
 import com.video.services.SystemUserService;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import common.result.ResponseStatusEnum;
+import common.utils.SendSms;
 import org.springframework.stereotype.Service;
 
 /**
@@ -17,4 +26,20 @@ import org.springframework.stereotype.Service;
 @Service
 public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemUser> implements SystemUserService {
 
+    @Override
+    public CommonResult verifyPhone(String phone) {
+        if (ObjectUtils.isEmpty(phone)||11!=phone.length()) {
+            return CommonResult.resultValue(ResponseStatusEnum.SEND_PARAMS);
+        }
+//        LambdaQueryWrapper<SystemUser> wrapper=new LambdaQueryWrapper<>();
+//        wrapper.eq(SystemUser::getPhoneNumber,phone);
+        SystemUser one = this.getOne(Wrappers.<SystemUser>lambdaQuery().eq(SystemUser::getPhoneNumber, phone));
+        if (ObjectUtils.isEmpty(one)) {
+            return CommonResult.resultValue(ResponseStatusEnum.SYSTEM_PHONE_ERROR);
+        }
+        phone="+86"+phone;
+        String[] phones ={phone};
+        SendStatus[] ret = SendSms.sendSms(phones);
+        return CommonResult.ok();
+    }
 }

+ 7 - 0
src/main/java/common/result/Code.java

@@ -0,0 +1,7 @@
+package common.result;
+
+public interface Code {
+    Integer getStatus();
+    Boolean getSuccess();
+    String getMsg();
+}

+ 20 - 2
src/main/java/common/result/ResponseStatusEnum.java

@@ -5,7 +5,7 @@ package common.result;
  * 本枚举类中包含了很多的不同的状态码供使用,可以自定义
  * 便于更优雅的对状态码进行管理,一目了然
  */
-public enum ResponseStatusEnum {
+public enum ResponseStatusEnum implements Code{
 
     EXISTS(999,false,"已存在"),
     SUCCESS(200, true, "操作成功!"),
@@ -30,7 +30,8 @@ public enum ResponseStatusEnum {
     SYSTEM_ERROR_ZUUL(552, false, "请求系统过于繁忙,请稍后再试!"),
     SYSTEM_REQUEST_METHOD_ERROR(553, false, "请求类型错误"),
     SYSTEM_MYSQL_TIMEOUT_ERROR(554, false, "Mysql连接超时"),
-    SYSTEM_MONGO_TIMEOUT_ERROR(555, false, "Mongo连接超时");
+    SYSTEM_MONGO_TIMEOUT_ERROR(555, false, "Mongo连接超时"),
+    SYSTEM_PHONE_ERROR(556,false,"手机号格式错误");
 
     // 响应业务状态
     private Integer status;
@@ -54,4 +55,21 @@ public enum ResponseStatusEnum {
     public String msg() {
         return msg;
     }
+
+    @Override
+    public Integer getStatus() {
+        return status;
+    }
+
+    @Override
+    public Boolean getSuccess() {
+        return success;
+    }
+
+    @Override
+    public String getMsg() {
+        return msg;
+    }
+
+
 }