瀏覽代碼

删除无用代码

夏文涛 3 年之前
父節點
當前提交
041156d878
共有 100 個文件被更改,包括 1473 次插入2043 次删除
  1. 1 0
      .idea/.name
  2. 3 2
      .idea/encodings.xml
  3. 0 20
      .idea/jarRepositories.xml
  4. 441 1
      .idea/misc.xml
  5. 27 27
      .idea/uiDesigner.xml
  6. 892 163
      .idea/workspace.xml
  7. 1 1
      src/main/java/com/video/AutoCode.java
  8. 1 9
      src/main/java/com/video/MybatisPlusApplication.java
  9. 1 1
      src/main/java/com/video/annotation/ControllerIsShow.java
  10. 1 1
      src/main/java/com/video/annotation/PassToken.java
  11. 1 1
      src/main/java/com/video/annotation/UserLoginCheck.java
  12. 4 6
      src/main/java/com/video/aop/LoginCheckAspect.java
  13. 2 6
      src/main/java/com/video/api/ExcelControllerAPI.java
  14. 2 3
      src/main/java/com/video/api/LogInfoControllerAPI.java
  15. 1 4
      src/main/java/com/video/api/SendControllerAPI.java
  16. 2 6
      src/main/java/com/video/api/SmsCodeControllerAPI.java
  17. 5 5
      src/main/java/com/video/api/SystemMenuControllerAPI.java
  18. 2 3
      src/main/java/com/video/config/MyBatisPlusConfig.java
  19. 1 4
      src/main/java/com/video/config/MySecurity.java
  20. 1 4
      src/main/java/com/video/config/smsConfig.java
  21. 5 6
      src/main/java/com/video/controller/ExcelController.java
  22. 6 11
      src/main/java/com/video/controller/LogInfoController.java
  23. 2 5
      src/main/java/com/video/controller/SendController.java
  24. 6 8
      src/main/java/com/video/controller/SmsCodeController.java
  25. 8 8
      src/main/java/com/video/controller/SystemMenuController.java
  26. 1 1
      src/main/java/com/video/core/CORSConfiguration.java
  27. 2 3
      src/main/java/com/video/core/JwtAuthenticationInterceptor.java
  28. 1 1
      src/main/java/com/video/core/JwtlnterceptorConfig.java
  29. 2 2
      src/main/java/com/video/core/SwaggerConfiguration.java
  30. 1 1
      src/main/java/com/video/handle/NonStaticResourceHttpRequestHandler.java
  31. 1 1
      src/main/java/com/video/handler/MyMetaObjectHandler.java
  32. 2 2
      src/main/java/com/video/mapper/SmsCodeMapper.java
  33. 3 3
      src/main/java/com/video/mapper/SystemMenuMapper.java
  34. 2 2
      src/main/java/com/video/mapper/SystemUserMapper.java
  35. 1 1
      src/main/java/com/video/model/pojo/SmsCode.java
  36. 1 1
      src/main/java/com/video/model/pojo/SystemMenu.java
  37. 1 1
      src/main/java/com/video/model/pojo/SystemRole.java
  38. 1 1
      src/main/java/com/video/model/pojo/SystemUser.java
  39. 1 1
      src/main/java/com/video/model/utils/BaseResult.java
  40. 1 2
      src/main/java/com/video/model/utils/CommonResult.java
  41. 1 2
      src/main/java/com/video/model/vo/LoginVO.java
  42. 1 1
      src/main/java/com/video/model/vo/SystemMenuTreeVo.java
  43. 1 1
      src/main/java/com/video/model/vo/SystemMenuVo.java
  44. 3 3
      src/main/java/com/video/services/SmsCodeService.java
  45. 4 4
      src/main/java/com/video/services/SystemMenuService.java
  46. 3 3
      src/main/java/com/video/services/SystemUserService.java
  47. 9 13
      src/main/java/com/video/services/impl/SmsCodeServiceImpl.java
  48. 6 6
      src/main/java/com/video/services/impl/SystemMenuServiceImpl.java
  49. 7 11
      src/main/java/com/video/services/impl/SystemUserServiceImpl.java
  50. 0 58
      src/main/java/com/video/api/PlaybackRecordControllerAPI.java
  51. 0 18
      src/main/java/com/video/api/SystemAuthorityControllerAPI.java
  52. 0 15
      src/main/java/com/video/api/SystemRoleControllerAPI.java
  53. 0 15
      src/main/java/com/video/api/SystemUserControllerAPI.java
  54. 0 15
      src/main/java/com/video/api/VideoCategoryControllerAPI.java
  55. 0 22
      src/main/java/com/video/api/VideoControllerAPI.java
  56. 0 9
      src/main/java/com/video/api/VideoElseControllerAPI.java
  57. 0 15
      src/main/java/com/video/api/VideoPlayControllerAPI.java
  58. 0 15
      src/main/java/com/video/api/VideoShareControllerAPI.java
  59. 0 314
      src/main/java/com/video/controller/PlaybackRecordController.java
  60. 0 26
      src/main/java/com/video/controller/SystemAuthorityController.java
  61. 0 21
      src/main/java/com/video/controller/SystemRoleController.java
  62. 0 21
      src/main/java/com/video/controller/SystemUserController.java
  63. 0 21
      src/main/java/com/video/controller/VideoCategoryController.java
  64. 0 37
      src/main/java/com/video/controller/VideoController.java
  65. 0 21
      src/main/java/com/video/controller/VideoElseController.java
  66. 0 21
      src/main/java/com/video/controller/VideoPlayController.java
  67. 0 21
      src/main/java/com/video/controller/VideoShareController.java
  68. 0 16
      src/main/java/com/video/mapper/SystemAuthorityMapper.java
  69. 0 16
      src/main/java/com/video/mapper/SystemRoleMapper.java
  70. 0 16
      src/main/java/com/video/mapper/VideoCategoryMapper.java
  71. 0 16
      src/main/java/com/video/mapper/VideoElseMapper.java
  72. 0 16
      src/main/java/com/video/mapper/VideoMapper.java
  73. 0 16
      src/main/java/com/video/mapper/VideoPlayMapper.java
  74. 0 16
      src/main/java/com/video/mapper/VideoShareMapper.java
  75. 0 72
      src/main/java/com/video/model/pojo/SystemAuthority.java
  76. 0 72
      src/main/java/com/video/model/pojo/Video.java
  77. 0 60
      src/main/java/com/video/model/pojo/VideoCategory.java
  78. 0 63
      src/main/java/com/video/model/pojo/VideoElse.java
  79. 0 63
      src/main/java/com/video/model/pojo/VideoPlay.java
  80. 0 63
      src/main/java/com/video/model/pojo/VideoShare.java
  81. 0 26
      src/main/java/com/video/model/pojo/resultData.java
  82. 0 41
      src/main/java/com/video/model/vo/VideoVo.java
  83. 0 18
      src/main/java/com/video/services/PlaybackRecordService.java
  84. 0 16
      src/main/java/com/video/services/SystemAuthorityService.java
  85. 0 16
      src/main/java/com/video/services/SystemRoleService.java
  86. 0 16
      src/main/java/com/video/services/VideoCategoryService.java
  87. 0 16
      src/main/java/com/video/services/VideoElseService.java
  88. 0 16
      src/main/java/com/video/services/VideoPlayService.java
  89. 0 22
      src/main/java/com/video/services/VideoService.java
  90. 0 16
      src/main/java/com/video/services/VideoShareService.java
  91. 0 40
      src/main/java/com/video/services/impl/PlaybackRecordImpl.java
  92. 0 20
      src/main/java/com/video/services/impl/SystemAuthorityServiceImpl.java
  93. 0 20
      src/main/java/com/video/services/impl/SystemRoleServiceImpl.java
  94. 0 20
      src/main/java/com/video/services/impl/VideoCategoryServiceImpl.java
  95. 0 20
      src/main/java/com/video/services/impl/VideoElseServiceImpl.java
  96. 0 20
      src/main/java/com/video/services/impl/VideoPlayServiceImpl.java
  97. 0 111
      src/main/java/com/video/services/impl/VideoServiceImpl.java
  98. 0 20
      src/main/java/com/video/services/impl/VideoShareServiceImpl.java
  99. 1 7
      src/main/java/common/exception/EmsExceptionHandler.java
  100. 0 0
      src/main/java/common/utils/EncryptionUtil.java

+ 1 - 0
.idea/.name

@@ -0,0 +1 @@
+mybatis_plus

+ 3 - 2
.idea/encodings.xml

@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
-  <component name="Encoding">
-    <file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
+  <component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
+    <file url="file://$PROJECT_DIR$" charset="UTF-8" />
+    <file url="PROJECT" charset="UTF-8" />
   </component>
 </project>

+ 0 - 20
.idea/jarRepositories.xml

@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="RemoteRepositoriesConfiguration">
-    <remote-repository>
-      <option name="id" value="central" />
-      <option name="name" value="Central Repository" />
-      <option name="url" value="http://maven.aliyun.com/nexus/content/repositories/central/" />
-    </remote-repository>
-    <remote-repository>
-      <option name="id" value="central" />
-      <option name="name" value="Maven Central repository" />
-      <option name="url" value="https://repo1.maven.org/maven2" />
-    </remote-repository>
-    <remote-repository>
-      <option name="id" value="jboss.community" />
-      <option name="name" value="JBoss Community repository" />
-      <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
-    </remote-repository>
-  </component>
-</project>

+ 441 - 1
.idea/misc.xml

@@ -8,5 +8,445 @@
       </list>
     </option>
   </component>
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
+  <component name="ProjectInspectionProfilesVisibleTreeState">
+    <entry key="Project Default">
+      <profile-state>
+        <expanded-state>
+          <State />
+          <State>
+            <id>Abstraction issuesJava</id>
+          </State>
+          <State>
+            <id>AccessibilityHTML</id>
+          </State>
+          <State>
+            <id>AccessibilityLintAndroid</id>
+          </State>
+          <State>
+            <id>Android</id>
+          </State>
+          <State>
+            <id>Angular</id>
+          </State>
+          <State>
+            <id>Application Servers</id>
+          </State>
+          <State>
+            <id>Application SizePerformanceLintAndroid</id>
+          </State>
+          <State>
+            <id>Assignment issuesJava</id>
+          </State>
+          <State>
+            <id>Bean Validation</id>
+          </State>
+          <State>
+            <id>Bidirectional TextInternationalizationLintAndroid</id>
+          </State>
+          <State>
+            <id>Bitwise operation issuesJava</id>
+          </State>
+          <State>
+            <id>Bitwise operation issuesJavaScript</id>
+          </State>
+          <State>
+            <id>CDI (Contexts and Dependency Injection)</id>
+          </State>
+          <State>
+            <id>CSS</id>
+          </State>
+          <State>
+            <id>Chrome OSCorrectnessLintAndroid</id>
+          </State>
+          <State>
+            <id>Class metricsJava</id>
+          </State>
+          <State>
+            <id>Class structureJava</id>
+          </State>
+          <State>
+            <id>Cloning issuesJava</id>
+          </State>
+          <State>
+            <id>Code maturityJava</id>
+          </State>
+          <State>
+            <id>Code style issuesJava</id>
+          </State>
+          <State>
+            <id>Code style issuesJavaScript</id>
+          </State>
+          <State>
+            <id>CodeSpring CoreSpring</id>
+          </State>
+          <State>
+            <id>CoffeeScript</id>
+          </State>
+          <State>
+            <id>Compiler issuesJava</id>
+          </State>
+          <State>
+            <id>Control flow issuesGroovy</id>
+          </State>
+          <State>
+            <id>Control flow issuesJava</id>
+          </State>
+          <State>
+            <id>Control flow issuesJavaScript</id>
+          </State>
+          <State>
+            <id>CorrectnessLintAndroid</id>
+          </State>
+          <State>
+            <id>Cucumber</id>
+          </State>
+          <State>
+            <id>Declaration redundancyJava</id>
+          </State>
+          <State>
+            <id>DeclarationGroovy</id>
+          </State>
+          <State>
+            <id>Dependency issuesJava</id>
+          </State>
+          <State>
+            <id>Dockerfile</id>
+          </State>
+          <State>
+            <id>ECMAScript 6 migration aidsJavaScript</id>
+          </State>
+          <State>
+            <id>EditorConfig</id>
+          </State>
+          <State>
+            <id>EncapsulationJava</id>
+          </State>
+          <State>
+            <id>Error handlingGroovy</id>
+          </State>
+          <State>
+            <id>Error handlingJava</id>
+          </State>
+          <State>
+            <id>Error handlingJavaScript</id>
+          </State>
+          <State>
+            <id>Faces Model</id>
+          </State>
+          <State>
+            <id>FreeMarker</id>
+          </State>
+          <State>
+            <id>GPathGroovy</id>
+          </State>
+          <State>
+            <id>GSPGrailsGroovy</id>
+          </State>
+          <State>
+            <id>General</id>
+          </State>
+          <State>
+            <id>GeneralCoffeeScript</id>
+          </State>
+          <State>
+            <id>GeneralJavaScript</id>
+          </State>
+          <State>
+            <id>Google Web Toolkit</id>
+          </State>
+          <State>
+            <id>Gradle</id>
+          </State>
+          <State>
+            <id>GrailsGroovy</id>
+          </State>
+          <State>
+            <id>Groovy</id>
+          </State>
+          <State>
+            <id>Guice</id>
+          </State>
+          <State>
+            <id>HTML</id>
+          </State>
+          <State>
+            <id>Hibernate</id>
+          </State>
+          <State>
+            <id>IconsUsabilityLintAndroid</id>
+          </State>
+          <State>
+            <id>Inheritance issuesJava</id>
+          </State>
+          <State>
+            <id>InitializationJava</id>
+          </State>
+          <State>
+            <id>InternationalizationJava</id>
+          </State>
+          <State>
+            <id>InternationalizationLintAndroid</id>
+          </State>
+          <State>
+            <id>J2ME issuesJava</id>
+          </State>
+          <State>
+            <id>JBoss Seam</id>
+          </State>
+          <State>
+            <id>JPA</id>
+          </State>
+          <State>
+            <id>JSON and JSON5</id>
+          </State>
+          <State>
+            <id>JSP</id>
+          </State>
+          <State>
+            <id>JUnitJava</id>
+          </State>
+          <State>
+            <id>Java</id>
+          </State>
+          <State>
+            <id>Java 11Java language level migration aidsJava</id>
+          </State>
+          <State>
+            <id>Java 5Java language level migration aidsJava</id>
+          </State>
+          <State>
+            <id>Java 7Java language level migration aidsJava</id>
+          </State>
+          <State>
+            <id>Java 8Java language level migration aidsJava</id>
+          </State>
+          <State>
+            <id>Java 9Java language level migration aidsJava</id>
+          </State>
+          <State>
+            <id>Java EE</id>
+          </State>
+          <State>
+            <id>Java interop issuesKotlin</id>
+          </State>
+          <State>
+            <id>Java language level migration aidsJava</id>
+          </State>
+          <State>
+            <id>JavaBeans issuesJava</id>
+          </State>
+          <State>
+            <id>JavaFX</id>
+          </State>
+          <State>
+            <id>JavaScript</id>
+          </State>
+          <State>
+            <id>JavaScript function metricsJavaScript</id>
+          </State>
+          <State>
+            <id>JavadocJava</id>
+          </State>
+          <State>
+            <id>Kotlin</id>
+          </State>
+          <State>
+            <id>Language Injection</id>
+          </State>
+          <State>
+            <id>LintAndroid</id>
+          </State>
+          <State>
+            <id>LoggingJava</id>
+          </State>
+          <State>
+            <id>Lombok</id>
+          </State>
+          <State>
+            <id>Manifest</id>
+          </State>
+          <State>
+            <id>Markdown</id>
+          </State>
+          <State>
+            <id>Maven</id>
+          </State>
+          <State>
+            <id>MavenMigrationKotlin</id>
+          </State>
+          <State>
+            <id>MemoryJava</id>
+          </State>
+          <State>
+            <id>MessagesCorrectnessLintAndroid</id>
+          </State>
+          <State>
+            <id>Method metricsGroovy</id>
+          </State>
+          <State>
+            <id>Method metricsJava</id>
+          </State>
+          <State>
+            <id>MigrationKotlin</id>
+          </State>
+          <State>
+            <id>Modularization issuesJava</id>
+          </State>
+          <State>
+            <id>Naming conventionsGroovy</id>
+          </State>
+          <State>
+            <id>Naming conventionsJava</id>
+          </State>
+          <State>
+            <id>Naming conventionsJavaScript</id>
+          </State>
+          <State>
+            <id>Numeric issuesJava</id>
+          </State>
+          <State>
+            <id>OSGi</id>
+          </State>
+          <State>
+            <id>Packaging issuesJava</id>
+          </State>
+          <State>
+            <id>Pattern Validation</id>
+          </State>
+          <State>
+            <id>PerformanceJava</id>
+          </State>
+          <State>
+            <id>PerformanceLintAndroid</id>
+          </State>
+          <State>
+            <id>Plugin DevKit</id>
+          </State>
+          <State>
+            <id>PortabilityJava</id>
+          </State>
+          <State>
+            <id>Potentially confusing code constructsGroovy</id>
+          </State>
+          <State>
+            <id>Potentially confusing code constructsJavaScript</id>
+          </State>
+          <State>
+            <id>Probable bugsCSS</id>
+          </State>
+          <State>
+            <id>Probable bugsGradle</id>
+          </State>
+          <State>
+            <id>Probable bugsJava</id>
+          </State>
+          <State>
+            <id>Probable bugsJavaScript</id>
+          </State>
+          <State>
+            <id>Probable bugsKotlin</id>
+          </State>
+          <State>
+            <id>Properties Files</id>
+          </State>
+          <State>
+            <id>RELAX NG</id>
+          </State>
+          <State>
+            <id>Reactor</id>
+          </State>
+          <State>
+            <id>Redundant constructsKotlin</id>
+          </State>
+          <State>
+            <id>Reflective accessJava</id>
+          </State>
+          <State>
+            <id>RegExp</id>
+          </State>
+          <State>
+            <id>Resource managementJava</id>
+          </State>
+          <State>
+            <id>SQL</id>
+          </State>
+          <State>
+            <id>SecurityJava</id>
+          </State>
+          <State>
+            <id>SecurityLintAndroid</id>
+          </State>
+          <State>
+            <id>Serialization issuesJava</id>
+          </State>
+          <State>
+            <id>SetupSpring CoreSpring</id>
+          </State>
+          <State>
+            <id>Spring</id>
+          </State>
+          <State>
+            <id>Spring AOPSpring</id>
+          </State>
+          <State>
+            <id>Spring CoreSpring</id>
+          </State>
+          <State>
+            <id>Struts</id>
+          </State>
+          <State>
+            <id>Struts 1Struts</id>
+          </State>
+          <State>
+            <id>Style issuesKotlin</id>
+          </State>
+          <State>
+            <id>TestNGJava</id>
+          </State>
+          <State>
+            <id>Threading issuesGroovy</id>
+          </State>
+          <State>
+            <id>Threading issuesJava</id>
+          </State>
+          <State>
+            <id>TypeScript</id>
+          </State>
+          <State>
+            <id>TypographyUsabilityLintAndroid</id>
+          </State>
+          <State>
+            <id>UI Form</id>
+          </State>
+          <State>
+            <id>UsabilityLintAndroid</id>
+          </State>
+          <State>
+            <id>Velocity</id>
+          </State>
+          <State>
+            <id>Verbose or redundant code constructsJava</id>
+          </State>
+          <State>
+            <id>WebSocket</id>
+          </State>
+          <State>
+            <id>XML</id>
+          </State>
+          <State>
+            <id>XMLSpring CoreSpring</id>
+          </State>
+          <State>
+            <id>XPath</id>
+          </State>
+          <State>
+            <id>YAML</id>
+          </State>
+        </expanded-state>
+      </profile-state>
+    </entry>
+  </component>
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
+    <output url="file://$PROJECT_DIR$/out" />
+  </component>
 </project>

+ 27 - 27
.idea/uiDesigner.xml

@@ -2,121 +2,121 @@
 <project version="4">
   <component name="Palette2">
     <group name="Swing">
-      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
         <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
       </item>
-      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
         <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
       </item>
-      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
         <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
       </item>
-      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
+      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
         <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
       </item>
-      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
         <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
         <initial-values>
           <property name="text" value="Button" />
         </initial-values>
       </item>
-      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
         <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
         <initial-values>
           <property name="text" value="RadioButton" />
         </initial-values>
       </item>
-      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
         <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
         <initial-values>
           <property name="text" value="CheckBox" />
         </initial-values>
       </item>
-      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
         <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
         <initial-values>
           <property name="text" value="Label" />
         </initial-values>
       </item>
-      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
         <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
           <preferred-size width="150" height="-1" />
         </default-constraints>
       </item>
-      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
         <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
           <preferred-size width="150" height="-1" />
         </default-constraints>
       </item>
-      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
         <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
           <preferred-size width="150" height="-1" />
         </default-constraints>
       </item>
-      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
         <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
           <preferred-size width="150" height="50" />
         </default-constraints>
       </item>
-      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
         <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
           <preferred-size width="150" height="50" />
         </default-constraints>
       </item>
-      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
         <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
           <preferred-size width="150" height="50" />
         </default-constraints>
       </item>
-      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
         <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
       </item>
-      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
         <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
           <preferred-size width="150" height="50" />
         </default-constraints>
       </item>
-      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
         <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
           <preferred-size width="150" height="50" />
         </default-constraints>
       </item>
-      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
         <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
           <preferred-size width="150" height="50" />
         </default-constraints>
       </item>
-      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
         <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
           <preferred-size width="200" height="200" />
         </default-constraints>
       </item>
-      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
         <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
           <preferred-size width="200" height="200" />
         </default-constraints>
       </item>
-      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
+      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
         <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
       </item>
-      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
         <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
       </item>
-      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
         <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
       </item>
-      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
         <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
       </item>
-      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
         <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
           <preferred-size width="-1" height="20" />
         </default-constraints>
       </item>
-      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
+      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
         <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
       </item>
-      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
+      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
         <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
       </item>
     </group>

文件差異過大導致無法顯示
+ 892 - 163
.idea/workspace.xml


+ 1 - 1
src/main/java/com/video/AutoCode.java

@@ -1,4 +1,4 @@
-package com.video;
+package com.template;
 
 import com.baomidou.mybatisplus.annotation.DbType;
 import com.baomidou.mybatisplus.annotation.FieldFill;

+ 1 - 9
src/main/java/com/video/MybatisPlusApplication.java

@@ -1,17 +1,9 @@
-package com.video;
+package com.template;
 
-import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cache.annotation.EnableCaching;
-import org.springframework.context.annotation.Profile;
 import org.springframework.transaction.annotation.EnableTransactionManagement;
-import org.springframework.transaction.event.TransactionalEventListener;
-import springfox.documentation.swagger2.annotations.EnableSwagger2;
-
-import java.io.*;
-import java.net.Socket;
-import java.nio.charset.StandardCharsets;
 
 @EnableCaching//开启缓存
 @SpringBootApplication

+ 1 - 1
src/main/java/com/video/annotation/ControllerIsShow.java

@@ -1,4 +1,4 @@
-package com.video.annotation;
+package com.template.annotation;
 
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Retention;

+ 1 - 1
src/main/java/com/video/annotation/PassToken.java

@@ -1,4 +1,4 @@
-package com.video.annotation;
+package com.template.annotation;
 
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Retention;

+ 1 - 1
src/main/java/com/video/annotation/UserLoginCheck.java

@@ -1,4 +1,4 @@
-package com.video.annotation;
+package com.template.annotation;
 
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Target;

+ 4 - 6
src/main/java/com/video/aop/LoginCheckAspect.java

@@ -1,4 +1,4 @@
-package com.video.aop;
+package com.template.aop;
 
 import org.aspectj.lang.ProceedingJoinPoint;
 import org.aspectj.lang.annotation.After;
@@ -8,8 +8,6 @@ import org.aspectj.lang.annotation.Before;
 import org.springframework.core.annotation.Order;
 import org.springframework.stereotype.Component;
 
-import java.sql.SQLOutput;
-
 /**
  * @Author: binguo
  * @Date: 2023/4/10 星期一 14:10
@@ -21,7 +19,7 @@ import java.sql.SQLOutput;
 @Order(0)//order的值越小,优先级越高 order如果不标注数字,默认最低优先级,因为其默认值是int最大值
 public class LoginCheckAspect {
 
-    @Around("@annotation(com.video.annotation.UserLoginCheck)")
+    @Around("@annotation(com.template.annotation.UserLoginCheck)")
     public Object userLoginCheck(ProceedingJoinPoint process) throws Throwable {
         System.out.println("用户登录检测机制");
         if(1 == 1){
@@ -34,12 +32,12 @@ public class LoginCheckAspect {
         return proceed;//将执行目标方法后的返回值返回出去
     }
 
-    @After("@annotation(com.video.annotation.UserLoginCheck)")
+    @After("@annotation(com.template.annotation.UserLoginCheck)")
     public void test(){
         System.out.println("测试After");
     }
 
-    @Before("@annotation(com.video.annotation.UserLoginCheck)")
+    @Before("@annotation(com.template.annotation.UserLoginCheck)")
     public void test1(){
         System.out.println("测试Before");
     }

+ 2 - 6
src/main/java/com/video/api/ExcelControllerAPI.java

@@ -1,14 +1,10 @@
-package com.video.api;
+package com.template.api;
 
-import com.video.annotation.PassToken;
+import com.template.annotation.PassToken;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
-import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-
-import java.io.File;
 
 @Api(tags = {"ExcelController"}, value = "导入excel表")
 @RequestMapping("/api/excel")

+ 2 - 3
src/main/java/com/video/api/LogInfoControllerAPI.java

@@ -1,7 +1,6 @@
-package com.video.api;
+package com.template.api;
 
-import com.video.annotation.PassToken;
-import com.video.model.utils.CommonResult;
+import com.template.model.result.CommonResult;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.web.bind.annotation.GetMapping;

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

@@ -1,9 +1,6 @@
-package com.video.api;
+package com.template.api;
 
 import com.tencentcloudapi.sms.v20210111.models.SendStatus;
-import common.utils.SendSms;
-import io.swagger.annotations.Api;
-import org.springframework.web.bind.annotation.*;
 
 
 public interface SendControllerAPI {

+ 2 - 6
src/main/java/com/video/api/SmsCodeControllerAPI.java

@@ -1,13 +1,9 @@
-package com.video.api;
+package com.template.api;
 
-import com.video.model.pojo.SmsCode;
-import com.video.model.pojo.SystemMenu;
-import com.video.model.utils.CommonResult;
+import com.template.model.result.CommonResult;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 
 @RequestMapping("/api/sms-code")

+ 5 - 5
src/main/java/com/video/api/SystemMenuControllerAPI.java

@@ -1,9 +1,9 @@
-package com.video.api;
+package com.template.api;
 
-import com.video.model.pojo.SystemMenu;
-import com.video.model.utils.CommonResult;
-import com.video.model.vo.SystemMenuTreeVo;
-import com.video.model.vo.SystemMenuVo;
+import com.template.model.pojo.SystemMenu;
+import com.template.model.result.CommonResult;
+import com.template.model.vo.SystemMenuTreeVo;
+import com.template.model.vo.SystemMenuVo;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.web.bind.annotation.*;

+ 2 - 3
src/main/java/com/video/config/MyBatisPlusConfig.java

@@ -1,11 +1,10 @@
-package com.video.config;
+package com.template.config;
 
 import com.baomidou.mybatisplus.core.injector.ISqlInjector;
 import com.baomidou.mybatisplus.extension.injector.LogicSqlInjector;
 import com.baomidou.mybatisplus.extension.plugins.OptimisticLockerInterceptor;
 import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
 import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor;
-import com.baomidou.mybatisplus.extension.plugins.pagination.optimize.JsqlParserCountOptimize;
 import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
@@ -13,7 +12,7 @@ import org.springframework.context.annotation.Profile;
 import org.springframework.transaction.annotation.EnableTransactionManagement;
 
 // 扫描我们的 mapper 文件夹
-@MapperScan("com.video.mapper")
+@MapperScan("com.template.mapper")
 @EnableTransactionManagement
 @Configuration // 配置类
 public class MyBatisPlusConfig {

+ 1 - 4
src/main/java/com/video/config/MySecurity.java

@@ -1,9 +1,6 @@
-package com.video.config;
+package com.template.config;
 
-import lombok.Data;
 import org.springframework.beans.factory.annotation.Value;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-import org.springframework.context.annotation.Configuration;
 import org.springframework.stereotype.Component;
 
 @Component

+ 1 - 4
src/main/java/com/video/config/smsConfig.java

@@ -1,10 +1,7 @@
-package com.video.config;
+package com.template.config;
 
 import lombok.Data;
-import org.springframework.beans.factory.annotation.Value;
 import org.springframework.boot.context.properties.ConfigurationProperties;
-import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.Configuration;
 import org.springframework.stereotype.Component;
 
 /**

+ 5 - 6
src/main/java/com/video/controller/ExcelController.java

@@ -1,9 +1,9 @@
-package com.video.controller;
+package com.template.controller;
 
-import com.video.annotation.PassToken;
-import com.video.api.ExcelControllerAPI;
-import com.video.model.pojo.SystemUser;
-import com.video.services.SystemUserService;
+import com.template.annotation.PassToken;
+import com.template.api.ExcelControllerAPI;
+import com.template.model.pojo.SystemUser;
+import com.template.services.SystemUserService;
 import org.apache.poi.ss.usermodel.DataFormatter;
 import org.apache.poi.xssf.usermodel.XSSFCell;
 import org.apache.poi.xssf.usermodel.XSSFSheet;
@@ -11,7 +11,6 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.RestController;
 
-import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
 

+ 6 - 11
src/main/java/com/video/controller/LogInfoController.java

@@ -1,16 +1,11 @@
-package com.video.controller;
+package com.template.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.SmsCodeServiceImpl;
-import com.video.services.impl.SystemUserServiceImpl;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
+import com.template.annotation.PassToken;
+import com.template.api.LogInfoControllerAPI;
+import com.template.model.result.CommonResult;
+import com.template.services.impl.SmsCodeServiceImpl;
+import com.template.services.impl.SystemUserServiceImpl;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Value;
 import org.springframework.web.bind.annotation.*;
 
 @RestController

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

@@ -1,10 +1,7 @@
-package com.video.controller;
+package com.template.controller;
 
 import com.tencentcloudapi.sms.v20210111.models.SendStatus;
-import com.video.annotation.PassToken;
-import com.video.api.SendControllerAPI;
-import com.video.model.utils.CommonResult;
-import common.result.Code;
+import com.template.api.SendControllerAPI;
 import common.utils.SendSms;
 import common.utils.ValidateCode;
 import io.swagger.annotations.Api;

+ 6 - 8
src/main/java/com/video/controller/SmsCodeController.java

@@ -1,14 +1,12 @@
-package com.video.controller;
+package com.template.controller;
 
 
-import com.video.annotation.PassToken;
-import com.video.api.SmsCodeControllerAPI;
-import com.video.model.pojo.SmsCode;
-import com.video.model.utils.CommonResult;
-import com.video.services.SmsCodeService;
-import com.video.services.SystemMenuService;
+import com.template.annotation.PassToken;
+import com.template.api.SmsCodeControllerAPI;
+import com.template.model.pojo.SmsCode;
+import com.template.model.result.CommonResult;
+import com.template.services.SmsCodeService;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.RequestMapping;
 
 import org.springframework.web.bind.annotation.RestController;
 

+ 8 - 8
src/main/java/com/video/controller/SystemMenuController.java

@@ -1,13 +1,13 @@
-package com.video.controller;
+package com.template.controller;
 
 
-import com.video.api.SystemMenuControllerAPI;
-import com.video.model.pojo.SystemMenu;
-import com.video.model.utils.CommonResult;
-import com.video.model.vo.SystemMenuTreeVo;
-import com.video.model.vo.SystemMenuVo;
-import com.video.services.SystemMenuService;
-import com.video.annotation.PassToken;
+import com.template.api.SystemMenuControllerAPI;
+import com.template.model.pojo.SystemMenu;
+import com.template.model.result.CommonResult;
+import com.template.model.vo.SystemMenuTreeVo;
+import com.template.model.vo.SystemMenuVo;
+import com.template.services.SystemMenuService;
+import com.template.annotation.PassToken;
 import org.springframework.beans.factory.annotation.Autowired;
 
 import org.springframework.web.bind.annotation.RequestBody;

+ 1 - 1
src/main/java/com/video/core/CORSConfiguration.java

@@ -1,4 +1,4 @@
-package com.video.core;
+package com.template.core;
 
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;

+ 2 - 3
src/main/java/com/video/core/JwtAuthenticationInterceptor.java

@@ -1,12 +1,11 @@
-package com.video.core;
+package com.template.core;
 
 import com.auth0.jwt.interfaces.Claim;
 import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
-import com.video.annotation.PassToken;
+import com.template.annotation.PassToken;
 import common.exception.MyCustomException;
 import common.result.ResponseStatusEnum;
 import common.utils.JWTUtil;
-import io.jsonwebtoken.Claims;
 import org.springframework.boot.configurationprocessor.json.JSONObject;
 import org.springframework.util.StringUtils;
 import org.springframework.web.method.HandlerMethod;

+ 1 - 1
src/main/java/com/video/core/JwtlnterceptorConfig.java

@@ -1,4 +1,4 @@
-package com.video.core;
+package com.template.core;
 
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;

+ 2 - 2
src/main/java/com/video/core/SwaggerConfiguration.java

@@ -1,7 +1,7 @@
-package com.video.core;
+package com.template.core;
 
 import com.google.common.base.Predicates;
-import com.video.annotation.ControllerIsShow;
+import com.template.annotation.ControllerIsShow;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
 import org.springframework.context.annotation.Profile;

+ 1 - 1
src/main/java/com/video/handle/NonStaticResourceHttpRequestHandler.java

@@ -1,4 +1,4 @@
-package com.video.handle;
+package com.template.handle;
 
 import org.springframework.core.io.FileSystemResource;
 import org.springframework.core.io.Resource;

+ 1 - 1
src/main/java/com/video/handler/MyMetaObjectHandler.java

@@ -1,4 +1,4 @@
-package com.video.handler;
+package com.template.handler;
 
 import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
 import lombok.extern.slf4j.Slf4j;

+ 2 - 2
src/main/java/com/video/mapper/SmsCodeMapper.java

@@ -1,6 +1,6 @@
-package com.video.mapper;
+package com.template.mapper;
 
-import com.video.model.pojo.SmsCode;
+import com.template.model.pojo.SmsCode;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 
 /**

+ 3 - 3
src/main/java/com/video/mapper/SystemMenuMapper.java

@@ -1,8 +1,8 @@
-package com.video.mapper;
+package com.template.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.video.model.pojo.SystemMenu;
-import com.video.model.vo.SystemMenuVo;
+import com.template.model.pojo.SystemMenu;
+import com.template.model.vo.SystemMenuVo;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;

+ 2 - 2
src/main/java/com/video/mapper/SystemUserMapper.java

@@ -1,7 +1,7 @@
-package com.video.mapper;
+package com.template.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.video.model.pojo.SystemUser;
+import com.template.model.pojo.SystemUser;
 
 /**
  * <p>

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

@@ -1,4 +1,4 @@
-package com.video.model.pojo;
+package com.template.model.pojo;
 
 import com.baomidou.mybatisplus.annotation.*;
 

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

@@ -1,4 +1,4 @@
-package com.video.model.pojo;
+package com.template.model.pojo;
 
 import com.baomidou.mybatisplus.annotation.*;
 

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

@@ -1,4 +1,4 @@
-package com.video.model.pojo;
+package com.template.model.pojo;
 
 import com.baomidou.mybatisplus.annotation.*;
 

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

@@ -1,4 +1,4 @@
-package com.video.model.pojo;
+package com.template.model.pojo;
 
 import com.baomidou.mybatisplus.annotation.*;
 

+ 1 - 1
src/main/java/com/video/model/utils/BaseResult.java

@@ -1,4 +1,4 @@
-package com.video.model.utils;
+package com.template.model.result;
 
 import lombok.Data;
 

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

@@ -1,9 +1,8 @@
-package com.video.model.utils;
+package com.template.model.result;
 
 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;

+ 1 - 2
src/main/java/com/video/model/vo/LoginVO.java

@@ -1,6 +1,5 @@
-package com.video.model.vo;
+package com.template.model.vo;
 
-import lombok.Builder;
 import lombok.Data;
 
 /**

+ 1 - 1
src/main/java/com/video/model/vo/SystemMenuTreeVo.java

@@ -1,4 +1,4 @@
-package com.video.model.vo;
+package com.template.model.vo;
 
 import com.fasterxml.jackson.annotation.JsonInclude;
 import io.swagger.annotations.ApiModel;

+ 1 - 1
src/main/java/com/video/model/vo/SystemMenuVo.java

@@ -1,4 +1,4 @@
-package com.video.model.vo;
+package com.template.model.vo;
 
 import com.fasterxml.jackson.annotation.JsonInclude;
 import io.swagger.annotations.ApiModel;

+ 3 - 3
src/main/java/com/video/services/SmsCodeService.java

@@ -1,8 +1,8 @@
-package com.video.services;
+package com.template.services;
 
-import com.video.model.pojo.SmsCode;
+import com.template.model.pojo.SmsCode;
 import com.baomidou.mybatisplus.extension.service.IService;
-import com.video.model.utils.CommonResult;
+import com.template.model.result.CommonResult;
 
 /**
  * <p>

+ 4 - 4
src/main/java/com/video/services/SystemMenuService.java

@@ -1,9 +1,9 @@
-package com.video.services;
+package com.template.services;
 
 import com.baomidou.mybatisplus.extension.service.IService;
-import com.video.model.pojo.SystemMenu;
-import com.video.model.utils.CommonResult;
-import com.video.model.vo.SystemMenuVo;
+import com.template.model.pojo.SystemMenu;
+import com.template.model.result.CommonResult;
+import com.template.model.vo.SystemMenuVo;
 
 import java.util.List;
 

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

@@ -1,8 +1,8 @@
-package com.video.services;
+package com.template.services;
 
 import com.baomidou.mybatisplus.extension.service.IService;
-import com.video.model.pojo.SystemUser;
-import com.video.model.utils.CommonResult;
+import com.template.model.pojo.SystemUser;
+import com.template.model.result.CommonResult;
 
 /**
  * <p>

+ 9 - 13
src/main/java/com/video/services/impl/SmsCodeServiceImpl.java

@@ -1,24 +1,20 @@
-package com.video.services.impl;
+package com.template.services.impl;
 
 import com.alibaba.fastjson.JSON;
-import com.alibaba.fastjson.JSONObject;
-import com.baomidou.mybatisplus.core.conditions.Wrapper;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
-import com.video.config.MySecurity;
-import com.video.model.pojo.SmsCode;
-import com.video.mapper.SmsCodeMapper;
-import com.video.model.pojo.SystemUser;
-import com.video.model.utils.CommonResult;
-import com.video.model.vo.LoginVO;
-import com.video.services.SmsCodeService;
+import com.template.config.MySecurity;
+import com.template.model.pojo.SmsCode;
+import com.template.mapper.SmsCodeMapper;
+import com.template.model.pojo.SystemUser;
+import com.template.model.result.CommonResult;
+import com.template.model.vo.LoginVO;
+import com.template.services.SmsCodeService;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.video.services.SystemUserService;
+import com.template.services.SystemUserService;
 import common.utils.EncryptionUtil;
 import common.utils.JWTUtil;
 import common.utils.RSAUtils;
-import org.apache.commons.lang3.StringUtils;
-import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 

+ 6 - 6
src/main/java/com/video/services/impl/SystemMenuServiceImpl.java

@@ -1,10 +1,10 @@
-package com.video.services.impl;
+package com.template.services.impl;
 
-import com.video.mapper.SystemMenuMapper;
-import com.video.model.pojo.SystemMenu;
-import com.video.model.utils.CommonResult;
-import com.video.model.vo.SystemMenuVo;
-import com.video.services.SystemMenuService;
+import com.template.mapper.SystemMenuMapper;
+import com.template.model.pojo.SystemMenu;
+import com.template.model.result.CommonResult;
+import com.template.model.vo.SystemMenuVo;
+import com.template.services.SystemMenuService;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.cache.annotation.CacheEvict;

+ 7 - 11
src/main/java/com/video/services/impl/SystemUserServiceImpl.java

@@ -1,25 +1,21 @@
-package com.video.services.impl;
+package com.template.services.impl;
 
-import com.baomidou.mybatisplus.core.conditions.Wrapper;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
 import com.tencentcloudapi.sms.v20210111.models.SendStatus;
-import com.video.config.MySecurity;
-import com.video.mapper.SystemUserMapper;
-import com.video.model.pojo.SmsCode;
-import com.video.model.pojo.SystemUser;
-import com.video.model.utils.CommonResult;
-import com.video.services.SystemUserService;
+import com.template.config.MySecurity;
+import com.template.mapper.SystemUserMapper;
+import com.template.model.pojo.SmsCode;
+import com.template.model.pojo.SystemUser;
+import com.template.model.result.CommonResult;
+import com.template.services.SystemUserService;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import common.result.ResponseStatusEnum;
-import common.utils.RSAUtils;
 import common.utils.SendSms;
 import common.utils.ValidateCode;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
-import redis.clients.jedis.Jedis;
 
 import java.util.Date;
 

+ 0 - 58
src/main/java/com/video/api/PlaybackRecordControllerAPI.java

@@ -1,58 +0,0 @@
-package com.video.api;
-
-import com.video.model.utils.CommonResult;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import org.springframework.web.bind.annotation.*;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import java.io.IOException;
-import java.io.UnsupportedEncodingException;
-import java.util.List;
-
-/**
- * @Author: binguo
- * @Date: 2023/3/23 星期四 15:52
- * @Description: com.video.api
- * @Version: 1.0
- */
-//@RequestMapping("/api/play-back")
-@Api(tags = {"PlaybackRecordController"}, value = "测试接口")
-public interface PlaybackRecordControllerAPI {
-//    @PostMapping(value = "/InsertPlaybackRecord")
-//    @ApiOperation(value = "测试接口",notes = "传递时间参数获取对应时间的图表数据")
-//    CommonResult<Integer> InsertPlaybackRecord(@RequestBody PlaybackRecord pb);
-//
-//    @GetMapping(value = "/QueryPlaybackRecords")
-//    CommonResult<List<PlaybackRecord>> QueryPlaybackRecords(HttpServletRequest request);
-//
-    @PostMapping(value = "/tests")
-    String test(HttpServletRequest request) throws Exception;
-
-    //成功信息
-    @GetMapping(value = "/testSuccess")
-    CommonResult success();
-
-    //成功信息有数据返回
-    @GetMapping(value = "/testSuccessValue")
-    CommonResult successValue();
-
-    //默认错误信息
-    @GetMapping(value = "/testFail")
-    CommonResult fail();
-
-    //自定义错误信息
-    @GetMapping(value = "/testFailValue")
-    CommonResult failValue();
-//
-//    @GetMapping("/video")
-//    void videoPreview(HttpServletRequest request, HttpServletResponse response) throws IOException, Exception;
-//
-//    @GetMapping("/videoOther")
-//    @ResponseBody
-//    void videoOther(HttpServletRequest request, HttpServletResponse response) throws Exception;
-//
-//    @GetMapping("/download")
-//    public void download(HttpServletResponse response) throws UnsupportedEncodingException;
-}

+ 0 - 18
src/main/java/com/video/api/SystemAuthorityControllerAPI.java

@@ -1,18 +0,0 @@
-package com.video.api;
-
-import io.swagger.annotations.Api;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-/**
- * @Author: binguo
- * @Date: 2023/3/30 星期四 17:28
- * @Description: com.video.api
- * @Version: 1.0
- */
-@RequestMapping("/api/system-authority")
-@Api(tags = {"SystemAuthorityController"}, value = "测试接口")
-public interface SystemAuthorityControllerAPI {
-    @GetMapping(value = "/test")
-    void test();
-}

+ 0 - 15
src/main/java/com/video/api/SystemRoleControllerAPI.java

@@ -1,15 +0,0 @@
-package com.video.api;
-
-import io.swagger.annotations.Api;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-/**
- * @Author: binguo
- * @Date: 2023/3/30 星期四 17:28
- * @Description: com.video.api
- * @Version: 1.0
- */
-@RequestMapping("/api/system-role")
-@Api(tags = {"SystemRoleController"}, value = "测试接口")
-public interface SystemRoleControllerAPI {
-}

+ 0 - 15
src/main/java/com/video/api/SystemUserControllerAPI.java

@@ -1,15 +0,0 @@
-package com.video.api;
-
-import io.swagger.annotations.Api;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-/**
- * @Author: binguo
- * @Date: 2023/3/30 星期四 17:28
- * @Description: com.video.api
- * @Version: 1.0
- */
-@RequestMapping("/api/system-user")
-@Api(tags = {"SystemUserController"}, value = "测试接口")
-public interface SystemUserControllerAPI {
-}

+ 0 - 15
src/main/java/com/video/api/VideoCategoryControllerAPI.java

@@ -1,15 +0,0 @@
-package com.video.api;
-
-import io.swagger.annotations.Api;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-/**
- * @Author: binguo
- * @Date: 2023/3/30 星期四 17:28
- * @Description: com.video.api
- * @Version: 1.0
- */
-@RequestMapping("/api/video-category")
-@Api(tags = {"VideoCategoryController"}, value = "测试接口")
-public interface VideoCategoryControllerAPI {
-}

+ 0 - 22
src/main/java/com/video/api/VideoControllerAPI.java

@@ -1,22 +0,0 @@
-package com.video.api;
-
-import com.video.model.utils.CommonResult;
-import io.swagger.annotations.Api;
-import org.springframework.web.bind.annotation.CrossOrigin;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-/**
- * @Author: binguo
- * @Date: 2023/3/30 星期四 17:28
- * @Description: com.video.api
- * @Version: 1.0
- */
-@RequestMapping("/api/video")
-@Api(tags = {"VideoController"}, value = "测试接口")
-public interface VideoControllerAPI {
-
-    CommonResult list();
-}

+ 0 - 9
src/main/java/com/video/api/VideoElseControllerAPI.java

@@ -1,9 +0,0 @@
-package com.video.api;
-
-import io.swagger.annotations.Api;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-@RequestMapping("/api/videoElse")
-@Api(tags = {"VideoElseController"}, value = "文件下载接口")
-public interface VideoElseControllerAPI {
-}

+ 0 - 15
src/main/java/com/video/api/VideoPlayControllerAPI.java

@@ -1,15 +0,0 @@
-package com.video.api;
-
-import io.swagger.annotations.Api;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-/**
- * @Author: binguo
- * @Date: 2023/3/30 星期四 17:28
- * @Description: com.video.api
- * @Version: 1.0
- */
-@RequestMapping("/api/video-play")
-@Api(tags = {"VideoPlayController"}, value = "测试接口")
-public interface VideoPlayControllerAPI {
-}

+ 0 - 15
src/main/java/com/video/api/VideoShareControllerAPI.java

@@ -1,15 +0,0 @@
-package com.video.api;
-
-import io.swagger.annotations.Api;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-/**
- * @Author: binguo
- * @Date: 2023/3/30 星期四 17:28
- * @Description: com.video.api
- * @Version: 1.0
- */
-@RequestMapping("/api/video-share")
-@Api(tags = {"VideoShareController"}, value = "测试接口")
-public interface VideoShareControllerAPI {
-}

+ 0 - 314
src/main/java/com/video/controller/PlaybackRecordController.java

@@ -1,314 +0,0 @@
-package com.video.controller;
-
-import com.google.gson.Gson;
-import com.video.annotation.PassToken;
-import com.video.annotation.UserLoginCheck;
-import com.video.api.PlaybackRecordControllerAPI;
-
-
-import com.video.model.pojo.SmsCode;
-import com.video.model.pojo.resultData;
-import com.video.model.utils.CommonResult;
-import common.result.ResponseStatusEnum;
-import lombok.AllArgsConstructor;
-import org.apache.http.HttpStatus;
-import org.apache.http.client.methods.CloseableHttpResponse;
-import org.apache.http.client.methods.HttpPost;
-import org.apache.http.entity.StringEntity;
-import org.apache.http.impl.client.CloseableHttpClient;
-import org.apache.http.impl.client.HttpClientBuilder;
-import org.apache.http.util.EntityUtils;
-import org.springframework.boot.configurationprocessor.json.JSONObject;
-import org.springframework.web.bind.annotation.RestController;
-
-import javax.servlet.http.HttpServletRequest;
-import java.io.*;
-
-/**
- * @Author: binguo
- * @Date: 2023/3/23 星期四 15:55
- * @Description: com.video.controller
- * @Version: 1.0
- */
-
-@RestController
-@AllArgsConstructor
-public class PlaybackRecordController implements PlaybackRecordControllerAPI {
-
-//    @Autowired
-//    private PlaybackRecordService playbackRecordService;
-//
-//    private final NonStaticResourceHttpRequestHandler nonStaticResourceHttpRequestHandler;
-//
-//    @Override
-//    public CommonResult<Integer> InsertPlaybackRecord(@RequestBody PlaybackRecord pb){
-//        CommonResult<Integer> result = playbackRecordService.insertPlaybackRecord(pb); // 帮我们自动生成id
-//        return result;
-//    }
-//
-//    @Override
-//    public CommonResult<List<PlaybackRecord>> QueryPlaybackRecords(HttpServletRequest request) {
-//        CommonResult<List<PlaybackRecord>> result = playbackRecordService.getPlaybackRecords();
-//        String ipAddress = null;
-//        try {
-//            ipAddress = request.getHeader("x-forwarded-for");
-//            if (ipAddress == null || ipAddress.length() == 0 || "unknown".equalsIgnoreCase(ipAddress)) {
-//                ipAddress = request.getHeader("Proxy-Client-IP");
-//            }
-//            if (ipAddress == null || ipAddress.length() == 0 || "unknown".equalsIgnoreCase(ipAddress)) {
-//                ipAddress = request.getHeader("WL-Proxy-Client-IP");
-//            }
-//            if (ipAddress == null || ipAddress.length() == 0 || "unknown".equalsIgnoreCase(ipAddress)) {
-//                ipAddress = request.getRemoteAddr();
-//                if (ipAddress.equals("127.0.0.1")) {
-//                    // 根据网卡取本机配置的IP
-//                    InetAddress inet = null;
-//                    inet = InetAddress.getLocalHost();
-//                    ipAddress = inet.getHostAddress();
-//                }
-//            }
-//
-//            // 对于通过多个代理的情况,第一个IP为客户端真实IP,多个IP按照','分割
-//            if (ipAddress != null && ipAddress.length() > 15) { // "***.***.***.***".length()
-//                // = 15
-//                if (ipAddress.indexOf(",") > 0) {
-//                    ipAddress = ipAddress.substring(0, ipAddress.indexOf(","));
-//                }
-//            }
-//        } catch (Exception e) {
-//            ipAddress = "";
-//        }
-//        // ipAddress = this.getRequest().getRemoteAddr();
-//
-//        String s = ipAddress;
-//
-//        return result;
-//    }
-//
-
-
-
-    @UserLoginCheck
-    public String tests(HttpServletRequest request) throws Exception {
-
-        String sss = "";
-        int a = 1;
-        int b = 2;
-        int c = a + b;
-        System.out.println("测试切面接口");
-        return "测试切面接口";
-//        BufferedReader br = request.getReader();
-//
-//        String str, wholeStr = "";
-//        while((str = br.readLine()) != null){
-//
-//            wholeStr += str.replace("vgdecoderesult=","").replace("&&otherparams=","");
-//        }
-//        System.out.println("原生:"+wholeStr);
-//
-//        int d =wholeStr.indexOf("&&devicenumber=");
-//        String deviceNumber = wholeStr.substring(wholeStr.indexOf("&&devicenumber=")).replace("&&devicenumber=","");
-//
-//        if(!(wholeStr.indexOf("id=") < 0)){
-//            wholeStr = wholeStr.replace("id=","id="+deviceNumber).substring(0,d+1);
-//        }else{
-//            wholeStr = wholeStr.substring(0,d);
-//
-//            wholeStr = wholeStr.indexOf("&") < 0 ? wholeStr : wholeStr.substring(0,wholeStr.length()-1);
-//            wholeStr = "id="+ deviceNumber + "&qr=" + wholeStr;
-//        }
-//
-//
-//        System.out.println(wholeStr);
-//
-//        // 获得Http客户端(可以理解为:你得先有一个浏览器;注意:实际上HttpClient与浏览器是不一样的)
-//        CloseableHttpClient httpClient = HttpClientBuilder.create().build();
-//
-//        HttpPost httpPost = new HttpPost("http://cbai.natapp1.cc/carBook/userupcar.action");//发送请求
-//        JSONObject json = new JSONObject();
-//        json.put("code",wholeStr);
-//
-//        // 将参数放到Post中
-//        // 通过new StringEntity(),可将Content-Type设置为text/plain类型
-//        httpPost.setEntity(new StringEntity(json.toString(),"UTF-8"));
-//        CloseableHttpResponse response = httpClient.execute(httpPost);
-//        System.out.println(response);//接收返回
-//
-//        // 取响应的结果
-//        int statusCode = response.getStatusLine().getStatusCode();
-//        // 打印响应结果
-//        if (statusCode == HttpStatus.SC_OK) {
-//            String resp = EntityUtils.toString(response.getEntity(), "utf-8");
-//            System.out.println("status:" + statusCode);
-//            System.out.println("result:" + resp);
-//
-//            Gson jsons = new Gson();
-//            resultData data = jsons.fromJson(resp.replace("result:",""), resultData.class);
-//            if(data != null){
-//                System.out.println("code:" + data.code);
-//                return data.code == 200 ? "code=0000" : "code=1111";
-//            }
-//            else{
-//                System.out.println("data:" + data);
-//                return "code=1111";
-//            }
-//        }
-//        return "code=0000";//"code=0000&&desc=tes";//code=xxxx——xxx 表示服务器处理结果代码,0000 表示成功,其它表示错误
-    }
-
-    @Override
-    public String test(HttpServletRequest request) throws Exception {
-        BufferedReader br = request.getReader();
-
-        String str, wholeStr = "";
-        while((str = br.readLine()) != null){
-
-            wholeStr += str.replace("vgdecoderesult=","").replace("&&otherparams=","");
-        }
-        System.out.println("原生:"+wholeStr);
-        return "code=0000";
-    }
-
-    @Override
-    @PassToken
-    public CommonResult success() {
-        return CommonResult.ok();
-    }
-
-    @Override
-    @PassToken
-    public CommonResult successValue() {
-        SmsCode result = new SmsCode();
-        result.setCode("测试");
-        return CommonResult.ok(result);
-    }
-
-    @Override
-    @PassToken
-    public CommonResult fail() {
-        CommonResult result = CommonResult.fail();
-        return result;
-    }
-
-    @Override
-    @PassToken
-    public CommonResult failValue() {
-        CommonResult result = CommonResult.fail(ResponseStatusEnum.SYSTEM_FILE_NOT_FOUND);
-        return result;
-    }
-
-//    public String upcar(){
-//        JSONObject resultjson = new JSONObject();
-//        Gson gson=new Gson();
-//        com.alibaba.fastjson.JSONObject json = GetHttpParam.getHttpParam(request);
-//        System.out.println(json);
-//        if (json == null){
-//            resultjson.put("code", 500);
-//            resultjson.put("message", "请传入参数");
-//            ResUtil.writeJson(ServletActionContext.getResponse(), resultjson.toString());
-//            return null;
-//        }
-
-
-
-//
-//    @Override
-//    public void videoPreview(HttpServletRequest request, HttpServletResponse response) throws Exception {
-//    //假如我把视频1.mp4放在了static下的video文件夹里面
-//        //sourcePath 是获取resources文件夹的绝对地址
-//        //realPath 即是视频所在的磁盘地址
-//        String sourcePath = "D:/";//ClassUtils.getDefaultClassLoader().getResource("").getPath().substring(1);
-//        String realPath = sourcePath +"video/movie.mp4";
-//
-//
-//        Path filePath = Paths.get(realPath );
-//        if (Files.exists(filePath)) {
-//            String mimeType = Files.probeContentType(filePath);
-//            if (!StringUtils.isEmpty(mimeType)) {
-//                response.setContentType(mimeType);
-//            }
-//            request.setAttribute(NonStaticResourceHttpRequestHandler.ATTR_FILE, filePath);
-//            nonStaticResourceHttpRequestHandler.handleRequest(request, response);
-//        } else {
-//            response.setStatus(HttpServletResponse.SC_NOT_FOUND);
-//            response.setCharacterEncoding(StandardCharsets.UTF_8.toString());
-//        }
-//    }
-//
-//    @Override
-//    public void videoOther(HttpServletRequest request, HttpServletResponse response) throws Exception {
-//        File mp4File = new File("D:\\video\\movie.mp4");
-//
-//        ServletOutputStream outputStream = response.getOutputStream();
-//        RandomAccessFile targetFile = new RandomAccessFile(mp4File, "r");
-//
-//        Long offset = 0L; // 偏移量
-//        Long returnLength = mp4File.length(); // 最终返回的数据量大小
-//
-//        String rangeHeader = request.getHeader(HttpHeaders.RANGE); // 格式:Range: bytes=start-end
-//        if (isEmptyOrNull(rangeHeader)) {
-//            rangeHeader = "";
-//            // 分段返回从新计算偏移量和数据大小
-//            offset = Long.valueOf(rangeHeader.substring(rangeHeader.indexOf("=") + 1, rangeHeader.indexOf("-")));
-//            returnLength = mp4File.length() - offset;
-//            String end = rangeHeader.substring(rangeHeader.indexOf("-") + 1);
-//            if (isEmptyOrNull(end)) {
-//                returnLength = Long.valueOf(end) - offset + 1;
-//            }
-//
-//            // 设置响应头
-//            long endIndex = (offset + returnLength - 1) > mp4File.length() ? mp4File.length() : (offset + returnLength - 1);
-//            response.setStatus(HttpServletResponse.SC_PARTIAL_CONTENT); // 断点续传设置206状态码
-//            response.setContentType("video/mp4");
-//            response.setHeader(HttpHeaders.CONTENT_RANGE, String.format(Locale.ROOT, "bytes %d-%d/%d", offset, endIndex, mp4File.length()));
-//            response.setHeader(HttpHeaders.ACCEPT_RANGES, "bytes");
-//            response.setHeader(HttpHeaders.CONTENT_LENGTH, returnLength + "");
-//        } else {
-//            response.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=" + mp4File.getName());
-//            response.setHeader("Content-Length", String.valueOf(mp4File.length())); //设置文件长度
-//            response.setHeader("Content-Type", "application/octet-stream");
-//        }
-//
-//        targetFile.seek(offset); //设定文件读取开始位置(以字节为单位)
-//
-//        // 根据范围获取文件
-//        byte[] cache = new byte[1024 * 1024 * 10];
-//        int length;
-//        long countByte = 0L;
-//        boolean isBreak = false;
-//        while (!isBreak && (length = targetFile.read(cache)) != -1) {
-//            countByte += length;
-//            if (countByte > returnLength) {
-//                length = (int) (length - (countByte - returnLength));
-//                isBreak = true;
-//                cache = Arrays.copyOfRange(cache, 0, length);
-//            }
-//            outputStream.write(cache, 0, length);
-//        }
-//    }
-//
-//    @PassToken
-//    @Override
-//    public void download(HttpServletResponse response) throws UnsupportedEncodingException {
-//        String filename = URLEncoder.encode("最新测试.xls", "UTF-8");
-//
-//        response.setContentType("application/x-download");
-//        response.setHeader("Content-Disposition", "attachment;filename=" + filename);//浏览器上提示下载时默认的文件名
-//
-//        try (ServletOutputStream out = response.getOutputStream();
-//             InputStream stream = new FileInputStream("D:\\最新测试.xls")){//读取服务器上的文件
-//
-//            byte buff[] = new byte[1024];
-//            int length = 0;
-//            while ((length = stream.read(buff)) > 0) {
-//                out.write(buff,0,length);
-//            }
-//            stream.close();
-//            out.close();
-//            out.flush();
-//        } catch (IOException e) {
-//            e.printStackTrace();
-//        }
-//    }
-
-}

+ 0 - 26
src/main/java/com/video/controller/SystemAuthorityController.java

@@ -1,26 +0,0 @@
-package com.video.controller;
-
-
-import com.video.api.SystemAuthorityControllerAPI;
-import com.video.annotation.PassToken;
-
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * <p>
- *  前端控制器
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@RestController
-public class SystemAuthorityController implements SystemAuthorityControllerAPI {
-
-    @PassToken
-    @Override
-    public void test() {
-
-    }
-}
-

+ 0 - 21
src/main/java/com/video/controller/SystemRoleController.java

@@ -1,21 +0,0 @@
-package com.video.controller;
-
-
-import com.video.api.SystemRoleControllerAPI;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * <p>
- *  前端控制器
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@RestController
-public class SystemRoleController implements SystemRoleControllerAPI {
-
-}
-

+ 0 - 21
src/main/java/com/video/controller/SystemUserController.java

@@ -1,21 +0,0 @@
-package com.video.controller;
-
-
-import com.video.api.SystemUserControllerAPI;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * <p>
- *  前端控制器
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@RestController
-public class SystemUserController implements SystemUserControllerAPI {
-
-}
-

+ 0 - 21
src/main/java/com/video/controller/VideoCategoryController.java

@@ -1,21 +0,0 @@
-package com.video.controller;
-
-
-import com.video.api.VideoCategoryControllerAPI;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * <p>
- *  前端控制器
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@RestController
-public class VideoCategoryController implements VideoCategoryControllerAPI {
-
-}
-

+ 0 - 37
src/main/java/com/video/controller/VideoController.java

@@ -1,37 +0,0 @@
-package com.video.controller;
-
-
-import com.video.api.VideoControllerAPI;
-import com.video.model.utils.CommonResult;
-import com.video.services.VideoService;
-import io.swagger.annotations.ApiModelProperty;
-import io.swagger.annotations.ApiOperation;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-/**
- * <p>
- *  前端控制器
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@RestController
-public class VideoController implements VideoControllerAPI {
-
-    @Autowired
-    VideoService videoService;
-
-    @Override
-    @GetMapping("/video")
-    @ApiOperation(value = "查询视频",httpMethod = "GET")
-    @CrossOrigin
-    public CommonResult list() {
-        return videoService.getVideo();
-    }
-}
-

+ 0 - 21
src/main/java/com/video/controller/VideoElseController.java

@@ -1,21 +0,0 @@
-package com.video.controller;
-
-
-import com.video.api.VideoElseControllerAPI;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * <p>
- *  前端控制器
- * </p>
- *
- * @author ceshi
- * @since 2023-04-25
- */
-@RestController
-public class VideoElseController implements VideoElseControllerAPI {
-
-}
-

+ 0 - 21
src/main/java/com/video/controller/VideoPlayController.java

@@ -1,21 +0,0 @@
-package com.video.controller;
-
-
-import com.video.api.VideoPlayControllerAPI;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * <p>
- *  前端控制器
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@RestController
-public class VideoPlayController implements VideoPlayControllerAPI {
-
-}
-

+ 0 - 21
src/main/java/com/video/controller/VideoShareController.java

@@ -1,21 +0,0 @@
-package com.video.controller;
-
-
-import com.video.api.VideoShareControllerAPI;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-import org.springframework.web.bind.annotation.RestController;
-
-/**
- * <p>
- *  前端控制器
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@RestController
-public class VideoShareController implements VideoShareControllerAPI {
-
-}
-

+ 0 - 16
src/main/java/com/video/mapper/SystemAuthorityMapper.java

@@ -1,16 +0,0 @@
-package com.video.mapper;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.video.model.pojo.SystemAuthority;
-
-/**
- * <p>
- *  Mapper 接口
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-public interface SystemAuthorityMapper extends BaseMapper<SystemAuthority> {
-
-}

+ 0 - 16
src/main/java/com/video/mapper/SystemRoleMapper.java

@@ -1,16 +0,0 @@
-package com.video.mapper;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.video.model.pojo.SystemRole;
-
-/**
- * <p>
- *  Mapper 接口
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-public interface SystemRoleMapper extends BaseMapper<SystemRole> {
-
-}

+ 0 - 16
src/main/java/com/video/mapper/VideoCategoryMapper.java

@@ -1,16 +0,0 @@
-package com.video.mapper;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.video.model.pojo.VideoCategory;
-
-/**
- * <p>
- *  Mapper 接口
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-public interface VideoCategoryMapper extends BaseMapper<VideoCategory> {
-
-}

+ 0 - 16
src/main/java/com/video/mapper/VideoElseMapper.java

@@ -1,16 +0,0 @@
-package com.video.mapper;
-
-import com.video.model.pojo.VideoElse;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-
-/**
- * <p>
- *  Mapper 接口
- * </p>
- *
- * @author ceshi
- * @since 2023-04-25
- */
-public interface VideoElseMapper extends BaseMapper<VideoElse> {
-
-}

+ 0 - 16
src/main/java/com/video/mapper/VideoMapper.java

@@ -1,16 +0,0 @@
-package com.video.mapper;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.video.model.pojo.Video;
-
-/**
- * <p>
- *  Mapper 接口
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-public interface VideoMapper extends BaseMapper<Video> {
-
-}

+ 0 - 16
src/main/java/com/video/mapper/VideoPlayMapper.java

@@ -1,16 +0,0 @@
-package com.video.mapper;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.video.model.pojo.VideoPlay;
-
-/**
- * <p>
- *  Mapper 接口
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-public interface VideoPlayMapper extends BaseMapper<VideoPlay> {
-
-}

+ 0 - 16
src/main/java/com/video/mapper/VideoShareMapper.java

@@ -1,16 +0,0 @@
-package com.video.mapper;
-
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.video.model.pojo.VideoShare;
-
-/**
- * <p>
- *  Mapper 接口
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-public interface VideoShareMapper extends BaseMapper<VideoShare> {
-
-}

+ 0 - 72
src/main/java/com/video/model/pojo/SystemAuthority.java

@@ -1,72 +0,0 @@
-package com.video.model.pojo;
-
-import com.baomidou.mybatisplus.annotation.*;
-
-import java.util.Date;
-import java.io.Serializable;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.experimental.Accessors;
-
-/**
- * <p>
- *
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@Data
-@EqualsAndHashCode(callSuper = false)
-@Accessors(chain = true)
-@ApiModel(value="SystemAuthority对象", description="")
-public class SystemAuthority implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    @ApiModelProperty(value = "id")
-    @TableId(value = "id", type = IdType.AUTO)
-    private Long id;
-
-    @ApiModelProperty(value = "角色ID")
-    private Long roleId;
-
-    @ApiModelProperty(value = "菜单ID")
-    private Long menuId;
-
-    @ApiModelProperty(value = "是否新增 0 未拥有该权限 1 拥有该权限")
-    private String isCreate;
-
-    @ApiModelProperty(value = "是否删除 0 未拥有该权限 1 拥有该权限")
-    private String isDelete;
-
-    @ApiModelProperty(value = "是否编辑 0 未拥有该权限 1 拥有该权限")
-    private String isUpdate;
-
-    @ApiModelProperty(value = "是否查看 0 未拥有该权限 1 拥有该权限")
-    private String isRead;
-
-    @TableField(fill = FieldFill.INSERT)
-    @ApiModelProperty(value = "创建时间")
-    private Date createTime;
-
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    @ApiModelProperty(value = "更新时间")
-    private Date updateTime;
-
-    @TableField(fill = FieldFill.INSERT)
-    @ApiModelProperty(value = "创建人员")
-    private Long createUser;
-
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    @ApiModelProperty(value = "更新人员")
-    private Long updateUser;
-
-    @ApiModelProperty(value = "逻辑删除标记")
-    @TableLogic
-    private Long deleted;
-
-
-}

+ 0 - 72
src/main/java/com/video/model/pojo/Video.java

@@ -1,72 +0,0 @@
-package com.video.model.pojo;
-
-import com.baomidou.mybatisplus.annotation.*;
-
-import java.util.Date;
-import java.io.Serializable;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.experimental.Accessors;
-
-/**
- * <p>
- *
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@Data
-@EqualsAndHashCode(callSuper = false)
-@Accessors(chain = true)
-@ApiModel(value="Video对象", description="")
-public class Video implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    @ApiModelProperty(value = "id")
-    @TableId(value = "id", type = IdType.AUTO)
-    private Long id;
-
-    @ApiModelProperty(value = "视频类别ID")
-    private Long videoCategoryId;
-
-    @ApiModelProperty(value = "视频名称")
-    private String videoName;
-
-    @ApiModelProperty(value = "视频链接")
-    private String videoUrl;
-
-    @ApiModelProperty(value = "视频说明")
-    private String videoDescription;
-
-    @ApiModelProperty(value = "视频时长")
-    private Long videoDuration;
-
-    @TableField(fill = FieldFill.INSERT)
-    @ApiModelProperty(value = "创建时间")
-    private Date createTime;
-
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    @ApiModelProperty(value = "更新时间")
-    private Date updateTime;
-
-    @TableField(fill = FieldFill.INSERT)
-    @ApiModelProperty(value = "创建人员")
-    private Long createUser;
-
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    @ApiModelProperty(value = "更新人员")
-    private Long updateUser;
-
-    @ApiModelProperty(value = "逻辑删除标记")
-    @TableLogic
-    private Long deleted;
-
-    @ApiModelProperty(value = "视频封面图片路径")
-    private String pictureUrl;
-
-
-}

+ 0 - 60
src/main/java/com/video/model/pojo/VideoCategory.java

@@ -1,60 +0,0 @@
-package com.video.model.pojo;
-
-import com.baomidou.mybatisplus.annotation.*;
-
-import java.util.Date;
-import java.io.Serializable;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.experimental.Accessors;
-
-/**
- * <p>
- *
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@Data
-@EqualsAndHashCode(callSuper = false)
-@Accessors(chain = true)
-@ApiModel(value="VideoCategory对象", description="")
-public class VideoCategory implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    @ApiModelProperty(value = "id")
-    @TableId(value = "id", type = IdType.AUTO)
-    private Long id;
-
-    @ApiModelProperty(value = "类别名称")
-    private String categoryName;
-
-    @ApiModelProperty(value = "备注")
-    private String remarks;
-
-    @TableField(fill = FieldFill.INSERT)
-    @ApiModelProperty(value = "创建时间")
-    private Date createTime;
-
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    @ApiModelProperty(value = "更新时间")
-    private Date updateTime;
-
-    @TableField(fill = FieldFill.INSERT)
-    @ApiModelProperty(value = "创建人员")
-    private Long createUser;
-
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    @ApiModelProperty(value = "更新人员")
-    private Long updateUser;
-
-    @ApiModelProperty(value = "逻辑删除标记")
-    @TableLogic
-    private Long deleted;
-
-
-}

+ 0 - 63
src/main/java/com/video/model/pojo/VideoElse.java

@@ -1,63 +0,0 @@
-package com.video.model.pojo;
-
-import com.baomidou.mybatisplus.annotation.*;
-
-import java.util.Date;
-import java.io.Serializable;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.experimental.Accessors;
-
-/**
- * <p>
- * 
- * </p>
- *
- * @author ceshi
- * @since 2023-04-25
- */
-@Data
-@EqualsAndHashCode(callSuper = false)
-@Accessors(chain = true)
-@ApiModel(value="VideoElse对象", description="")
-public class VideoElse implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    @ApiModelProperty(value = "id")
-    @TableId(value = "id", type = IdType.AUTO)
-    private Long id;
-
-    @ApiModelProperty(value = "视频ID")
-    private Long videoId;
-
-    @ApiModelProperty(value = "文件下载路径")
-    private String videoElesUrl;
-
-    @ApiModelProperty(value = "文件下载名称")
-    private String videoElesName;
-
-    @TableField(fill = FieldFill.INSERT)
-    @ApiModelProperty(value = "创建时间")
-    private Date createTime;
-
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    @ApiModelProperty(value = "更新时间")
-    private Date updateTime;
-
-    @TableField(fill = FieldFill.INSERT)
-    @ApiModelProperty(value = "创建人员")
-    private Long createUser;
-
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    @ApiModelProperty(value = "更新人员")
-    private Long updateUser;
-
-    @ApiModelProperty(value = "逻辑删除标记")
-    @TableLogic
-    private Long deleted;
-
-
-}

+ 0 - 63
src/main/java/com/video/model/pojo/VideoPlay.java

@@ -1,63 +0,0 @@
-package com.video.model.pojo;
-
-import com.baomidou.mybatisplus.annotation.*;
-
-import java.util.Date;
-import java.io.Serializable;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.experimental.Accessors;
-
-/**
- * <p>
- *
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@Data
-@EqualsAndHashCode(callSuper = false)
-@Accessors(chain = true)
-@ApiModel(value="VideoPlay对象", description="")
-public class VideoPlay implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    @ApiModelProperty(value = "id")
-    @TableId(value = "id", type = IdType.AUTO)
-    private Long id;
-
-    @ApiModelProperty(value = "视频分享ID")
-    private Long videoShareId;
-
-    @ApiModelProperty(value = "播放地ip地址")
-    private String addressIp;
-
-    @ApiModelProperty(value = "播放设备码")
-    private String deviceCode;
-
-    @TableField(fill = FieldFill.INSERT)
-    @ApiModelProperty(value = "创建时间")
-    private Date createTime;
-
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    @ApiModelProperty(value = "更新时间")
-    private Date updateTime;
-
-    @TableField(fill = FieldFill.INSERT)
-    @ApiModelProperty(value = "创建人员")
-    private Long createUser;
-
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    @ApiModelProperty(value = "更新人员")
-    private Long updateUser;
-
-    @ApiModelProperty(value = "逻辑删除标记")
-    @TableLogic
-    private Long deleted;
-
-
-}

+ 0 - 63
src/main/java/com/video/model/pojo/VideoShare.java

@@ -1,63 +0,0 @@
-package com.video.model.pojo;
-
-import com.baomidou.mybatisplus.annotation.*;
-
-import java.util.Date;
-import java.io.Serializable;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.experimental.Accessors;
-
-/**
- * <p>
- *
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@Data
-@EqualsAndHashCode(callSuper = false)
-@Accessors(chain = true)
-@ApiModel(value="VideoShare对象", description="")
-public class VideoShare implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    @ApiModelProperty(value = "id")
-    @TableId(value = "id", type = IdType.AUTO)
-    private Long id;
-
-    @ApiModelProperty(value = "视频ID")
-    private Long videoId;
-
-    @ApiModelProperty(value = "用户ID")
-    private String userId;
-
-    @ApiModelProperty(value = "视频分享链接")
-    private String videoShareUrl;
-
-    @TableField(fill = FieldFill.INSERT)
-    @ApiModelProperty(value = "创建时间")
-    private Date createTime;
-
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    @ApiModelProperty(value = "更新时间")
-    private Date updateTime;
-
-    @TableField(fill = FieldFill.INSERT)
-    @ApiModelProperty(value = "创建人员")
-    private Long createUser;
-
-    @TableField(fill = FieldFill.INSERT_UPDATE)
-    @ApiModelProperty(value = "更新人员")
-    private Long updateUser;
-
-    @ApiModelProperty(value = "逻辑删除标记")
-    @TableLogic
-    private Long deleted;
-
-
-}

+ 0 - 26
src/main/java/com/video/model/pojo/resultData.java

@@ -1,26 +0,0 @@
-package com.video.model.pojo;
-
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import io.swagger.annotations.ApiModel;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.experimental.Accessors;
-
-import java.math.BigInteger;
-
-/**
- * @Author: binguo
- * @Date: 2023/4/4 星期二 10:51
- * @Description: com.video.model.pojo
- * @Version: 1.0
- */
-@Data
-@EqualsAndHashCode(callSuper = false)
-@Accessors(chain = true)
-@ApiModel(value="二维码", description="")
-@JsonInclude(JsonInclude.Include.NON_NULL)
-public class resultData {
-    public String message;
-    public Integer code;
-}

+ 0 - 41
src/main/java/com/video/model/vo/VideoVo.java

@@ -1,41 +0,0 @@
-package com.video.model.vo;
-
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableLogic;
-import com.video.model.pojo.Video;
-import com.video.model.pojo.VideoElse;
-import io.swagger.annotations.ApiModelProperty;
-import lombok.Data;
-
-import java.util.Date;
-import java.util.List;
-
-@Data
-public class VideoVo {
-
-    private Long id;
-
-    private Long videoCategoryId;
-
-    private String videoName;
-
-    private String videoUrl;
-
-    private String videoDescription;
-
-    private Long videoDuration;
-
-    private Date createTime;
-
-    private Date updateTime;
-
-    private Long createUser;
-
-    private Long updateUser;
-
-    private String pictureUrl;
-
-    private List<VideoElse> videoElseList;
-
-}

+ 0 - 18
src/main/java/com/video/services/PlaybackRecordService.java

@@ -1,18 +0,0 @@
-package com.video.services;
-
-import com.video.model.utils.CommonResult;
-
-import java.util.List;
-
-/**
- * @Author: binguo
- * @Date: 2023/3/23 星期四 15:46
- * @Description: com.video.services
- * @Version: 1.0
- */
-public interface PlaybackRecordService {
-//    //新增播放记录
-//    public CommonResult<Integer> insertPlaybackRecord(PlaybackRecord playback);
-//
-//    public CommonResult<List<PlaybackRecord>> getPlaybackRecords();
-}

+ 0 - 16
src/main/java/com/video/services/SystemAuthorityService.java

@@ -1,16 +0,0 @@
-package com.video.services;
-
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.video.model.pojo.SystemAuthority;
-
-/**
- * <p>
- *  服务类
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-public interface SystemAuthorityService extends IService<SystemAuthority> {
-
-}

+ 0 - 16
src/main/java/com/video/services/SystemRoleService.java

@@ -1,16 +0,0 @@
-package com.video.services;
-
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.video.model.pojo.SystemRole;
-
-/**
- * <p>
- *  服务类
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-public interface SystemRoleService extends IService<SystemRole> {
-
-}

+ 0 - 16
src/main/java/com/video/services/VideoCategoryService.java

@@ -1,16 +0,0 @@
-package com.video.services;
-
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.video.model.pojo.VideoCategory;
-
-/**
- * <p>
- *  服务类
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-public interface VideoCategoryService extends IService<VideoCategory> {
-
-}

+ 0 - 16
src/main/java/com/video/services/VideoElseService.java

@@ -1,16 +0,0 @@
-package com.video.services;
-
-import com.video.model.pojo.VideoElse;
-import com.baomidou.mybatisplus.extension.service.IService;
-
-/**
- * <p>
- *  服务类
- * </p>
- *
- * @author ceshi
- * @since 2023-04-25
- */
-public interface VideoElseService extends IService<VideoElse> {
-
-}

+ 0 - 16
src/main/java/com/video/services/VideoPlayService.java

@@ -1,16 +0,0 @@
-package com.video.services;
-
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.video.model.pojo.VideoPlay;
-
-/**
- * <p>
- *  服务类
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-public interface VideoPlayService extends IService<VideoPlay> {
-
-}

+ 0 - 22
src/main/java/com/video/services/VideoService.java

@@ -1,22 +0,0 @@
-package com.video.services;
-
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.video.model.pojo.Video;
-import com.video.model.utils.CommonResult;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-/**
- * <p>
- *  服务类
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-public interface VideoService extends IService<Video> {
-
-    CommonResult getVideo();
-
-}

+ 0 - 16
src/main/java/com/video/services/VideoShareService.java

@@ -1,16 +0,0 @@
-package com.video.services;
-
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.video.model.pojo.VideoShare;
-
-/**
- * <p>
- *  服务类
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-public interface VideoShareService extends IService<VideoShare> {
-
-}

+ 0 - 40
src/main/java/com/video/services/impl/PlaybackRecordImpl.java

@@ -1,40 +0,0 @@
-package com.video.services.impl;
-
-import com.video.model.utils.CommonResult;
-import com.video.services.PlaybackRecordService;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.cache.annotation.CacheEvict;
-import org.springframework.cache.annotation.Cacheable;
-import org.springframework.stereotype.Service;
-
-import java.util.List;
-
-/**
- * @Author: binguo
- * @Date: 2023/3/23 星期四 15:47
- * @Description: com.video.services.impl
- * @Version: 1.0
- */
-@Service
-public class PlaybackRecordImpl implements PlaybackRecordService {
-
-//    @Autowired
-//    private PlaybackRecordMapper playbackRecordMapper;
-//
-//    @Override
-//    @CacheEvict(value = "PlaybackRecords", allEntries = true)//allEntries清除整个缓存区
-//    public CommonResult<Integer> insertPlaybackRecord(PlaybackRecord playback) {
-//
-//        Integer result = playbackRecordMapper.insert(playback); // 帮我们自动生成id
-//        return CommonResult.ok().setResult(result);// 发现,id会自动回填
-//    }
-//
-//    @Override
-//    @Cacheable("PlaybackRecords")
-//    public CommonResult<List<PlaybackRecord>> getPlaybackRecords() {
-//        List<PlaybackRecord> result = playbackRecordMapper.selectList(null);
-//        return CommonResult.ok().setResult(result);
-//    }
-//
-
-}

+ 0 - 20
src/main/java/com/video/services/impl/SystemAuthorityServiceImpl.java

@@ -1,20 +0,0 @@
-package com.video.services.impl;
-
-import com.video.mapper.SystemAuthorityMapper;
-import com.video.model.pojo.SystemAuthority;
-import com.video.services.SystemAuthorityService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-
-/**
- * <p>
- *  服务实现类
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@Service
-public class SystemAuthorityServiceImpl extends ServiceImpl<SystemAuthorityMapper, SystemAuthority> implements SystemAuthorityService {
-
-}

+ 0 - 20
src/main/java/com/video/services/impl/SystemRoleServiceImpl.java

@@ -1,20 +0,0 @@
-package com.video.services.impl;
-
-import com.video.mapper.SystemRoleMapper;
-import com.video.model.pojo.SystemRole;
-import com.video.services.SystemRoleService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-
-/**
- * <p>
- *  服务实现类
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@Service
-public class SystemRoleServiceImpl extends ServiceImpl<SystemRoleMapper, SystemRole> implements SystemRoleService {
-
-}

+ 0 - 20
src/main/java/com/video/services/impl/VideoCategoryServiceImpl.java

@@ -1,20 +0,0 @@
-package com.video.services.impl;
-
-import com.video.mapper.VideoCategoryMapper;
-import com.video.model.pojo.VideoCategory;
-import com.video.services.VideoCategoryService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-
-/**
- * <p>
- *  服务实现类
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@Service
-public class VideoCategoryServiceImpl extends ServiceImpl<VideoCategoryMapper, VideoCategory> implements VideoCategoryService {
-
-}

+ 0 - 20
src/main/java/com/video/services/impl/VideoElseServiceImpl.java

@@ -1,20 +0,0 @@
-package com.video.services.impl;
-
-import com.video.model.pojo.VideoElse;
-import com.video.mapper.VideoElseMapper;
-import com.video.services.VideoElseService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-
-/**
- * <p>
- *  服务实现类
- * </p>
- *
- * @author ceshi
- * @since 2023-04-25
- */
-@Service
-public class VideoElseServiceImpl extends ServiceImpl<VideoElseMapper, VideoElse> implements VideoElseService {
-
-}

+ 0 - 20
src/main/java/com/video/services/impl/VideoPlayServiceImpl.java

@@ -1,20 +0,0 @@
-package com.video.services.impl;
-
-import com.video.mapper.VideoPlayMapper;
-import com.video.model.pojo.VideoPlay;
-import com.video.services.VideoPlayService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-
-/**
- * <p>
- *  服务实现类
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@Service
-public class VideoPlayServiceImpl extends ServiceImpl<VideoPlayMapper, VideoPlay> implements VideoPlayService {
-
-}

+ 0 - 111
src/main/java/com/video/services/impl/VideoServiceImpl.java

@@ -1,111 +0,0 @@
-package com.video.services.impl;
-
-import com.alibaba.fastjson.JSON;
-import com.baomidou.mybatisplus.core.conditions.Wrapper;
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
-import com.video.config.MySecurity;
-import com.video.handle.NonStaticResourceHttpRequestHandler;
-import com.video.mapper.VideoMapper;
-import com.video.model.pojo.Video;
-import com.video.model.pojo.VideoElse;
-import com.video.model.utils.CommonResult;
-import com.video.model.vo.VideoVo;
-import com.video.services.VideoElseService;
-import com.video.services.VideoService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import common.utils.EncryptionUtil;
-import org.aspectj.weaver.ast.Var;
-import org.springframework.beans.BeanUtils;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-import org.springframework.util.ObjectUtils;
-import org.springframework.util.StringUtils;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import java.io.IOException;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * <p>
- *  服务实现类
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@Service
-public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements VideoService {
-    private String uri = "http://139.199.2.142:8081/";
-//    private String uri = "http://139.199.2.142:8081/";
-    @Autowired
-    private NonStaticResourceHttpRequestHandler nonStaticResourceHttpRequestHandler;
-
-    @Autowired
-    MySecurity mySecurity;
-
-    @Autowired
-    VideoElseService videoElseService;
-
-    /**
-     * 将所有视频都展示,后期只需给参与项目的人展示 todo
-     * @return
-     */
-    @Override
-    public CommonResult getVideo() {
-        ArrayList<VideoVo> videos = new ArrayList<>();
-        Wrapper<Video> wrapper=new LambdaQueryWrapper<>();
-        List<Video> list = this.list(wrapper);
-        for (int i = 0; i < list.size(); i++) {
-            VideoVo videoVo = new VideoVo();
-            Video video = list.get(i);
-//            封面路径
-            String pictureUrl = video.getPictureUrl();
-            pictureUrl=uri+pictureUrl;
-            video.setPictureUrl(pictureUrl);
-//            视频路径
-            String videoUrl = video.getVideoUrl();
-            videoUrl=uri+videoUrl;
-            video.setVideoUrl(videoUrl);
-//            将video的参数通过工具类拷贝进vo类
-            BeanUtils.copyProperties(video,videoVo);
-
-//            通过video表的id查询该数据的资料
-            Long id = video.getId();
-            LambdaQueryWrapper<VideoElse> wrappers=new LambdaQueryWrapper<>();
-            wrappers.eq(VideoElse::getVideoId,id);
-            wrappers.select(VideoElse::getVideoElesName,VideoElse::getVideoElesUrl);
-            List<VideoElse> videoElseList = videoElseService.list(wrappers);
-//            下载路径已经配置好了跨域无需补全路径,直接用参数的值即可
-//            for (int j = 0; j < videoElseList.size(); j++) {
-//                VideoElse videoElse = videoElseList.get(j);
-//                String courseUrl = videoElse.getVideoElesUrl();
-//                courseUrl=uri+courseUrl;
-//                videoElse.setVideoElesUrl(courseUrl);
-//            }
-            videoVo.setVideoElseList(videoElseList);
-
-            videos.add(videoVo);
-        }
-        //        将返回值转成json字符串并加密
-        String s = JSON.toJSONString(videos);
-        Map<Object, Object> encryption = new HashMap<>();
-        try {
-//        返回的加密字符串太长,导致无法解析,每次返回加密40长度的字符串
-            EncryptionUtil encryptionUtil = new EncryptionUtil();
-            encryption = encryptionUtil.encryption(s,mySecurity.getPublicKey());
-        } catch (Exception e) {
-            return CommonResult.fail("500", "加密失败");
-        }
-        return CommonResult.ok(encryption);
-
-    }
-}

+ 0 - 20
src/main/java/com/video/services/impl/VideoShareServiceImpl.java

@@ -1,20 +0,0 @@
-package com.video.services.impl;
-
-import com.video.mapper.VideoShareMapper;
-import com.video.model.pojo.VideoShare;
-import com.video.services.VideoShareService;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import org.springframework.stereotype.Service;
-
-/**
- * <p>
- *  服务实现类
- * </p>
- *
- * @author ceshi
- * @since 2023-03-30
- */
-@Service
-public class VideoShareServiceImpl extends ServiceImpl<VideoShareMapper, VideoShare> implements VideoShareService {
-
-}

+ 1 - 7
src/main/java/common/exception/EmsExceptionHandler.java

@@ -1,28 +1,22 @@
 package common.exception;
 
 import com.fasterxml.jackson.core.JsonParseException;
-import com.video.model.pojo.SmsCode;
-import com.video.model.utils.CommonResult;
+import com.template.model.result.CommonResult;
 import common.result.ResponseStatusEnum;
 import org.mybatis.spring.MyBatisSystemException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
-import org.springframework.dao.DataAccessResourceFailureException;
 import org.springframework.http.converter.HttpMessageNotReadableException;
-import org.springframework.mail.MailSendException;
 import org.springframework.validation.BindingResult;
 import org.springframework.validation.FieldError;
 import org.springframework.web.HttpRequestMethodNotSupportedException;
 import org.springframework.web.bind.MethodArgumentNotValidException;
 import org.springframework.web.bind.MissingServletRequestParameterException;
-import org.springframework.web.bind.WebDataBinder;
 import org.springframework.web.bind.annotation.ControllerAdvice;
 import org.springframework.web.bind.annotation.ExceptionHandler;
-import org.springframework.web.bind.annotation.InitBinder;
 import org.springframework.web.bind.annotation.ResponseBody;
 
 import com.fasterxml.jackson.databind.exc.InvalidFormatException;
-import org.springframework.web.context.request.WebRequest;
 import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException;
 
 import java.util.*;

+ 0 - 0
src/main/java/common/utils/EncryptionUtil.java


部分文件因文件數量過多而無法顯示