项目初始化

pull/1/head
caolin 2023-08-11 11:51:09 +08:00
parent 657880e070
commit 8eb78f7908
169 changed files with 5963 additions and 22 deletions

51
.gitignore vendored
View File

@ -1,26 +1,33 @@
# ---> Java
# Compiled class file
*.class
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
# Log file
*.log
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
# BlueJ files
*.ctxt
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/

BIN
.mvn/wrapper/maven-wrapper.jar vendored Normal file

Binary file not shown.

2
.mvn/wrapper/maven-wrapper.properties vendored Normal file
View File

@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.3/apache-maven-3.9.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar

308
mvnw vendored Normal file
View File

@ -0,0 +1,308 @@
#!/bin/sh
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Apache Maven Wrapper startup batch script, version 3.2.0
#
# Required ENV vars:
# ------------------
# JAVA_HOME - location of a JDK home dir
#
# Optional ENV vars
# -----------------
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
# e.g. to debug Maven itself, use
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
# ----------------------------------------------------------------------------
if [ -z "$MAVEN_SKIP_RC" ] ; then
if [ -f /usr/local/etc/mavenrc ] ; then
. /usr/local/etc/mavenrc
fi
if [ -f /etc/mavenrc ] ; then
. /etc/mavenrc
fi
if [ -f "$HOME/.mavenrc" ] ; then
. "$HOME/.mavenrc"
fi
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false
case "$(uname)" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;
Darwin*) darwin=true
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
if [ -z "$JAVA_HOME" ]; then
if [ -x "/usr/libexec/java_home" ]; then
JAVA_HOME="$(/usr/libexec/java_home)"; export JAVA_HOME
else
JAVA_HOME="/Library/Java/Home"; export JAVA_HOME
fi
fi
;;
esac
if [ -z "$JAVA_HOME" ] ; then
if [ -r /etc/gentoo-release ] ; then
JAVA_HOME=$(java-config --jre-home)
fi
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
[ -n "$CLASSPATH" ] &&
CLASSPATH=$(cygpath --path --unix "$CLASSPATH")
fi
# For Mingw, ensure paths are in UNIX format before anything is touched
if $mingw ; then
[ -n "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] &&
JAVA_HOME="$(cd "$JAVA_HOME" || (echo "cannot cd into $JAVA_HOME."; exit 1); pwd)"
fi
if [ -z "$JAVA_HOME" ]; then
javaExecutable="$(which javac)"
if [ -n "$javaExecutable" ] && ! [ "$(expr "\"$javaExecutable\"" : '\([^ ]*\)')" = "no" ]; then
# readlink(1) is not available as standard on Solaris 10.
readLink=$(which readlink)
if [ ! "$(expr "$readLink" : '\([^ ]*\)')" = "no" ]; then
if $darwin ; then
javaHome="$(dirname "\"$javaExecutable\"")"
javaExecutable="$(cd "\"$javaHome\"" && pwd -P)/javac"
else
javaExecutable="$(readlink -f "\"$javaExecutable\"")"
fi
javaHome="$(dirname "\"$javaExecutable\"")"
javaHome=$(expr "$javaHome" : '\(.*\)/bin')
JAVA_HOME="$javaHome"
export JAVA_HOME
fi
fi
fi
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD="$(\unset -f command 2>/dev/null; \command -v java)"
fi
fi
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly." >&2
echo " We cannot execute $JAVACMD" >&2
exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
fi
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
if [ -z "$1" ]
then
echo "Path not specified to find_maven_basedir"
return 1
fi
basedir="$1"
wdir="$1"
while [ "$wdir" != '/' ] ; do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
if [ -d "${wdir}" ]; then
wdir=$(cd "$wdir/.." || exit 1; pwd)
fi
# end of workaround
done
printf '%s' "$(cd "$basedir" || exit 1; pwd)"
}
# concatenates all lines of a file
concat_lines() {
if [ -f "$1" ]; then
# Remove \r in case we run on Windows within Git Bash
# and check out the repository with auto CRLF management
# enabled. Otherwise, we may read lines that are delimited with
# \r\n and produce $'-Xarg\r' rather than -Xarg due to word
# splitting rules.
tr -s '\r\n' ' ' < "$1"
fi
}
log() {
if [ "$MVNW_VERBOSE" = true ]; then
printf '%s\n' "$1"
fi
}
BASE_DIR=$(find_maven_basedir "$(dirname "$0")")
if [ -z "$BASE_DIR" ]; then
exit 1;
fi
MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}; export MAVEN_PROJECTBASEDIR
log "$MAVEN_PROJECTBASEDIR"
##########################################################################################
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
# This allows using the maven wrapper in projects that prohibit checking in binary data.
##########################################################################################
wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar"
if [ -r "$wrapperJarPath" ]; then
log "Found $wrapperJarPath"
else
log "Couldn't find $wrapperJarPath, downloading it ..."
if [ -n "$MVNW_REPOURL" ]; then
wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
else
wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
fi
while IFS="=" read -r key value; do
# Remove '\r' from value to allow usage on windows as IFS does not consider '\r' as a separator ( considers space, tab, new line ('\n'), and custom '=' )
safeValue=$(echo "$value" | tr -d '\r')
case "$key" in (wrapperUrl) wrapperUrl="$safeValue"; break ;;
esac
done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
log "Downloading from: $wrapperUrl"
if $cygwin; then
wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
fi
if command -v wget > /dev/null; then
log "Found wget ... using wget"
[ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet"
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
wget $QUIET "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
else
wget $QUIET --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
fi
elif command -v curl > /dev/null; then
log "Found curl ... using curl"
[ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent"
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
curl $QUIET -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
else
curl $QUIET --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
fi
else
log "Falling back to using Java to download"
javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java"
javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class"
# For Cygwin, switch paths to Windows format before running javac
if $cygwin; then
javaSource=$(cygpath --path --windows "$javaSource")
javaClass=$(cygpath --path --windows "$javaClass")
fi
if [ -e "$javaSource" ]; then
if [ ! -e "$javaClass" ]; then
log " - Compiling MavenWrapperDownloader.java ..."
("$JAVA_HOME/bin/javac" "$javaSource")
fi
if [ -e "$javaClass" ]; then
log " - Running MavenWrapperDownloader.java ..."
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath"
fi
fi
fi
fi
##########################################################################################
# End of extension
##########################################################################################
# If specified, validate the SHA-256 sum of the Maven wrapper jar file
wrapperSha256Sum=""
while IFS="=" read -r key value; do
case "$key" in (wrapperSha256Sum) wrapperSha256Sum=$value; break ;;
esac
done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
if [ -n "$wrapperSha256Sum" ]; then
wrapperSha256Result=false
if command -v sha256sum > /dev/null; then
if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c > /dev/null 2>&1; then
wrapperSha256Result=true
fi
elif command -v shasum > /dev/null; then
if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c > /dev/null 2>&1; then
wrapperSha256Result=true
fi
else
echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available."
echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties."
exit 1
fi
if [ $wrapperSha256Result = false ]; then
echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2
echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2
echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2
exit 1
fi
fi
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME")
[ -n "$CLASSPATH" ] &&
CLASSPATH=$(cygpath --path --windows "$CLASSPATH")
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR")
fi
# Provide a "standardized" way to retrieve the CLI args that will
# work with both Windows and non-Windows executions.
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $*"
export MAVEN_CMD_LINE_ARGS
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
# shellcheck disable=SC2086 # safe args
exec "$JAVACMD" \
$MAVEN_OPTS \
$MAVEN_DEBUG_OPTS \
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"

205
mvnw.cmd vendored Normal file
View File

@ -0,0 +1,205 @@
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM https://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Apache Maven Wrapper startup batch script, version 3.2.0
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM set title of command window
title %0
@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B
)
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
if exist %WRAPPER_JAR% (
if "%MVNW_VERBOSE%" == "true" (
echo Found %WRAPPER_JAR%
)
) else (
if not "%MVNW_REPOURL%" == "" (
SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
)
if "%MVNW_VERBOSE%" == "true" (
echo Couldn't find %WRAPPER_JAR%, downloading it ...
echo Downloading from: %WRAPPER_URL%
)
powershell -Command "&{"^
"$webclient = new-object System.Net.WebClient;"^
"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
"}"^
"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^
"}"
if "%MVNW_VERBOSE%" == "true" (
echo Finished downloading %WRAPPER_JAR%
)
)
@REM End of extension
@REM If specified, validate the SHA-256 sum of the Maven wrapper jar file
SET WRAPPER_SHA_256_SUM=""
FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B
)
IF NOT %WRAPPER_SHA_256_SUM%=="" (
powershell -Command "&{"^
"$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^
"If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^
" Write-Output 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^
" Write-Output 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^
" Write-Output 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^
" exit 1;"^
"}"^
"}"
if ERRORLEVEL 1 goto error
)
@REM Provide a "standardized" way to retrieve the CLI args that will
@REM work with both Windows and non-Windows executions.
set MAVEN_CMD_LINE_ARGS=%*
%MAVEN_JAVA_EXE% ^
%JVM_CONFIG_MAVEN_PROPS% ^
%MAVEN_OPTS% ^
%MAVEN_DEBUG_OPTS% ^
-classpath %WRAPPER_JAR% ^
"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
%WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
if ERRORLEVEL 1 goto error
goto end
:error
set ERROR_CODE=1
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
:skipRcPost
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%"=="on" pause
if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
cmd /C exit /B %ERROR_CODE%

140
pom.xml Normal file
View File

@ -0,0 +1,140 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.3.RELEASE</version>
</parent>
<groupId>com.jwl.driver.server</groupId>
<artifactId>driver-server</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>driver-server</name>
<description>driver-server</description>
<properties>
<java.version>1.8</java.version>
<mybatis-plus-boot-starter.version>3.3.0</mybatis-plus-boot-starter.version>
<hutool.version>5.7.20</hutool.version>
<knife4j-micro-spring-boot-starter.version>2.0.9</knife4j-micro-spring-boot-starter.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis-plus-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>${mybatis-plus-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-annotation</artifactId>
<version>${mybatis-plus-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-core</artifactId>
<version>${mybatis-plus-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-extension</artifactId>
<version>${mybatis-plus-boot-starter.version}</version>
</dependency>
<!-- 工具类 -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>${hutool.version}</version>
</dependency>
<!-- json -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>2.0.12</version>
</dependency>
<dependency>
<groupId>org.springframework.plugin</groupId>
<artifactId>spring-plugin-core</artifactId>
<version>2.0.0.RELEASE</version>
</dependency>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-micro-spring-boot-starter</artifactId>
<version>${knife4j-micro-spring-boot-starter.version}</version>
<exclusions>
<exclusion>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,15 @@
package com.jwl.driver.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@ComponentScan(basePackages = {"com.jwl.driver.server.*"})
@SpringBootApplication
public class DriverServerApplication {
public static void main(String[] args) {
SpringApplication.run(DriverServerApplication.class, args);
}
}

View File

@ -0,0 +1,25 @@
package com.jwl.driver.server.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableTransactionManagement
@Configuration
@MapperScan({"com.jwl.driver.server.mapper"})
public class MybatisPlusConfig {
@Bean
public PaginationInterceptor paginationInterceptor() {
PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
return paginationInterceptor;
}
}

View File

@ -0,0 +1,41 @@
package com.jwl.driver.server.config;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
import org.springframework.data.redis.serializer.StringRedisSerializer;
/**
* Created on 2020/6/23
*/
@Configuration
public class RedisConfig {
@Bean
public RedisTemplate<Object, Object> redisTemplate(RedisConnectionFactory connectionFactory) {
RedisTemplate<Object, Object> redisTemplate = new RedisTemplate<>();
redisTemplate.setConnectionFactory(connectionFactory);
//使用Jackson2JsonRedisSerializer来序列化和反序列化redis的value值默认使用JDK的序列化方式
Jackson2JsonRedisSerializer serializer = new Jackson2JsonRedisSerializer(Object.class);
ObjectMapper mapper = new ObjectMapper();
mapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
mapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
serializer.setObjectMapper(mapper);
redisTemplate.setValueSerializer(serializer);
//使用StringRedisSerializer来序列化和反序列化redis的key值
redisTemplate.setKeySerializer(new StringRedisSerializer());
redisTemplate.afterPropertiesSet();
return redisTemplate;
}
}

View File

@ -0,0 +1,15 @@
package com.jwl.driver.server.config;
import cn.hutool.core.lang.Snowflake;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class SnowflakeConfig {
@Bean
public Snowflake snowflake() {
return new Snowflake(1L, 2L);
}
}

View File

@ -0,0 +1,56 @@
package com.jwl.driver.server.config;
import com.github.xiaoymin.knife4j.spring.extension.OpenApiExtensionResolver;
import io.swagger.annotations.ApiOperation;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
/**
* @Descript Swagger
* @Version 0.0.1
**/
@Configuration
@EnableSwagger2WebMvc
public class SwaggerConfig {
private final OpenApiExtensionResolver openApiExtensionResolver;
public SwaggerConfig(OpenApiExtensionResolver openApiExtensionResolver){
this.openApiExtensionResolver = openApiExtensionResolver;
}
@Bean
@Order(value = 1)
public Docket adminDocket(){
return new Docket(DocumentationType.SWAGGER_2)
.pathMapping("/driver-api")
.enable(true)
.apiInfo(groupApiInfo())
.select()
.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
.paths(PathSelectors.any())
.build()
.extensions(openApiExtensionResolver.buildExtensions("接口中心"));
}
private ApiInfo groupApiInfo(){
return new ApiInfoBuilder()
.title("管理中心")
.description("管理中心接口文档")
.termsOfServiceUrl("http://127.0.0.1")
.contact(new Contact("jslx",
"http://www.jslx.com",
"jslx@equ-tech.com"))
.version("1.0")
.build();
}
}

View File

@ -0,0 +1,10 @@
package com.jwl.driver.server.constant;
/**
*
*/
public class Constants {
}

View File

@ -0,0 +1,39 @@
package com.jwl.driver.server.constant;
public class ErrorCode {
// 未定义错误编码
public static final String UNDEFINED = "E001";
// JSON 解析出错,请求格式不正确
public static final String INCORRECT_JSON_FORMAT = "E002";
// 缺少必要请求头
public static final String MISSING_REQUIRED_HEADER = "E003";
// 非法参数
public static final String INVALID_PARAM = "E004";
// 用户配置错误
public static final String ERROR_USER_CONFIG = "E005";
// 用户请求时间戳错误
public static final String INVALID_REQUEST_TIME = "E006";
// 用户签名错误
public static final String SIGN_MISMATCH = "E007";
// 系统内部错误
public static final String INTERNAL_ERROR = "E500";
// 错误/无效请求
public static final String BAD_REQUEST = "E400";
// 鉴权错误
public static final String AUTH_ERROR = "E403";
//
public static final String CODE_ERROR = "E502";
// 上游系统错误
public static final String UPSTREAM_SYS_ERROR = "E501";
// 业务异常编码,异常原因已知
public static final String BUSINESS = "E008";
public static final String NOT_SHOW = "NOO1";
private ErrorCode() {
}
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
*
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//orderPayInfo")
public class OrderPayInfoController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
*
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//payNoticeLog")
public class PayNoticeLogController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
*
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//payPrepay")
public class PayPrepayController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
*
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//payPrepayResult")
public class PayPrepayResultController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* 退
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//payRefund")
public class PayRefundController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* 退
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//payRefundResult")
public class PayRefundResultController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdCar")
public class TdCarController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdCategoryQuestion")
public class TdCategoryQuestionController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdExaminationRoom")
public class TdExaminationRoomController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* 线;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdExaminationRoomRoad")
public class TdExaminationRoomRoadController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdMember")
public class TdMemberController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdModuleQuestion")
public class TdModuleQuestionController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdPointQuestion")
public class TdPointQuestionController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdQuestion")
public class TdQuestionController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdQuestionTest")
public class TdQuestionTestController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdSysConfig")
public class TdSysConfigController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdSysConfigList")
public class TdSysConfigListController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdSysUser")
public class TdSysUserController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdSysUserMember")
public class TdSysUserMemberController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdTestProject")
public class TdTestProjectController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdTestProjectVideos")
public class TdTestProjectVideosController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdTrafficSignCategory")
public class TdTrafficSignCategoryController {
}

View File

@ -0,0 +1,20 @@
package com.jwl.driver.server.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Controller
@RequestMapping("//tdTrafficSignQuestion")
public class TdTrafficSignQuestionController {
}

View File

@ -0,0 +1,100 @@
package com.jwl.driver.server.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
*
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrderPayInfo implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId("PAY_ID")
private Long payId;
/**
*
*/
@TableField("MEMBER_ID")
private Integer memberId;
/**
*
*/
@TableField("MONEY")
private BigDecimal money;
/**
*
*/
@TableField("DESCRIPTION")
private String description;
/**
* (weCharPay,aLiPay)
*/
@TableField("PAYMENT_TYPE")
private String paymentType;
/**
* JSAPI,h5
*/
@TableField("PAY_TYPE")
private String payType;
/**
* 1: 2 3
*/
@TableField("PAY_STATUS")
private Integer payStatus;
/**
* ID
*/
@TableField("PREPAT_ID")
private String prepatId;
/**
* 0:,1:
*/
@TableField("DELETE_STATUS")
private Integer deleteStatus;
/**
*
*/
@TableField("USER_ID")
private Long userId;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("UPDATE_TIME")
private LocalDateTime updateTime;
}

View File

@ -0,0 +1,85 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
*
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PayNoticeLog implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "NOTICE_ID", type = IdType.AUTO)
private Long noticeId;
/**
* json
*/
@TableField("CONTENR")
private String contenr;
/**
*
*/
@TableField("TYPE")
private String type;
/**
*
*/
@TableField("PAY_PREPAY_ID")
private Long payPrepayId;
/**
*
*/
@TableField("NOTICE_NO")
private String noticeNo;
/**
*
*/
@TableField("NOTICE_STATUS")
private String noticeStatus;
/**
*
*/
@TableField("REMARKS")
private String remarks;
/**
* 0:,1:
*/
@TableField("DELETE_STATUS")
private Integer deleteStatus;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("UPDATE_TIME")
private LocalDateTime updateTime;
}

View File

@ -0,0 +1,130 @@
package com.jwl.driver.server.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
*
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PayPrepay implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId("PAY_PREPAY_ID")
private Long payPrepayId;
/**
*
*/
@TableField("PAY_ID")
private Long payId;
/**
*
*/
@TableField("MONEY")
private BigDecimal money;
/**
*
*/
@TableField("DESCRIPTION")
private String description;
/**
* (weCharPay,aLiPay)
*/
@TableField("PAYMENT_TYPE")
private String paymentType;
/**
* JSAPI,h5
*/
@TableField("PAY_TYPE")
private String payType;
/**
* 1: 2 3
*/
@TableField("PAY_STATUS")
private Integer payStatus;
/**
* ID
*/
@TableField("PREPAT_ID")
private String prepatId;
/**
* openid
*/
@TableField("OPEN_ID")
private String openId;
/**
* appid,apiV3Key
*/
@TableField("THIRD_CONFIG_JSON")
private String thirdConfigJson;
/**
* https url
*/
@TableField("NOTIFY_URL")
private String notifyUrl;
/**
*
*/
@TableField("NOTIFY_MICRO_SERVICE_NAME")
private String notifyMicroServiceName;
/**
* url
*/
@TableField("NOTIFY_MICRO_SERVICE_URL")
private String notifyMicroServiceUrl;
/**
* 0:,1:
*/
@TableField("DELETE_STATUS")
private Integer deleteStatus;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("UPDATE_TIME")
private LocalDateTime updateTime;
/**
*
*/
@TableField("SERVER_NAME")
private String serverName;
}

View File

@ -0,0 +1,124 @@
package com.jwl.driver.server.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
*
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PayPrepayResult implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId("PAY_PREPAY_ID")
private Long payPrepayId;
/**
*
*/
@TableField("THIRD_PAY_ID")
private String thirdPayId;
/**
*
*/
@TableField("PAY_ID")
private Long payId;
/**
*
*/
@TableField("MONEY")
private BigDecimal money;
/**
* 退
*/
@TableField("REFUND_MONEY")
private BigDecimal refundMoney;
/**
*
*/
@TableField("DESCRIPTION")
private String description;
/**
*
*/
@TableField("PAY_TIME")
private LocalDateTime payTime;
/**
*
*/
@TableField("BANK_TYPE")
private String bankType;
/**
* (weCharPay,aLiPay)
*/
@TableField("PAYMENT_TYPE")
private String paymentType;
/**
* JSAPI,h5
*/
@TableField("PAY_TYPE")
private String payType;
/**
* 1: 2 3
*/
@TableField("PAY_STATUS")
private Integer payStatus;
/**
* openid
*/
@TableField("OPEN_ID")
private String openId;
/**
* 0:,1:
*/
@TableField("DELETE_STATUS")
private Integer deleteStatus;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("UPDATE_TIME")
private LocalDateTime updateTime;
/**
*
*/
@TableField("THIRD_PAY_STATUS")
private String thirdPayStatus;
}

View File

@ -0,0 +1,118 @@
package com.jwl.driver.server.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* 退
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PayRefund implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 退
*/
@TableId("PAY_REFUND_ID")
private Long payRefundId;
/**
* 退
*/
@TableField("REFUND_ID")
private String refundId;
/**
*
*/
@TableField("PAY_PREPAY_ID")
private Long payPrepayId;
/**
* 退
*/
@TableField("MONEY")
private BigDecimal money;
/**
*
*/
@TableField("DESCRIPTION")
private String description;
/**
* (weCharPay,aLiPay)
*/
@TableField("PAYMENT_TYPE")
private String paymentType;
/**
* JSAPI,h5
*/
@TableField("PAY_TYPE")
private String payType;
/**
* 退 1:退 2:退 3退 4退 5退
*/
@TableField("REFUND_STATUS")
private Integer refundStatus;
/**
* appid,apiV3Key
*/
@TableField("THIRD_CONFIG_JSON")
private String thirdConfigJson;
/**
* https url
*/
@TableField("NOTIFY_URL")
private String notifyUrl;
/**
*
*/
@TableField("NOTIFY_MICRO_SERVICE_NAME")
private String notifyMicroServiceName;
/**
* url
*/
@TableField("NOTIFY_MICRO_SERVICE_URL")
private String notifyMicroServiceUrl;
/**
* 0:,1:
*/
@TableField("DELETE_STATUS")
private Integer deleteStatus;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("UPDATE_TIME")
private LocalDateTime updateTime;
}

View File

@ -0,0 +1,106 @@
package com.jwl.driver.server.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* 退
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PayRefundResult implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 退
*/
@TableId("PAY_REFUND_ID")
private Long payRefundId;
/**
* 退
*/
@TableField("THIRD_PAY_REFUND_NO")
private String thirdPayRefundNo;
/**
* 退
*/
@TableField("REFUND_ID")
private String refundId;
/**
*
*/
@TableField("PAY_PREPAY_ID")
private Long payPrepayId;
/**
* 退
*/
@TableField("MONEY")
private BigDecimal money;
/**
*
*/
@TableField("DESCRIPTION")
private String description;
/**
* (weCharPay,aLiPay)
*/
@TableField("PAYMENT_TYPE")
private String paymentType;
/**
* JSAPI,h5
*/
@TableField("PAY_TYPE")
private String payType;
/**
* 退
*/
@TableField("REFUND_TIME")
private LocalDateTime refundTime;
/**
* 退 1:退 2:退 3退 4退 5退
*/
@TableField("REFUND_STATUS")
private Integer refundStatus;
/**
* 0:,1:
*/
@TableField("DELETE_STATUS")
private Integer deleteStatus;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("UPDATE_TIME")
private LocalDateTime updateTime;
}

View File

@ -0,0 +1,71 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdCar implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "CAR_TYPE_ID", type = IdType.AUTO)
private Integer carTypeId;
/**
*
*/
@TableField("CAR_NAME")
private String carName;
/**
*
*/
@TableField("REMARK")
private String remark;
/**
* url
*/
@TableField("IMAGE_URL")
private String imageUrl;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
/**
*
*/
@TableField("SHOW_ORDER")
private Integer showOrder;
}

View File

@ -0,0 +1,57 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdCategoryQuestion implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId("CATEGORY")
private String category;
/**
*
*/
@TableField("CAR_TYPE_ID")
private Integer carTypeId;
/**
*
*/
@TableField("QUESTION_ID")
private Long questionId;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
}

View File

@ -0,0 +1,70 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdExaminationRoom implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "EXAMINATION_ROOM_ID", type = IdType.AUTO)
private Integer examinationRoomId;
/**
*
*/
@TableField("EXAMINATION_ROOM_NAME")
private String examinationRoomName;
/**
* /
*/
@TableField("DISTRICT")
private String district;
/**
* /
*/
@TableField("DISTRICT_NAME")
private String districtName;
/**
*
*/
@TableField("SHOW_ORDER")
private Integer showOrder;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
}

View File

@ -0,0 +1,76 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* 线;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdExaminationRoomRoad implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 线
*/
@TableId(value = "RODE_ID", type = IdType.AUTO)
private Integer rodeId;
/**
*
*/
@TableField("EXAMINATION_ROOM_ID")
private Integer examinationRoomId;
/**
* 线
*/
@TableField("RODE_NAME")
private String rodeName;
/**
*
*/
@TableField("CAR_TYPE_ID")
private Integer carTypeId;
/**
* 线
*/
@TableField("RODE_IMG")
private String rodeImg;
/**
* 线
*/
@TableField("RODE_VIDEO_URL")
private String rodeVideoUrl;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
}

View File

@ -0,0 +1,95 @@
package com.jwl.driver.server.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdMember implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "MEMBER_ID", type = IdType.AUTO)
private Integer memberId;
/**
*
*/
@TableField("MEMBER_NAME")
private String memberName;
/**
*
*/
@TableField("CAR_TYPE_ID")
private Integer carTypeId;
/**
*
*/
@TableField("PRICE")
private BigDecimal price;
/**
*
*/
@TableField("DISCOUNT")
private BigDecimal discount;
/**
*
*/
@TableField("DURATION")
private Integer duration;
/**
* 12 3
*/
@TableField("UNIT")
private String unit;
/**
*
*/
@TableField("DESC")
private String desc;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
/**
*
*/
@TableField("SHOW_ORDER")
private Integer showOrder;
}

View File

@ -0,0 +1,58 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdModuleQuestion implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "MODULE", type = IdType.AUTO)
private Integer module;
/**
*
*/
@TableField("CAR_TYPE_ID")
private Integer carTypeId;
/**
*
*/
@TableField("QUESTION_ID")
private Long questionId;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
}

View File

@ -0,0 +1,58 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdPointQuestion implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "POINT", type = IdType.AUTO)
private Integer point;
/**
*
*/
@TableField("CAR_TYPE_ID")
private Integer carTypeId;
/**
*
*/
@TableField("QUESTION_ID")
private Long questionId;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
}

View File

@ -0,0 +1,153 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdQuestion implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "QUESTION_ID", type = IdType.AUTO)
private Long questionId;
/**
*
*/
@TableField("QUESTION")
private String question;
/**
* A
*/
@TableField("CHOOSE_A")
private String chooseA;
/**
* B
*/
@TableField("CHOOSE_B")
private String chooseB;
/**
* C
*/
@TableField("CHOOSE_C")
private String chooseC;
/**
* D
*/
@TableField("CHOOSE_D")
private String chooseD;
/**
* E
*/
@TableField("CHOOSE_E")
private String chooseE;
/**
* F
*/
@TableField("CHOOSE_F")
private String chooseF;
/**
* G
*/
@TableField("CHOOSE_G")
private String chooseG;
/**
*
*/
@TableField("TRUE_ANSWER")
private String trueAnswer;
/**
*
*/
@TableField("CID")
private String cid;
/**
*
*/
@TableField("CATEGORY")
private String category;
/**
* url
*/
@TableField("IMAGE_URL")
private String imageUrl;
/**
*
*/
@TableField("SOHU_IMG")
private String sohuImg;
/**
*
*/
@TableField("BEST_ANSWER")
private String bestAnswer;
/**
*
*/
@TableField("CHAPTER")
private String chapter;
/**
* 1:12:4
*/
@TableField("SUBJECT")
private String subject;
/**
*
*/
@TableField("OPTIONS")
private String options;
/**
* 1 23
*/
@TableField("TYPE")
private String type;
/**
*
*/
@TableField("CAR_TYPE_ID")
private Integer carTypeId;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
}

View File

@ -0,0 +1,64 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdQuestionTest implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "TEST_ID", type = IdType.AUTO)
private Long testId;
/**
*
*/
@TableField("CAR_TYPE_ID")
private Integer carTypeId;
/**
*
*/
@TableField("USER_ID")
private Long userId;
/**
*
*/
@TableField("SCORE")
private Integer score;
/**
* ,
*/
@TableField("TEST_TIME")
private Integer testTime;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
}

View File

@ -0,0 +1,83 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdSysConfig implements Serializable {
private static final long serialVersionUID = 1L;
/**
* ,-1
*/
@TableId("CAR_TYPE_ID")
private Integer carTypeId;
/**
* KEY
*/
@TableField("CONFIG_KEY")
private String configKey;
/**
*
*/
@TableField("CONFIG_VALUE")
private String configValue;
/**
*
*/
@TableField("CONFIG_NAME")
private String configName;
/**
*
*/
@TableField("CONFIG_DESC")
private String configDesc;
/**
* ;0: key-value
1: list
A-Z:
*/
@TableField("CONFIG_TYPE")
private String configType;
/**
* JSON
*/
@TableField("CONFIG_JSON")
private String configJson;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
}

View File

@ -0,0 +1,69 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdSysConfigList implements Serializable {
private static final long serialVersionUID = 1L;
/**
* ,-1
*/
@TableId("CAR_TYPE_ID")
private Integer carTypeId;
@TableField("CONFIG_KEY")
private String configKey;
@TableField("CONFIG_ITEM_CODE")
private String configItemCode;
@TableField("CONFIG_ITEM_NAME")
private String configItemName;
@TableField("CONFIG_ITEM_JSON")
private String configItemJson;
@TableField("CONFIG_ITEM_DESC")
private String configItemDesc;
/**
*
*/
@TableField("SHOW_ORDER")
private Integer showOrder;
@TableField("PARENT_ITEM_CODE")
private String parentItemCode;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
}

View File

@ -0,0 +1,70 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdSysUser implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "USER_ID", type = IdType.AUTO)
private Long userId;
/**
*
*/
@TableField("USER_NAME")
private String userName;
/**
*
*/
@TableField("PHONE")
private String phone;
/**
*
*/
@TableField("REMARK")
private String remark;
/**
*
*/
@TableField("AVATAR")
private String avatar;
/**
*
*/
@TableField("SCHOOL_ID")
private Long schoolId;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
}

View File

@ -0,0 +1,63 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdSysUserMember implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId("USER_ID")
private Long userId;
/**
*
*/
@TableField("MEMBER_ID")
private Integer memberId;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("UPDATE_TIME")
private LocalDateTime updateTime;
/**
*
*/
@TableField("START_DATE")
private LocalDateTime startDate;
/**
*
*/
@TableField("END_DATE")
private LocalDateTime endDate;
}

View File

@ -0,0 +1,69 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdTestProject implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId("TEST_PROJECT_ID")
private Integer testProjectId;
/**
*
*/
@TableField("SUBJECT")
private String subject;
/**
*
*/
@TableField("CAR_TYPE_ID")
private Integer carTypeId;
/**
* A2:B2
*/
@TableField("DRIVE_TYPE")
private String driveType;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
/**
*
*/
@TableField("SHOW_ORDER")
private Integer showOrder;
}

View File

@ -0,0 +1,62 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdTestProjectVideos implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "VIDEO_ID", type = IdType.AUTO)
private Integer videoId;
/**
*
*/
@TableField("TEST_PROJECT_ID")
private Integer testProjectId;
/**
*
*/
private String videoImage;
/**
*
*/
private String videoUrl;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
}

View File

@ -0,0 +1,82 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdTrafficSignCategory implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "SIGN_CATEGORY_ID", type = IdType.AUTO)
private Integer signCategoryId;
/**
*
*/
@TableField("SIGN_CATEGORY_NAME")
private String signCategoryName;
/**
*
*/
@TableField("SIGN_IMG_URL")
private String signImgUrl;
/**
*
*/
@TableField("PARENT_SIGN_CATEGORY_ID")
private Integer parentSignCategoryId;
/**
*
*/
@TableField("HAS_CHILD")
private String hasChild;
/**
*
*/
@TableField("SIGN_NUM")
private Integer signNum;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
/**
*
*/
@TableField("SHOW_ORDER")
private Integer showOrder;
}

View File

@ -0,0 +1,52 @@
package com.jwl.driver.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TdTrafficSignQuestion implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "SIGN_CATEGORY_ID", type = IdType.AUTO)
private Integer signCategoryId;
/**
*
*/
@TableField("QUESTION_ID")
private Long questionId;
/**
*
*/
@TableField("CREATE_TIME")
private LocalDateTime createTime;
/**
*
*/
@TableField("IS_ACTIVE")
private String isActive;
}

View File

@ -0,0 +1,46 @@
/*
* Copyright (c) 2019. AI.
*/
package com.jwl.driver.server.enums;
/**
* @author tangsz
*/
public enum ErrorCodeEnum {
E00000403("0403", "无访问权限"),
E00000500("0500", "未知异常"),
E00000001("0001", "登陆已过期,请重新登陆"),
E00000002("0002", "缺少必输参数:"),;
private String code;
private String msg;
public String msg() {
return msg;
}
public String code() {
return code;
}
ErrorCodeEnum(String code, String msg) {
this.code = code;
this.msg = msg;
}
public static ErrorCodeEnum getEnum(String code) {
for (ErrorCodeEnum ele : ErrorCodeEnum.values()) {
if (ele.code() == code) {
return ele;
}
}
return null;
}
}

View File

@ -0,0 +1,110 @@
package com.jwl.driver.server.enums;
import java.util.ArrayList;
import java.util.List;
/**
* .
*
* @author tangsz
*/
public enum StatusEnum {
/** 成功 */
SUCCESS("0000", "成功"),
/** 失败 */
FAIL("4000", "失败"),
;
/** 枚举值码 */
private final String code;
/** 枚举描述 */
private final String message;
/**
* StatusEnum
* @param code
* @param message
*/
private StatusEnum(String code, String message) {
this.code = code;
this.message = message;
}
/**
*
* @return
*/
public String getCode() {
return code;
}
/**
*
* @return
*/
public String getMessage() {
return message;
}
/**
*
* @return
*/
public String code() {
return code;
}
/**
*
* @return
*/
public String message() {
return message;
}
/**
*
* @param code
* @return
* @throws IllegalArgumentException code StatusEnum
*/
public static StatusEnum findStatus(String code) {
for (StatusEnum status : values()) {
if (status.getCode().equals(code)) {
return status;
}
}
throw new IllegalArgumentException("ResultInfo StatusEnum not legal:" + code);
}
/**
*
*
* @return
*/
public static List<StatusEnum> getAllStatus() {
List<StatusEnum> list = new ArrayList<StatusEnum>();
for (StatusEnum status : values()) {
list.add(status);
}
return list;
}
/**
*
*
* @return
*/
public static List<String> getAllStatusCode() {
List<String> list = new ArrayList<String>();
for (StatusEnum status : values()) {
list.add(status.code());
}
return list;
}
}

View File

@ -0,0 +1,64 @@
/*
* Copyright (c) 2019 AI.
*/
package com.jwl.driver.server.exception;
import com.jwl.driver.server.enums.ErrorCodeEnum;
/**
* .
*
* @author tangsz
*/
public class BusinessException extends RuntimeException {
/**
*
*/
protected String code;
private static final long serialVersionUID = 3160241586346324994L;
public BusinessException() {
}
public BusinessException(Throwable cause) {
super(cause);
}
public BusinessException(String message) {
super(message);
}
public BusinessException(String message, Throwable cause) {
super(message, cause);
}
public BusinessException(String code, String message) {
super(message);
this.code = code;
}
public static BusinessException of(String code, String message) {
return new BusinessException(code, message);
}
public BusinessException(String code, String msgFormat, Object... args) {
super(String.format(msgFormat, args));
this.code = code;
}
public BusinessException(ErrorCodeEnum codeEnum, Object... args) {
super(String.format(codeEnum.msg(), args));
this.code = codeEnum.code();
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
}

View File

@ -0,0 +1,47 @@
package com.jwl.driver.server.exception;
import com.jwl.driver.server.response.BaseResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import java.security.SignatureException;
/**
* .
*
* @author tangsz
*/
@RestControllerAdvice
public class GlobalExceptionHandler {
private static final Logger logger = LoggerFactory.getLogger(GlobalExceptionHandler.class);
@ExceptionHandler(value = Exception.class)
public BaseResponse<Object> handleBadRequest(Exception e) {
logger.error("Error: handleBadRequest StackTrace : {}", e);
if (e instanceof MissTokenException) {
return BaseResponse.fail("4401", null, e.getMessage());
}
if (e instanceof IdentityExpiresException) {
return BaseResponse.fail("4402", null, e.getMessage());
}
return BaseResponse.fail(null, e.getMessage());
}
@ExceptionHandler(BusinessException.class)
public BaseResponse<?> businessException(BusinessException e) {
return BaseResponse.fail(e.getCode(), null, e.getMessage());
}
@ExceptionHandler(SignatureException.class)
public BaseResponse<?> signatureException(SignatureException e) {
return BaseResponse.fail("E004", "token is invalid");
}
}

View File

@ -0,0 +1,60 @@
/*
* Copyright (c) 2019 AI.
*/
package com.jwl.driver.server.exception;
import com.jwl.driver.server.enums.ErrorCodeEnum;
/**
* .
*
* @author tangsz
*/
public class IdentityExpiresException extends RuntimeException {
/**
*
*/
protected String code;
private static final long serialVersionUID = 3160241586346324994L;
public IdentityExpiresException() {
}
public IdentityExpiresException(Throwable cause) {
super(cause);
}
public IdentityExpiresException(String message) {
super(message);
}
public IdentityExpiresException(String message, Throwable cause) {
super(message, cause);
}
public IdentityExpiresException(String code, String message) {
super(message);
this.code = code;
}
public IdentityExpiresException(String code, String msgFormat, Object... args) {
super(String.format(msgFormat, args));
this.code = code;
}
public IdentityExpiresException(ErrorCodeEnum codeEnum, Object... args) {
super(String.format(codeEnum.msg(), args));
this.code = codeEnum.code();
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
}

View File

@ -0,0 +1,59 @@
/*
* Copyright (c) 2019 AI.
*/
package com.jwl.driver.server.exception;
import com.jwl.driver.server.enums.ErrorCodeEnum;
/**
* token.
*
* @author tangsz
*/
public class MissTokenException extends RuntimeException {
/**
*
*/
protected String code;
private static final long serialVersionUID = 3160241586346324994L;
public MissTokenException() {
}
public MissTokenException(Throwable cause) {
super(cause);
}
public MissTokenException(String message) {
super(message);
}
public MissTokenException(String message, Throwable cause) {
super(message, cause);
}
public MissTokenException(String code, String message) {
super(message);
this.code = code;
}
public MissTokenException(String code, String msgFormat, Object... args) {
super(String.format(msgFormat, args));
this.code = code;
}
public MissTokenException(ErrorCodeEnum codeEnum, Object... args) {
super(String.format(codeEnum.msg(), args));
this.code = codeEnum.code();
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
}

View File

@ -0,0 +1,241 @@
package com.jwl.driver.server.generator;
import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.core.exceptions.MybatisPlusException;
import com.baomidou.mybatisplus.core.toolkit.StringPool;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.generator.AutoGenerator;
import com.baomidou.mybatisplus.generator.InjectionConfig;
import com.baomidou.mybatisplus.generator.config.*;
import com.baomidou.mybatisplus.generator.config.po.TableInfo;
import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy;
import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine;
import java.io.File;
import java.lang.reflect.Field;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* <p>
*
* </p>
*
* @author tangsz
* @since 2019-05-22
*/
public class CodeGeneratorTool {
private String host = "";
private String database = "";
private String url = "";
private String userName = "";
private String password = "";
private String driverName = "com.mysql.cj.jdbc.Driver";
private String projectPath = System.getProperty("user.dir");
private String schema = "";
private String mapperXmlFile = "";
public void generCode(String host, String database, String url, String userName, String password, String projectPath,
String module, String superEntityClass) throws ClassNotFoundException {
this.host = host;
this.database = database;
this.url = url;
this.userName = userName;
this.password = password;
this.projectPath = this.projectPath + projectPath;
// 代码生成器
AutoGenerator mpg = new AutoGenerator();
// 全局配置
mpg.setGlobalConfig(initGlobalConfig());
// 数据源配置
mpg.setDataSource(initDataSourceConfig());
// 包配置
PackageConfig pc = new PackageConfig();
pc.setModuleName(module);
pc.setModuleName("");
pc.setParent("");
// 添加 gen标识为生成的代码
pc.setController(module + ".controller");
pc.setEntity(module + ".entity");
pc.setMapper(module + ".mapper");
pc.setService(module + ".service");
pc.setServiceImpl(module + ".service.impl");
mpg.setPackageInfo(pc);
// 自定义配置
mpg.setCfg(initInjectionConfig());
mpg.setTemplate(new TemplateConfig().setXml(null));
// 策略配置
StrategyConfig strategy = new StrategyConfig();
strategy.setNaming(NamingStrategy.underline_to_camel);
strategy.setColumnNaming(NamingStrategy.underline_to_camel);
strategy.setEntityLombokModel(true);
// 继承基础类
if (StringUtils.isNotBlank(superEntityClass)) {
strategy.setSuperEntityClass(superEntityClass);
// 基础类拥有的字段,不重复生成
List<String> superEntityColumns = new ArrayList<>();
Field[] fields = Class.forName(superEntityClass).getDeclaredFields();
for (Field field : fields) {
//在类的外面获取此类的私有成员变量的value时需配置 否则会抛异常
field.setAccessible(true);
boolean isIdField = field.isAnnotationPresent(TableField.class);
if (isIdField) {
superEntityColumns.add(field.getAnnotation(TableField.class).value());
}
}
if (CollUtil.isNotEmpty(superEntityColumns)) {
strategy.setSuperEntityColumns(superEntityColumns.toArray(new String[superEntityColumns.size()]));
}
}
// strategy.setSuperControllerClass("com.ai.cloudframe.common.base.support.BaseController");
String mode = scanner("请输入生成模式1 - 全表 2 - 单表");
while (!("1".equals(mode) || "2".equals(mode))) {
scanner("请输入生成模式1 - 全表 2 - 单表");
}
if ("1".equals(mode)) {
final String schema = scanner("请输入数据库名");
this.schema = schema;
final String[] tables = listAllTable(schema);
strategy.setInclude(tables);
} else {
strategy.setInclude(scanner("表名"));
}
strategy.setTablePrefix(scanner("表前缀"));
mpg.setStrategy(strategy);
mpg.setTemplateEngine(new FreemarkerTemplateEngine());
mpg.setTemplate(initTemplateConfig());
mpg.execute();
}
/**
*
* @return
*/
private GlobalConfig initGlobalConfig() {
GlobalConfig gc = new GlobalConfig();
gc.setOutputDir(projectPath + "/src/main/java");
gc.setAuthor("Automated procedures");
gc.setOpen(false);
return gc;
}
/**
*
* @return
*/
private DataSourceConfig initDataSourceConfig() {
return new DataSourceConfig()
.setUrl(url)
.setDriverName(driverName)
.setUsername(userName)
.setPassword(password);
}
/**
*
* @return
*/
private InjectionConfig initInjectionConfig() {
InjectionConfig cfg = new InjectionConfig() {
@Override
public void initMap() {
// to do nothing
}
};
List<FileOutConfig> focList = new ArrayList<>();
focList.add(new FileOutConfig("/templates/mapper.xml.ftl") {
@Override
public String outputFile(TableInfo tableInfo) {
// 自定义输入文件名称
mapperXmlFile = projectPath + "/src/main/resources/mapper/" + "/" + tableInfo.getEntityName() + "Mapper" + StringPool.DOT_XML;
return projectPath + "/src/main/resources/mapper/" + "/" + tableInfo.getEntityName() + "Mapper" + StringPool.DOT_XML;
}
});
cfg.setFileOutConfigList(focList);
return cfg;
}
/**
* Entityxml
* @return
*/
private TemplateConfig initTemplateConfig() {
TemplateConfig tc = new TemplateConfig();
tc.setXml(null);
//如果当前Entity已经存在,那么仅仅覆盖Entity
File file = new File(mapperXmlFile);
if (file.exists()) {
tc.setController(null);
tc.setMapper(null);
tc.setService(null);
tc.setServiceImpl(null);
tc.setEntityKt(null);
}
return tc;
}
/**
* <p>
*
* </p>
*/
public String scanner(String tip) {
Scanner scanner = new Scanner(System.in);
StringBuilder help = new StringBuilder();
help.append("请输入" + tip + "");
System.out.println(help.toString());
if (scanner.hasNext()) {
String ipt = scanner.next();
if (StringUtils.isNotEmpty(ipt)) {
return ipt;
}
}
throw new MybatisPlusException("请输入正确的" + tip + "");
}
private String[] listAllTable(String db) {
try {
Class.forName("com.mysql.cj.jdbc.Driver");
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
List<String> tableNames = new ArrayList<>(20);
try (Connection connection = DriverManager.getConnection(url, userName, password)) {
final DatabaseMetaData metaData = connection.getMetaData();
final ResultSet tables =
metaData.getTables(db,null, null, new String[] { "TABLE" });
while (tables.next()) {
System.out.printf("%s - %s - %s%n", tables.getString(1), tables.getString(2), tables.getString(3));
if (!schema.equals(tables.getString(1))) {
System.out.printf("skip %s.%n", tables.getString(3));
}
tableNames.add(tables.getString(3));
}
} catch (SQLException throwables) {
throw new RuntimeException(throwables);
}
return tableNames.toArray(new String[0]);
}
}

View File

@ -0,0 +1,21 @@
package com.jwl.driver.server.generator;
public class MysqlParamGenerator {
private static final String host = "127.0.0.1:3306";
private static final String database = "driver_test";
private static final String url = "jdbc:mysql://" + host + "/" + database + "?characterEncoding=utf-8&autoReconnect=true&serverTimezone=Asia/Shanghai&failOverReadOnly=false";
private static final String userName = "root";
private static final String password = "123456";
private static final String module = "com.jwl.driver.server";
// projectPath项为空即可
private static final String projectPath = "/driver-server";
// todo 实体类是否继承基础类-具备开始时间和结束时间实体类的基础属性
private static final String superEntityClass = "";
public static void main(String[] args) throws ClassNotFoundException {
CodeGeneratorTool generatorTool = new CodeGeneratorTool();
generatorTool.generCode(host, database, url, userName, password, projectPath, module, superEntityClass);
}
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.OrderPayInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface OrderPayInfoMapper extends BaseMapper<OrderPayInfo> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.PayNoticeLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface PayNoticeLogMapper extends BaseMapper<PayNoticeLog> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.PayPrepay;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface PayPrepayMapper extends BaseMapper<PayPrepay> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.PayPrepayResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface PayPrepayResultMapper extends BaseMapper<PayPrepayResult> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.PayRefund;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 退 Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface PayRefundMapper extends BaseMapper<PayRefund> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.PayRefundResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 退 Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface PayRefundResultMapper extends BaseMapper<PayRefundResult> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdCar;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdCarMapper extends BaseMapper<TdCar> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdCategoryQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdCategoryQuestionMapper extends BaseMapper<TdCategoryQuestion> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdExaminationRoom;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdExaminationRoomMapper extends BaseMapper<TdExaminationRoom> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdExaminationRoomRoad;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 线; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdExaminationRoomRoadMapper extends BaseMapper<TdExaminationRoomRoad> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdMember;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdMemberMapper extends BaseMapper<TdMember> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdModuleQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdModuleQuestionMapper extends BaseMapper<TdModuleQuestion> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdPointQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdPointQuestionMapper extends BaseMapper<TdPointQuestion> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdQuestionMapper extends BaseMapper<TdQuestion> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdQuestionTest;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdQuestionTestMapper extends BaseMapper<TdQuestionTest> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdSysConfigList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdSysConfigListMapper extends BaseMapper<TdSysConfigList> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdSysConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdSysConfigMapper extends BaseMapper<TdSysConfig> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdSysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdSysUserMapper extends BaseMapper<TdSysUser> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdSysUserMember;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdSysUserMemberMapper extends BaseMapper<TdSysUserMember> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdTestProject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdTestProjectMapper extends BaseMapper<TdTestProject> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdTestProjectVideos;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdTestProjectVideosMapper extends BaseMapper<TdTestProjectVideos> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdTrafficSignCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdTrafficSignCategoryMapper extends BaseMapper<TdTrafficSignCategory> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.mapper;
import com.jwl.driver.server.entity.TdTrafficSignQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* ; Mapper
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface TdTrafficSignQuestionMapper extends BaseMapper<TdTrafficSignQuestion> {
}

View File

@ -0,0 +1,124 @@
package com.jwl.driver.server.response;
import com.jwl.driver.server.constant.ErrorCode;
import com.jwl.driver.server.enums.StatusEnum;
import com.jwl.driver.server.exception.BusinessException;
import com.jwl.driver.server.util.StringUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* .
*
* @author tangsz
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class BaseResponse<T> implements Serializable {
private String code;
private String message;
private T data;
public BaseResponse() {
}
public BaseResponse(T data) {
this.data = data;
}
public BaseResponse(String code, String message) {
this.code = code;
this.message = message;
}
public BaseResponse(String code, String message, T data) {
this.code = code;
this.message = message;
this.data = data;
}
public static <T> BaseResponse<T> create(T t) {
return new BaseResponse<T>(t);
}
public static <T> BaseResponse<T> create(T t, StatusEnum statusEnum) {
return new BaseResponse<T>(statusEnum.getCode(), statusEnum.getMessage(), t);
}
public static <T> BaseResponse<T> success() {
return BaseResponse.success(null, "");
}
public static <T> BaseResponse<T> success(T t) {
return BaseResponse.success(t, "");
}
public static <T> BaseResponse<T> success(T t, String message) {
return new BaseResponse<T>(StatusEnum.SUCCESS.getCode(), StringUtil.isNullOrEmpty(message) ? StatusEnum.SUCCESS.getMessage() : message, t);
}
public static <T> BaseResponse<T> fail() {
return BaseResponse.fail(null, "");
}
public static <T> BaseResponse<T> fail(T t) {
return BaseResponse.fail(t, "");
}
public static <T> BaseResponse<T> fail(T t, String message) {
return new BaseResponse<T>(StatusEnum.FAIL.getCode(), StringUtil.isNullOrEmpty(message) ? StatusEnum.FAIL.getMessage() : message, t);
}
public static <T> BaseResponse<T> fail(String code, T t, String message) {
return new BaseResponse<T>(StringUtil.isNullOrEmpty(code) ? StatusEnum.FAIL.getCode() : code, StringUtil.isNullOrEmpty(message) ? StatusEnum.FAIL.getMessage() : message, t);
}
public static <T> BaseResponse<T> create(T t, StatusEnum statusEnum, String message) {
return new BaseResponse<T>(statusEnum.getCode(), message, t);
}
public T getData() {
return data;
}
public void setData(T data) {
this.data = data;
}
public boolean ok() {
return StatusEnum.SUCCESS.getCode().equals(this.getCode());
}
@Override
public String toString() {
return "BaseResponse{" +
"code=" + code +
", message='" + message + '\'' +
", data=" + data +
'}';
}
/**
*
*
* @param e
* @param message
* @return
*/
public static <T> BaseResponse<T> buildByException(Exception e, String message, T t) {
String errorCode = ErrorCode.INTERNAL_ERROR;
if (e instanceof BusinessException) {
errorCode = ErrorCode.BUSINESS;
message = e.getMessage();
}
return BaseResponse.fail(errorCode, t, message);
}
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.service;
import com.jwl.driver.server.entity.OrderPayInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
*
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface IOrderPayInfoService extends IService<OrderPayInfo> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.service;
import com.jwl.driver.server.entity.PayNoticeLog;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
*
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface IPayNoticeLogService extends IService<PayNoticeLog> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.service;
import com.jwl.driver.server.entity.PayPrepayResult;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
*
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface IPayPrepayResultService extends IService<PayPrepayResult> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.service;
import com.jwl.driver.server.entity.PayPrepay;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
*
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface IPayPrepayService extends IService<PayPrepay> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.service;
import com.jwl.driver.server.entity.PayRefundResult;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 退
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface IPayRefundResultService extends IService<PayRefundResult> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.service;
import com.jwl.driver.server.entity.PayRefund;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 退
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface IPayRefundService extends IService<PayRefund> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.service;
import com.jwl.driver.server.entity.TdCar;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface ITdCarService extends IService<TdCar> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.service;
import com.jwl.driver.server.entity.TdCategoryQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface ITdCategoryQuestionService extends IService<TdCategoryQuestion> {
}

View File

@ -0,0 +1,16 @@
package com.jwl.driver.server.service;
import com.jwl.driver.server.entity.TdExaminationRoomRoad;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 线;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
public interface ITdExaminationRoomRoadService extends IService<TdExaminationRoomRoad> {
}

Some files were not shown because too many files have changed in this diff Show More