浏览代码

初始化

guq 6 年之前
父节点
当前提交
a82921c414
共有 51 个文件被更改,包括 449 次插入1226 次删除
  1. 434 303
      .idea/workspace.xml
  2. 1 1
      applications/school/school-api/pom.xml
  3. 6 0
      applications/websocket/websocket-server/src/main/docker/Dockerfile
  4. 6 0
      applications/wechat/wechat-server/src/main/docker/Dockerfile
  5. 1 1
      base-servers/eureka-server/pom.xml
  6. 1 1
      base-servers/eureka-server/target/classes/application.yml
  7. 二进制
      base-servers/file/file-dto/target/classes/com/usoftchina/smartschool/file/dto/BaseFileInfo.class
  8. 二进制
      base-servers/file/file-dto/target/classes/com/usoftchina/smartschool/file/dto/FileInfoDTO.class
  9. 二进制
      base-servers/file/file-dto/target/classes/com/usoftchina/smartschool/file/dto/FolderDTO.class
  10. 二进制
      base-servers/file/file-dto/target/classes/com/usoftchina/smartschool/file/dto/FolderSaveDTO.class
  11. 0 93
      base-servers/file/file-server/target/classes/application.yml
  12. 二进制
      base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/FileApplication.class
  13. 二进制
      base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/constant/FileConstant.class
  14. 二进制
      base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/constant/FileType.class
  15. 二进制
      base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/controller/FileController.class
  16. 二进制
      base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/mapper/FileInfoMapper.class
  17. 二进制
      base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/po/FileInfo$Builder.class
  18. 二进制
      base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/po/FileInfo.class
  19. 二进制
      base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/service/FileInfoService.class
  20. 二进制
      base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/service/impl/FileInfoServiceImpl.class
  21. 二进制
      base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/util/FileTypeUtils.class
  22. 0 12
      base-servers/file/file-server/target/classes/config/application-docker-dev.yml
  23. 0 26
      base-servers/file/file-server/target/classes/config/application-docker-prod.yml
  24. 0 12
      base-servers/file/file-server/target/classes/config/application-docker-test.yml
  25. 0 10
      base-servers/file/file-server/target/classes/config/application-docker.yml
  26. 0 0
      base-servers/file/file-server/target/classes/i18n/messages_en_US.properties
  27. 0 0
      base-servers/file/file-server/target/classes/i18n/messages_zh_CN.properties
  28. 0 131
      base-servers/file/file-server/target/classes/logback-spring.xml
  29. 0 219
      base-servers/file/file-server/target/classes/mapper/FileInfoMapper.xml
  30. 0 218
      base-servers/gateway-server/target/classes/application.yml
  31. 二进制
      base-servers/gateway-server/target/classes/auth/pub.key
  32. 0 15
      base-servers/gateway-server/target/classes/banner.txt
  33. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/GatewayApplication.class
  34. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/config/AuthConfig.class
  35. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/config/CookieConfig.class
  36. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/config/ErrorConfig.class
  37. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/config/WebConfig.class
  38. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/context/SpringContextListener.class
  39. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/error/MyExceptionAdvice.class
  40. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/error/MyExceptionHandler.class
  41. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/interceptor/ServiceFeignInterceptor.class
  42. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/util/AntPathRequestMatcher$1.class
  43. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/util/AntPathRequestMatcher$Matcher.class
  44. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/util/AntPathRequestMatcher$SpringAntMatcher.class
  45. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/util/AntPathRequestMatcher$SubpathMatcher.class
  46. 二进制
      base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/util/AntPathRequestMatcher.class
  47. 0 12
      base-servers/gateway-server/target/classes/config/application-docker-dev.yml
  48. 0 19
      base-servers/gateway-server/target/classes/config/application-docker-prod.yml
  49. 0 12
      base-servers/gateway-server/target/classes/config/application-docker-test.yml
  50. 0 10
      base-servers/gateway-server/target/classes/config/application-docker.yml
  51. 0 131
      base-servers/gateway-server/target/classes/logback-spring.xml

文件差异内容过多而无法显示
+ 434 - 303
.idea/workspace.xml


+ 1 - 1
applications/school/school-api/pom.xml

@@ -9,7 +9,7 @@
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
-    <artifactId>school-dto</artifactId>
+    <artifactId>school-api</artifactId>
 
 
 </project>

+ 6 - 0
applications/websocket/websocket-server/src/main/docker/Dockerfile

@@ -0,0 +1,6 @@
+FROM frolvlad/alpine-oraclejdk8:slim
+VOLUME /tmp
+ADD websocket-server-1.0.0-SNAPSHOT.jar app.jar
+RUN sh -c 'touch /app.jar'
+ENV JAVA_OPTS=""
+ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]

+ 6 - 0
applications/wechat/wechat-server/src/main/docker/Dockerfile

@@ -0,0 +1,6 @@
+FROM frolvlad/alpine-oraclejdk8:slim
+VOLUME /tmp
+ADD wechat-server-1.0.0-SNAPSHOT.jar app.jar
+RUN sh -c 'touch /app.jar'
+ENV JAVA_OPTS=""
+ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]

+ 1 - 1
base-servers/eureka-server/pom.xml

@@ -9,7 +9,7 @@
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
-    <artifactId>eureke-server</artifactId>
+    <artifactId>eureka-server</artifactId>
 
     <dependencies>
         <dependency>

+ 1 - 1
base-servers/eureka-server/target/classes/application.yml

@@ -26,7 +26,7 @@ server:
   tomcat:
     uri-encoding: UTF-8
 info:
-  name: 'eureke-server'
+  name: 'eureka-server'
   description: 'smartschool-platform'
   version: '1.0.0-SNAPSHOT'
   spring-boot-version: '2.0.4.RELEASE'

二进制
base-servers/file/file-dto/target/classes/com/usoftchina/smartschool/file/dto/BaseFileInfo.class


二进制
base-servers/file/file-dto/target/classes/com/usoftchina/smartschool/file/dto/FileInfoDTO.class


二进制
base-servers/file/file-dto/target/classes/com/usoftchina/smartschool/file/dto/FolderDTO.class


二进制
base-servers/file/file-dto/target/classes/com/usoftchina/smartschool/file/dto/FolderSaveDTO.class


+ 0 - 93
base-servers/file/file-server/target/classes/application.yml

@@ -1,93 +0,0 @@
-spring:
-  application:
-    name: file-server
-  security:
-    user:
-      name: admin
-      password: select111***
-  rabbitmq:
-    host: 10.10.100.166
-    port: 5672
-    virtual-host: school
-    username: school
-    password: select123***
-  zipkin:
-    sender:
-      type: rabbit
-    locator:
-      discovery:
-        enabled: true
-  sleuth:
-    sampler:
-      probability: 1.0
-  datasource:
-    driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://10.10.100.166:3306/smart_campus?characterEncoding=utf-8&useSSL=false
-    username: root
-    password: select111***
-    hikari:
-      minimum-idle: 5
-      maximum-pool-size: 50
-      idle-timeout: 30000
-      max-lifetime: 1800000
-      connection-timeout: 30000
-  messages:
-    basename: i18n/messages
-  redis:
-    host: 10.10.100.166
-    port: 6379
-  jackson:
-    date-format: yyyy-MM-dd HH:mm:ss
-    time-zone: GMT+8
-  profiles:
-    active: dev
-eureka:
-  instance:
-    leaseRenewalIntervalInSeconds: 10
-    health-check-url-path: /actuator/health
-    status-page-url-path: /actuator/info
-    prefer-ip-address: true
-    metadata-map:
-      user.name: ${spring.security.user.name}
-      user.password: ${spring.security.user.password}
-  client:
-    registryFetchIntervalSeconds: 5
-    serviceUrl:
-      defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@10.1.81.61:8510/eureka/
-server:
-  port: 9540
-  tomcat:
-    uri-encoding: UTF-8
-management:
-  endpoints:
-    web:
-      exposure:
-        include: "*"
-  endpoint:
-    health:
-      show-details: always
-    shutdown:
-      enabled: true
-    restart:
-      enabled: true
-info:
-  name: 'file-server'
-  description: 'smartschool-platform'
-  version: '1.0.0-SNAPSHOT'
-  spring-boot-version: '2.0.4.RELEASE'
-  spring-cloud-version: 'Finchley.SR1'
-mybatis:
-  type-aliases-package: com.usoftchina.smartschool.file.po
-  mapper-locations: classpath:mapper/*.xml
-auth:
-  public-key: auth/pub.key
-fdfs:
-  so-timeout: 1500
-  connect-timeout: 600
-  thumb-image:
-    width: 150
-    height: 150
-  tracker-list:
-    - 10.1.81.1:22122
-file:
-  base-url: http://10.1.81.1:8888/

二进制
base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/FileApplication.class


二进制
base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/constant/FileConstant.class


二进制
base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/constant/FileType.class


二进制
base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/controller/FileController.class


二进制
base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/mapper/FileInfoMapper.class


二进制
base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/po/FileInfo$Builder.class


二进制
base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/po/FileInfo.class


二进制
base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/service/FileInfoService.class


二进制
base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/service/impl/FileInfoServiceImpl.class


二进制
base-servers/file/file-server/target/classes/com/usoftchina/smartschool/file/util/FileTypeUtils.class


+ 0 - 12
base-servers/file/file-server/target/classes/config/application-docker-dev.yml

@@ -1,12 +0,0 @@
-eureka:
-  instance:
-    hostname: saas-file-server-dev
-    prefer-ip-address: false
-  client:
-    serviceUrl:
-      defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@saas-eureka-server-dev:8510/eureka/
-spring:
-  rabbitmq:
-    virtual-host: dev
-server:
-  port: 8650

+ 0 - 26
base-servers/file/file-server/target/classes/config/application-docker-prod.yml

@@ -1,26 +0,0 @@
-eureka:
-  instance:
-    hostname: saas-file-server
-    prefer-ip-address: false
-  client:
-    serviceUrl:
-      defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@saas-eureka-server:8500/eureka/
-spring:
-  rabbitmq:
-    host: 10.10.100.103
-    port: 5672
-    virtual-host: docker
-    username: saas
-    password: select123***
-  datasource:
-    url: jdbc:mysql://10.10.100.18:3306/saas_file?characterEncoding=utf-8&useSSL=false
-    username: saas
-    password: select111***
-  redis:
-    host: 10.10.100.173
-    port: 6379
-fdfs:
-  tracker-list:
-    - 10.10.100.200:22122
-logging:
-  destination: 10.10.100.160:5000

+ 0 - 12
base-servers/file/file-server/target/classes/config/application-docker-test.yml

@@ -1,12 +0,0 @@
-eureka:
-  instance:
-    hostname: saas-file-server-test
-    prefer-ip-address: false
-  client:
-    serviceUrl:
-      defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@saas-eureka-server-test:8515/eureka/
-spring:
-  rabbitmq:
-    virtual-host: test
-server:
-  port: 8655

+ 0 - 10
base-servers/file/file-server/target/classes/config/application-docker.yml

@@ -1,10 +0,0 @@
-eureka:
-  instance:
-    hostname: saas-file-server
-    prefer-ip-address: false
-  client:
-    serviceUrl:
-      defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@saas-eureka-server:8500/eureka/
-spring:
-  rabbitmq:
-    virtual-host: docker

+ 0 - 0
base-servers/file/file-server/target/classes/i18n/messages_en_US.properties


+ 0 - 0
base-servers/file/file-server/target/classes/i18n/messages_zh_CN.properties


+ 0 - 131
base-servers/file/file-server/target/classes/logback-spring.xml

@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<configuration>
-    <include resource="org/springframework/boot/logging/logback/base.xml" />
-    <jmxConfigurator/>
-
-    <!--
-    %m
-    输出代码中指定的消息
-    %p
-    输出优先级,即DEBUG,INFO,WARN,ERROR,FATAL
-    %r
-    输出自应用启动到输出该log信息耗费的毫秒数
-    %c
-    输出所属的类目,通常就是所在类的全名
-    %t
-    输出产生该日志事件的线程名
-    %n
-    输出一个回车换行符,Windows平台为“\r\n”,Unix平台为“\n”
-    %d
-    输出日志时间点的日期或时间,默认格式为ISO8601,也可以在其后指定格式,比如:%d{yyy MMM dd HH:mm:ss,SSS},
-    输出类似:2002年10月18日 22:10:28,921
-    %l
-    输出日志事件的发生位置,包括类目名、发生的线程,以及在代码中的行数。举例:Testlog4.main(TestLog4.java:10)
-    -->
-
-    <springProperty scope="context" name="log.path" source="logging.path" defaultValue="/var/log/smartschool/file-server"/>
-    <springProperty scope="context" name="spring.application.name" source="spring.application.name" defaultValue="file-server"/>
-    <springProperty scope="context" name="spring.profiles.active" source="spring.profiles.active" defaultValue="dev"/>
-    <springProperty scope="context" name="common-pattern" source="logging.common-pattern" defaultValue="%d{yyyy-MM-dd HH:mm:ss.SSS}:[%5p] [%t:%r] [%C{1}:%M:%L] --> %m%n"/>
-    <springProperty scope="context" name="log.level.console" source="logging.level.console" defaultValue="INFO"/>
-    <springProperty scope="context" name="log.destination" source="logging.destination" defaultValue="10.1.81.1:5000"/>
-
-    <contextName>${spring.application.name}-${spring.profiles.active}-logback</contextName>
-
-    <appender name="CONSOLE_APPENDER" class="ch.qos.logback.core.ConsoleAppender">
-        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
-            <level>${log.level.console}</level>
-        </filter>
-        <encoder>
-            <pattern>${common-pattern}</pattern>
-        </encoder>
-    </appender>
-
-    <appender name="ROOT_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">
-        <file>${log.path}/root.log</file>
-        <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
-            <fileNamePattern>${log.path}/%d{yyyy-MM}/root-%d{yyyy-MM-dd}-%i.log.gz</fileNamePattern>
-            <maxFileSize>128MB</maxFileSize>
-            <maxHistory>7</maxHistory>
-            <totalSizeCap>20GB</totalSizeCap>
-        </rollingPolicy>
-        <encoder>
-            <pattern>${common-pattern}</pattern>
-        </encoder>
-    </appender>
-
-    <!-- Appender to log in a JSON format -->
-    <appender name="JSON_APPENDER" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
-        <destination>${log.destination}</destination>
-        <encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
-            <providers>
-                <pattern>
-                    <pattern>
-                        {
-                        "severity": "%level",
-                        "service": "${spring.application.name:-}",
-                        "trace": "%X{X-B3-TraceId:-}",
-                        "span": "%X{X-B3-SpanId:-}",
-                        "parent": "%X{X-B3-ParentSpanId:-}",
-                        "exportable": "%X{X-Span-Export:-}",
-                        "pid": "${PID:-}",
-                        "thread": "%thread",
-                        "class": "%logger{40}",
-                        "rest": "%message"
-                        }
-                    </pattern>
-                </pattern>
-            </providers>
-        </encoder>
-    </appender>
-
-    <logger name="org.springframework" level="INFO"/>
-    <logger name="com.usoftchina.smartschool" level="INFO"/>
-
-    <springProfile name="dev">
-        <root level="INFO">
-            <appender-ref ref="CONSOLE_APPENDER"/>
-        </root>
-    </springProfile>
-
-    <springProfile name="test">
-        <root level="INFO">
-            <appender-ref ref="CONSOLE_APPENDER"/>
-            <appender-ref ref="ROOT_APPENDER"/>
-        </root>
-    </springProfile>
-
-    <springProfile name="docker">
-        <logger name="org.springframework" level="WARN"/>
-        <logger name="com.usoftchina.smartschool" level="WARN"/>
-        <root level="WARN">
-            <appender-ref ref="CONSOLE_APPENDER"/>
-            <appender-ref ref="JSON_APPENDER"/>
-        </root>
-    </springProfile>
-
-    <springProfile name="docker-dev">
-        <root level="INFO">
-            <appender-ref ref="CONSOLE_APPENDER"/>
-        </root>
-    </springProfile>
-
-    <springProfile name="docker-test">
-        <logger name="org.springframework" level="WARN"/>
-        <logger name="com.usoftchina.smartschool" level="WARN"/>
-        <root level="WARN">
-            <appender-ref ref="CONSOLE_APPENDER"/>
-            <appender-ref ref="JSON_APPENDER"/>
-        </root>
-    </springProfile>
-
-    <springProfile name="docker-prod">
-        <logger name="org.springframework" level="WARN"/>
-        <logger name="com.usoftchina.smartschool" level="WARN"/>
-        <root level="WARN">
-            <appender-ref ref="CONSOLE_APPENDER"/>
-            <appender-ref ref="JSON_APPENDER"/>
-        </root>
-    </springProfile>
-
-</configuration>

+ 0 - 219
base-servers/file/file-server/target/classes/mapper/FileInfoMapper.xml

@@ -1,219 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
-<mapper namespace="com.usoftchina.smartschool.file.mapper.FileInfoMapper">
-
-    <insert id="insert" parameterType="com.usoftchina.smartschool.file.po.FileInfo"
-            useGeneratedKeys="true" keyProperty="id">
-        insert into f_fileinfo(folder_id,name,full_path,mime,ext,type,size,company_id,
-        creator_id,create_time,updater_id,update_time,deleted,deleter_id,delete_time)
-        values (#{folderId,jdbcType=BIGINT},#{name,jdbcType=VARCHAR},#{fullPath,jdbcType=VARCHAR},
-        #{mime,jdbcType=VARCHAR},#{ext,jdbcType=VARCHAR},#{type,jdbcType=VARCHAR},#{size,jdbcType=BIGINT},
-        #{companyId,jdbcType=BIGINT},#{creatorId,jdbcType=BIGINT},#{createTime,jdbcType=TIMESTAMP},
-        #{updaterId,jdbcType=BIGINT},#{updateTime,jdbcType=TIMESTAMP},#{deleted,jdbcType=BOOLEAN},
-        #{deleterId,jdbcType=BIGINT},#{deleteTime,jdbcType=TIMESTAMP})
-    </insert>
-    <insert id="insertSelective" parameterType="com.usoftchina.smartschool.file.po.FileInfo"
-            useGeneratedKeys="true" keyProperty="id">
-        insert into ac_account
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="folderId != null">
-                folder_id,
-            </if>
-            <if test="name != null">
-                name,
-            </if>
-            <if test="fullPath != null">
-                full_path,
-            </if>
-            <if test="mime != null">
-                mime,
-            </if>
-            <if test="ext != null">
-                ext,
-            </if>
-            <if test="type != null">
-                type,
-            </if>
-            <if test="size != null">
-                size,
-            </if>
-            <if test="companyId != null">
-                company_id,
-            </if>
-            <if test="creatorId != null">
-                creator_id,
-            </if>
-            <if test="createTime != null">
-                create_time,
-            </if>
-            <if test="updaterId != null">
-                updater_id,
-            </if>
-            <if test="updateTime != null">
-                update_time,
-            </if>
-            <if test="deleted != null">
-                deleted,
-            </if>
-            <if test="deleterId != null">
-                deleter_id,
-            </if>
-            <if test="deleteTime != null">
-                delete_time,
-            </if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="folderId != null">
-                #{folder_id,jdbcType=BIGINT},
-            </if>
-            <if test="name != null">
-                #{name,jdbcType=VARCHAR},
-            </if>
-            <if test="fullPath != null">
-                #{full_path,jdbcType=VARCHAR},
-            </if>
-            <if test="mime != null">
-                #{mime,jdbcType=VARCHAR},
-            </if>
-            <if test="ext != null">
-                #{ext,jdbcType=VARCHAR},
-            </if>
-            <if test="type != null">
-                #{type,jdbcType=VARCHAR},
-            </if>
-            <if test="size != null">
-                #{size,jdbcType=BIGINT},
-            </if>
-            <if test="companyId != null">
-                #{company_id,jdbcType=BIGINT},
-            </if>
-            <if test="creatorId != null">
-                #{creatorId,jdbcType=BIGINT},
-            </if>
-            <if test="createTime != null">
-                #{createTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="updaterId != null">
-                #{updaterId,jdbcType=BIGINT},
-            </if>
-            <if test="updateTime != null">
-                #{updateTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="deleted != null">
-                #{deleted,jdbcType=BOOLEAN},
-            </if>
-            <if test="deleterId != null">
-                #{deleter_id,jdbcType=BIGINT},
-            </if>
-            <if test="deleteTime != null">
-                #{delete_time,jdbcType=TIMESTAMP},
-            </if>
-        </trim>
-    </insert>
-    <update id="updateByPrimaryKey" parameterType="com.usoftchina.smartschool.file.po.FileInfo">
-        update f_fileinfo set
-        folder_id=#{folderId,jdbcType=BIGINT},name=#{name,jdbcType=VARCHAR},full_path=#{fullPath,jdbcType=VARCHAR},
-        mime=#{mime,jdbcType=VARCHAR},ext=#{ext,jdbcType=VARCHAR},type=#{type,jdbcType=VARCHAR},
-        size=#{size,jdbcType=BIGINT},company_id=#{companyId,jdbcType=BIGINT},
-        creator_id=#{creatorId,jdbcType=BIGINT},create_time=#{createTime,jdbcType=TIMESTAMP},
-        updater_id=#{updaterId,jdbcType=BIGINT},update_time=#{updateTime,jdbcType=TIMESTAMP},
-        deleted=#{deleted,jdbcType=BOOLEAN},deleter_id=#{deleterId,jdbcType=BIGINT},
-        delete_time=#{deleteTime,jdbcType=TIMESTAMP} where id=#{id,jdbcType=BIGINT}
-    </update>
-    <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.smartschool.file.po.FileInfo">
-        update f_fileinfo
-        <set>
-            <if test="folderId != null">
-                folder_id=#{folderId,jdbcType=BIGINT},
-            </if>
-            <if test="name != null">
-                name=#{name,jdbcType=VARCHAR},
-            </if>
-            <if test="fullPath != null">
-                full_path=#{fullPath,jdbcType=VARCHAR},
-            </if>
-            <if test="mime != null">
-                mime=#{mime,jdbcType=VARCHAR},
-            </if>
-            <if test="ext != null">
-                ext=#{ext,jdbcType=VARCHAR},
-            </if>
-            <if test="type != null">
-                type=#{type,jdbcType=VARCHAR},
-            </if>
-            <if test="size != null">
-                size=#{size,jdbcType=BIGINT},
-            </if>
-            <if test="companyId != null">
-                company_id=#{companyId,jdbcType=BIGINT},
-            </if>
-            <if test="creatorId != null">
-                creator_id=#{creatorId,jdbcType=BIGINT},
-            </if>
-            <if test="createTime != null">
-                create_time=#{createTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="updaterId != null">
-                updater_id=#{updaterId,jdbcType=BIGINT},
-            </if>
-            <if test="updateTime != null">
-                update_time=#{updateTime,jdbcType=TIMESTAMP})
-            </if>
-            <if test="deleted != null">
-                deleted=#{deleted,jdbcType=BOOLEAN},
-            </if>
-            <if test="deleterId != null">
-                deleter_id=#{deleterId,jdbcType=BIGINT},
-            </if>
-            <if test="deleteTime != null">
-                delete_time=#{deleteTime,jdbcType=TIMESTAMP})
-            </if>
-        </set>
-        where id=#{id,jdbcType=BIGINT}
-    </update>
-    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
-        delete from f_fileinfo where id=#{id}
-    </delete>
-
-    <resultMap id="BaseResultMap" type="com.usoftchina.smartschool.file.po.FileInfo">
-        <id column="id" jdbcType="BIGINT" property="id"/>
-        <result column="folder_id" jdbcType="BIGINT" property="folderId"/>
-        <result column="name" jdbcType="VARCHAR" property="name"/>
-        <result column="full_path" jdbcType="VARCHAR" property="fullPath"/>
-        <result column="mime" jdbcType="VARCHAR" property="mime"/>
-        <result column="ext" jdbcType="VARCHAR" property="ext"/>
-        <result column="type" jdbcType="VARCHAR" property="type"/>
-        <result column="size" jdbcType="BIGINT" property="size"/>
-        <result column="company_id" jdbcType="INTEGER" property="companyId"/>
-        <result column="creator_id" jdbcType="BIGINT" property="creatorId"/>
-        <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
-        <result column="updater_id" jdbcType="BIGINT" property="updaterId"/>
-        <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
-        <result column="deleted" jdbcType="BOOLEAN" property="deleted"/>
-        <result column="deleter_id" jdbcType="BIGINT" property="deleterId"/>
-        <result column="delete_time" jdbcType="TIMESTAMP" property="deleteTime"/>
-    </resultMap>
-    <sql id="baseColumns">
-        f_fileinfo.id,f_fileinfo.folder_id,f_fileinfo.name,f_fileinfo.full_path,f_fileinfo.mime,f_fileinfo.ext,
-        f_fileinfo.type,f_fileinfo.size,f_fileinfo.company_id,f_fileinfo.creator_id,f_fileinfo.create_time,
-        f_fileinfo.updater_id,f_fileinfo.update_time,f_fileinfo.deleted,f_fileinfo.deleter_id,f_fileinfo.delete_time
-    </sql>
-
-    <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
-        select <include refid="baseColumns"/> from f_fileinfo where id=#{id}
-    </select>
-    <select id="selectByFullPath" parameterType="java.lang.String" resultMap="BaseResultMap">
-        select <include refid="baseColumns"/> from f_fileinfo where full_path=#{fullPath}
-    </select>
-    <select id="selectByFolderId" parameterType="java.lang.Long" resultMap="BaseResultMap">
-        select <include refid="baseColumns"/> from f_fileinfo where folder_id=#{folderId} order by id
-    </select>
-    <select id="selectVisibleByFolderId" parameterType="java.lang.Long" resultMap="BaseResultMap">
-        select <include refid="baseColumns"/> from f_fileinfo where folder_id=#{folderId}
-        and deleted=false order by id
-    </select>
-    <select id="selectDeletedByFolderId" parameterType="java.lang.Long" resultMap="BaseResultMap">
-        select <include refid="baseColumns"/> from f_fileinfo where folder_id=#{folderId}
-        and deleted=true order by id
-    </select>
-</mapper>

+ 0 - 218
base-servers/gateway-server/target/classes/application.yml

@@ -1,218 +0,0 @@
-spring:
-  profiles:
-    active: dev
-  application:
-    name: gateway-server
-  servlet:
-    multipart:
-      max-file-size: 2000Mb
-      max-request-size: 2500Mb
-  security:
-    user:
-      name: admin
-      password: select111***
-  rabbitmq:
-    host: 10.10.100.166
-    port: 5672
-    virtual-host: school
-    username: school
-    password: select123***
-  zipkin:
-    sender:
-      type: rabbit
-    locator:
-      discovery:
-        enabled: true
-  sleuth:
-    sampler:
-      probability: 1.0
-  cloud:
-    gateway:
-      discovery:
-        locator:
-          enabled: true
-      routes:
-      - id: UI-SERVER
-        uri: lb://UI-SERVER
-        predicates:
-        - Path=/api/ui/**
-        filters:
-        - RewritePath=/api/ui/(?<segment>.*), /$\{segment}
-      - id: ACCOUNT-SERVER
-        uri: lb://ACCOUNT-SERVER
-        predicates:
-        - Path=/api/account/**
-        filters:
-        - RewritePath=/api/account/(?<segment>.*), /$\{segment}
-      - id: AUTH-SERVER
-        uri: lb://AUTH-SERVER
-        predicates:
-        - Path=/api/auth/**
-        filters:
-        - RewritePath=/api/auth/(?<segment>.*), /$\{segment}
-      - id: FILE-SERVER
-        uri: lb://FILE-SERVER
-        predicates:
-        - Path=/api/file/**
-        filters:
-        - RewritePath=/api/file/(?<segment>.*), /$\{segment}
-      - id: MAIL-SERVER
-        uri: lb://MAIL-SERVER
-        predicates:
-        - Path=/api/mail/**
-        filters:
-        - RewritePath=/api/mail/(?<segment>.*), /$\{segment}
-      - id: SMS-SERVER
-        uri: lb://SMS-SERVER
-        predicates:
-        - Path=/api/sms/**
-        filters:
-        - RewritePath=/api/sms/(?<segment>.*), /$\{segment}
-      - id: PURCHASE-SERVER
-        uri: lb://PURCHASE-SERVER
-        predicates:
-        - Path=/api/purchase/**
-        filters:
-        - RewritePath=/api/purchase/(?<segment>.*), /$\{segment}
-      - id: SALE-SERVER
-        uri: lb://SALE-SERVER
-        predicates:
-        - Path=/api/sale/**
-        filters:
-        - RewritePath=/api/sale/(?<segment>.*), /$\{segment}
-      - id: STORAGE-SERVER
-        uri: lb://STORAGE-SERVER
-        predicates:
-        - Path=/api/storage/**
-        filters:
-        - RewritePath=/api/storage/(?<segment>.*), /$\{segment}
-      - id: DOCUMENT-SERVER
-        uri: lb://DOCUMENT-SERVER
-        predicates:
-        - Path=/api/document/**
-        filters:
-        - RewritePath=/api/document/(?<segment>.*), /$\{segment}
-      - id: MONEY-SERVER
-        uri: lb://MONEY-SERVER
-        predicates:
-        - Path=/api/money/**
-        filters:
-        - RewritePath=/api/money/(?<segment>.*), /$\{segment}
-      - id: COMMONS-SERVER
-        uri: lb://COMMONS-SERVER
-        predicates:
-        - Path=/api/commons/**
-        filters:
-        - RewritePath=/api/commons/(?<segment>.*), /$\{segment}
-      - id: SOCKET-SERVER
-        uri: lb:ws://SOCKET-SERVER
-        predicates:
-        - Path=/ws/**
-      - id: OPERATION-AUTH-SERVER
-        uri: lb://OPERATION-AUTH-SERVER
-        predicates:
-        - Path=/api/oper_auth/**
-        filters:
-        - RewritePath=/api/oper_auth/(?<segment>.*), /$\{segment}
-      - id: OPERATION-SERVER
-        uri: lb://OPERATION-SERVER
-        predicates:
-        - Path=/api/operation/**
-        filters:
-        - RewritePath=/api/operation/(?<segment>.*), /$\{segment}
-      - id: TRANSFERS-SERVER
-        uri: lb://TRANSFERS-SERVER
-        predicates:
-        - Path=/api/open/**
-        filters:
-        - RewritePath=/api/open/(?<segment>.*), /$\{segment}
-  redis:
-    host: 10.10.100.166
-    port: 6379
-  jackson:
-    date-format: yyyy-MM-dd HH:mm:ss
-    time-zone: GMT+8
-server:
-  port: 9520
-  tomcat:
-    uri-encoding: UTF-8
-eureka:
-  instance:
-    leaseRenewalIntervalInSeconds: 10
-    health-check-url-path: /actuator/health
-    status-page-url-path: /actuator/info
-    prefer-ip-address: true
-    metadata-map:
-      user.name: ${spring.security.user.name}
-      user.password: ${spring.security.user.password}
-  client:
-    registryFetchIntervalSeconds: 5
-    serviceUrl:
-      defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@127.0.0.1:9500/eureka/
-management:
-  endpoints:
-    web:
-      exposure:
-        include: "*"
-  endpoint:
-    health:
-      show-details: always
-    shutdown:
-      enabled: true
-    restart:
-      enabled: true
-feign:
-  hystrix:
-    enabled: true
-  compression:
-    request:
-      enabled: true
-      mime-types: text/xml,application/xml,application/json
-      min-request-size: 2048
-    response:
-      enabled: true
-hystrix:
-  command:
-    default:
-      execution:
-        isolation:
-          thread:
-            timeoutInMilliseconds: 3000
-ribbon:
-  eureka:
-    enabled: true
-  ReadTimeout: 60000
-  ConnectTimeout: 60000
-  MaxAutoRetries: 0
-  MaxAutoRetriesNextServer: 1
-  OkToRetryOnAllOperations: false
-info:
-  name: 'gateway-server'
-  description: 'smartschool-platform'
-  version: '1.0.0-SNAPSHOT'
-  spring-boot-version: '2.0.4.RELEASE'
-  spring-cloud-version: 'Finchley.SR1'
-auth:
-  auth-header: Authorization
-  public-key: auth/pub.key
-  expire: 18000
-  ignores:
-    - /api/auth/authorize
-    - /api/auth/virtual/authorize/**
-    - /api/auth/sso/callback/**
-    - /api/account/account/register
-    - /api/auth/info
-    - /ws/**
-    - /api/file/download
-    - /api/commons/excel/import/templet
-    - /api/commons/share/valid/**
-    - /api/commons/share/weixin/ticket
-    - /api/commons/share/getSmsCode
-    - /api/commons/share/submit
-    - /api/account/role/list/**
-    - /api/account/account/share/join
-    - /api/oper_auth/authorize
-    - /api/open/**
-  cookie:
-    name: uid
-    secret-key: 0taQcW073Z7G628g5H

二进制
base-servers/gateway-server/target/classes/auth/pub.key


+ 0 - 15
base-servers/gateway-server/target/classes/banner.txt

@@ -1,15 +0,0 @@
-${AnsiColor.BRIGHT_YELLOW}
-
-88        88   ad88888ba     ,ad8888ba,    88888888888  888888888888  ,ad8888ba,   88        88  88  888b      88         db
-88        88  d8"     "8b   d8"'    `"8b   88                88      d8"'    `"8b  88        88  88  8888b     88        d88b
-88        88  Y8,          d8'        `8b  88                88     d8'            88        88  88  88 `8b    88       d8'`8b
-88        88  `Y8aaaaa,    88          88  88aaaaa           88     88             88aaaaaaaa88  88  88  `8b   88      d8'  `8b
-88        88    `"""""8b,  88          88  88"""""           88     88             88""""""""88  88  88   `8b  88     d8YaaaaY8b
-88        88          `8b  Y8,        ,8P  88                88     Y8,            88        88  88  88    `8b 88    d8""""""""8b
-Y8a.    .a8P  Y8a     a8P   Y8a.    .a8P   88                88      Y8a.    .a8P  88        88  88  88     `8888   d8'        `8b
- `"Y8888Y"'    "Y88888P"     `"Y8888Y"'    88                88       `"Y8888Y"'   88        88  88  88      `888  d8'          `8b
-
-
-Application Version: ${application.version}${application.formatted-version}
-Spring Boot Version: ${spring-boot.version}${spring-boot.formatted-version}
-${AnsiColor.DEFAULT}

二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/GatewayApplication.class


二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/config/AuthConfig.class


二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/config/CookieConfig.class


二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/config/ErrorConfig.class


二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/config/WebConfig.class


二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/context/SpringContextListener.class


二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/error/MyExceptionAdvice.class


二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/error/MyExceptionHandler.class


二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/interceptor/ServiceFeignInterceptor.class


二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/util/AntPathRequestMatcher$1.class


二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/util/AntPathRequestMatcher$Matcher.class


二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/util/AntPathRequestMatcher$SpringAntMatcher.class


二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/util/AntPathRequestMatcher$SubpathMatcher.class


二进制
base-servers/gateway-server/target/classes/com/usoftchina/smartschool/gateway/util/AntPathRequestMatcher.class


+ 0 - 12
base-servers/gateway-server/target/classes/config/application-docker-dev.yml

@@ -1,12 +0,0 @@
-eureka:
-  instance:
-    hostname: saas-gateway-server-dev
-    prefer-ip-address: false
-  client:
-    serviceUrl:
-      defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@saas-eureka-server-dev:8510/eureka/
-spring:
-  rabbitmq:
-    virtual-host: dev
-server:
-  port: 8570

+ 0 - 19
base-servers/gateway-server/target/classes/config/application-docker-prod.yml

@@ -1,19 +0,0 @@
-eureka:
-  instance:
-    hostname: saas-gateway-server
-    prefer-ip-address: false
-  client:
-    serviceUrl:
-      defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@saas-eureka-server:8500/eureka/
-spring:
-  rabbitmq:
-    host: 10.10.100.103
-    port: 5672
-    virtual-host: docker
-    username: saas
-    password: select123***
-  redis:
-    host: 10.10.100.173
-    port: 6379
-logging:
-  destination: 10.10.100.160:5000

+ 0 - 12
base-servers/gateway-server/target/classes/config/application-docker-test.yml

@@ -1,12 +0,0 @@
-eureka:
-  instance:
-    hostname: saas-gateway-server-test
-    prefer-ip-address: false
-  client:
-    serviceUrl:
-      defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@saas-eureka-server-test:8515/eureka/
-spring:
-  rabbitmq:
-    virtual-host: test
-server:
-  port: 8575

+ 0 - 10
base-servers/gateway-server/target/classes/config/application-docker.yml

@@ -1,10 +0,0 @@
-eureka:
-  instance:
-    hostname: saas-gateway-server
-    prefer-ip-address: false
-  client:
-    serviceUrl:
-      defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@saas-eureka-server:8500/eureka/
-spring:
-  rabbitmq:
-    virtual-host: docker

+ 0 - 131
base-servers/gateway-server/target/classes/logback-spring.xml

@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<configuration>
-    <include resource="org/springframework/boot/logging/logback/base.xml" />
-    <jmxConfigurator/>
-
-    <!--
-    %m
-    输出代码中指定的消息
-    %p
-    输出优先级,即DEBUG,INFO,WARN,ERROR,FATAL
-    %r
-    输出自应用启动到输出该log信息耗费的毫秒数
-    %c
-    输出所属的类目,通常就是所在类的全名
-    %t
-    输出产生该日志事件的线程名
-    %n
-    输出一个回车换行符,Windows平台为“\r\n”,Unix平台为“\n”
-    %d
-    输出日志时间点的日期或时间,默认格式为ISO8601,也可以在其后指定格式,比如:%d{yyy MMM dd HH:mm:ss,SSS},
-    输出类似:2002年10月18日 22:10:28,921
-    %l
-    输出日志事件的发生位置,包括类目名、发生的线程,以及在代码中的行数。举例:Testlog4.main(TestLog4.java:10)
-    -->
-
-    <springProperty scope="context" name="log.path" source="logging.path" defaultValue="/var/log/saas/gateway-server"/>
-    <springProperty scope="context" name="spring.application.name" source="spring.application.name" defaultValue="gateway-server"/>
-    <springProperty scope="context" name="spring.profiles.active" source="spring.profiles.active" defaultValue="dev"/>
-    <springProperty scope="context" name="common-pattern" source="logging.common-pattern" defaultValue="%d{yyyy-MM-dd HH:mm:ss.SSS}:[%5p] [%t:%r] [%C{1}:%M:%L] --> %m%n"/>
-    <springProperty scope="context" name="log.level.console" source="logging.level.console" defaultValue="INFO"/>
-    <springProperty scope="context" name="log.destination" source="logging.destination" defaultValue="10.1.81.1:5000"/>
-
-    <contextName>${spring.application.name}-${spring.profiles.active}-logback</contextName>
-
-    <appender name="CONSOLE_APPENDER" class="ch.qos.logback.core.ConsoleAppender">
-        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
-            <level>${log.level.console}</level>
-        </filter>
-        <encoder>
-            <pattern>${common-pattern}</pattern>
-        </encoder>
-    </appender>
-
-    <appender name="ROOT_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">
-        <file>${log.path}/root.log</file>
-        <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
-            <fileNamePattern>${log.path}/%d{yyyy-MM}/root-%d{yyyy-MM-dd}-%i.log.gz</fileNamePattern>
-            <maxFileSize>128MB</maxFileSize>
-            <maxHistory>7</maxHistory>
-            <totalSizeCap>20GB</totalSizeCap>
-        </rollingPolicy>
-        <encoder>
-            <pattern>${common-pattern}</pattern>
-        </encoder>
-    </appender>
-
-    <!-- Appender to log in a JSON format -->
-    <appender name="JSON_APPENDER" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
-        <destination>${log.destination}</destination>
-        <encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
-            <providers>
-                <pattern>
-                    <pattern>
-                        {
-                        "severity": "%level",
-                        "service": "${spring.application.name:-}",
-                        "trace": "%X{X-B3-TraceId:-}",
-                        "span": "%X{X-B3-SpanId:-}",
-                        "parent": "%X{X-B3-ParentSpanId:-}",
-                        "exportable": "%X{X-Span-Export:-}",
-                        "pid": "${PID:-}",
-                        "thread": "%thread",
-                        "class": "%logger{40}",
-                        "rest": "%message"
-                        }
-                    </pattern>
-                </pattern>
-            </providers>
-        </encoder>
-    </appender>
-
-    <logger name="org.springframework" level="INFO"/>
-    <logger name="com.usoftchina.saas" level="INFO"/>
-
-    <springProfile name="dev">
-        <root level="INFO">
-            <appender-ref ref="CONSOLE_APPENDER"/>
-        </root>
-    </springProfile>
-
-    <springProfile name="test">
-        <root level="INFO">
-            <appender-ref ref="CONSOLE_APPENDER"/>
-            <appender-ref ref="ROOT_APPENDER"/>
-        </root>
-    </springProfile>
-
-    <springProfile name="docker">
-        <logger name="org.springframework" level="WARN"/>
-        <logger name="com.usoftchina.saas" level="WARN"/>
-        <root level="WARN">
-            <appender-ref ref="CONSOLE_APPENDER"/>
-            <appender-ref ref="JSON_APPENDER"/>
-        </root>
-    </springProfile>
-
-    <springProfile name="docker-dev">
-        <root level="INFO">
-            <appender-ref ref="CONSOLE_APPENDER"/>
-        </root>
-    </springProfile>
-
-    <springProfile name="docker-test">
-        <logger name="org.springframework" level="WARN"/>
-        <logger name="com.usoftchina.saas" level="WARN"/>
-        <root level="WARN">
-            <appender-ref ref="CONSOLE_APPENDER"/>
-            <appender-ref ref="JSON_APPENDER"/>
-        </root>
-    </springProfile>
-
-    <springProfile name="docker-prod">
-        <logger name="org.springframework" level="WARN"/>
-        <logger name="com.usoftchina.saas" level="WARN"/>
-        <root level="WARN">
-            <appender-ref ref="CONSOLE_APPENDER"/>
-            <appender-ref ref="JSON_APPENDER"/>
-        </root>
-    </springProfile>
-
-</configuration>

部分文件因为文件数量过多而无法显示