Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
challenger-rmi
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
许佳林
challenger-rmi
Commits
1bd0b30c
Commit
1bd0b30c
authored
Jan 12, 2017
by
崔亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
challenger-rmi init
parents
Show whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
3625 additions
and
0 deletions
+3625
-0
.gitignore
+10
-0
mvnw
+233
-0
mvnw.cmd
+146
-0
pom.xml
+97
-0
src/main/java/com/senthink/rmi/challenger/param/EllaOrgStructureParam.java
+110
-0
src/main/java/com/senthink/rmi/challenger/param/EllaUserBaseParam.java
+210
-0
src/main/java/com/senthink/rmi/challenger/param/PageParam.java
+136
-0
src/main/java/com/senthink/rmi/challenger/param/PagePermissionParam.java
+164
-0
src/main/java/com/senthink/rmi/challenger/param/RoleParam.java
+84
-0
src/main/java/com/senthink/rmi/challenger/param/SubsystemParam.java
+99
-0
src/main/java/com/senthink/rmi/challenger/param/SubsystemSyncParam.java
+67
-0
src/main/java/com/senthink/rmi/challenger/param/UserExtendsParam.java
+98
-0
src/main/java/com/senthink/rmi/challenger/param/UserOrgParam.java
+44
-0
src/main/java/com/senthink/rmi/challenger/param/UserRoleParam.java
+44
-0
src/main/java/com/senthink/rmi/challenger/param/UserTypeParam.java
+45
-0
src/main/java/com/senthink/rmi/challenger/response/Message.java
+87
-0
src/main/java/com/senthink/rmi/challenger/rmi/AirAdressHystrix.java
+47
-0
src/main/java/com/senthink/rmi/challenger/rmi/AirAdressRemoteService.java
+36
-0
src/main/java/com/senthink/rmi/challenger/rmi/AirInfoHystrix.java
+48
-0
src/main/java/com/senthink/rmi/challenger/rmi/AirInfoRemoteService.java
+35
-0
src/main/java/com/senthink/rmi/challenger/rmi/AircubeUserHystrix.java
+26
-0
src/main/java/com/senthink/rmi/challenger/rmi/AircubeUserRemoteService.java
+34
-0
src/main/java/com/senthink/rmi/challenger/rmi/DvcBaseHystrix.java
+16
-0
src/main/java/com/senthink/rmi/challenger/rmi/DvcBaseRemoteService.java
+37
-0
src/main/java/com/senthink/rmi/challenger/rmi/DvcCodeidHystrix.java
+26
-0
src/main/java/com/senthink/rmi/challenger/rmi/DvcCodeidRemoteService.java
+65
-0
src/main/java/com/senthink/rmi/challenger/rmi/DvcTypeHystrix.java
+50
-0
src/main/java/com/senthink/rmi/challenger/rmi/DvcTypeRemoteService.java
+61
-0
src/main/java/com/senthink/rmi/challenger/rmi/ExternalAPIHystrix.java
+34
-0
src/main/java/com/senthink/rmi/challenger/rmi/ExternalAPIRemoteService.java
+28
-0
src/main/java/com/senthink/rmi/challenger/rmi/MetaHystrix.java
+28
-0
src/main/java/com/senthink/rmi/challenger/rmi/MetaRemoteService.java
+59
-0
src/main/java/com/senthink/rmi/challenger/rmi/ProtocolAnalyzeHystrix.java
+59
-0
src/main/java/com/senthink/rmi/challenger/rmi/ProtocolAnalyzeRemoteService.java
+73
-0
src/main/java/com/senthink/rmi/challenger/rmi/ProtocolFrameworkHystrix.java
+60
-0
src/main/java/com/senthink/rmi/challenger/rmi/ProtocolFrameworkRemoteService.java
+80
-0
src/main/java/com/senthink/rmi/challenger/rmi/ProtocolParamHystrix.java
+60
-0
src/main/java/com/senthink/rmi/challenger/rmi/ProtocolParamRemoteService.java
+2
-0
src/main/java/com/senthink/rmi/challenger/rmi/WechaMsgtHystrix.java
+23
-0
src/main/java/com/senthink/rmi/challenger/rmi/WechatMsgRemoteService.java
+32
-0
src/main/java/com/senthink/rmi/challenger/vo/NodeVo.java
+118
-0
src/main/java/com/senthink/rmi/challenger/vo/OrgStructureVo.java
+99
-0
src/main/java/com/senthink/rmi/challenger/vo/PagePermissionVo.java
+113
-0
src/main/java/com/senthink/rmi/challenger/vo/RoleVo.java
+80
-0
src/main/java/com/senthink/rmi/challenger/vo/SubsystemSyncVo.java
+51
-0
src/main/java/com/senthink/rmi/challenger/vo/SubsystemVo.java
+59
-0
src/main/java/com/senthink/rmi/challenger/vo/UserBaseVo.java
+245
-0
src/main/java/com/senthink/rmi/challenger/vo/UserExtendsVo.java
+89
-0
src/main/java/com/senthink/rmi/challenger/vo/UserTypeVo.java
+37
-0
src/main/java/com/senthink/rmi/challenger/vo/UserUpdatePwdVo.java
+41
-0
No files found.
.gitignore
0 → 100644
View file @
1bd0b30c
# Created by .ignore support plugin (hsz.mobi)
### Example user template template
### Example user template
/target
/.mvn
# IntelliJ project files
.idea
*.iml
out
gen
mvnw
0 → 100644
View file @
1bd0b30c
#!/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
#
# http://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.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Maven2 Start Up Batch script
#
# Required ENV vars:
# ------------------
# JAVA_HOME - location of a JDK home dir
#
# Optional ENV vars
# -----------------
# M2_HOME - location of maven2's installed home dir
# 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
/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
#
# Look for the Apple JDKs first to preserve the existing behaviour, and then look
# for the new JDKs provided by Oracle.
#
if
[
-z
"
$JAVA_HOME
"
]
&&
[
-L
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
]
;
then
#
# Apple JDKs
#
export
JAVA_HOME
=
/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
fi
if
[
-z
"
$JAVA_HOME
"
]
&&
[
-L
/System/Library/Java/JavaVirtualMachines/CurrentJDK
]
;
then
#
# Apple JDKs
#
export
JAVA_HOME
=
/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
fi
if
[
-z
"
$JAVA_HOME
"
]
&&
[
-L
"/Library/Java/JavaVirtualMachines/CurrentJDK"
]
;
then
#
# Oracle JDKs
#
export
JAVA_HOME
=
/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
fi
if
[
-z
"
$JAVA_HOME
"
]
&&
[
-x
"/usr/libexec/java_home"
]
;
then
#
# Apple JDKs
#
export
JAVA_HOME
=
`
/usr/libexec/java_home
`
fi
;;
esac
if
[
-z
"
$JAVA_HOME
"
]
;
then
if
[
-r
/etc/gentoo-release
]
;
then
JAVA_HOME
=
`
java-config
--jre-home
`
fi
fi
if
[
-z
"
$M2_HOME
"
]
;
then
## resolve links - $0 may be a link to maven's home
PRG
=
"
$0
"
# need this for relative symlinks
while
[
-h
"
$PRG
"
]
;
do
ls
=
`
ls
-ld
"
$PRG
"
`
link
=
`
expr
"
$ls
"
:
'.*-> \(.*\)$'
`
if
expr
"
$link
"
:
'/.*'
>
/dev/null
;
then
PRG
=
"
$link
"
else
PRG
=
"
`
dirname
"
$PRG
"
`
/
$link
"
fi
done
saveddir
=
`
pwd
`
M2_HOME
=
`
dirname
"
$PRG
"
`
/..
# make it fully qualified
M2_HOME
=
`
cd
"
$M2_HOME
"
&&
pwd
`
cd
"
$saveddir
"
# echo Using m2 at $M2_HOME
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if
$cygwin
;
then
[
-n
"
$M2_HOME
"
]
&&
M2_HOME
=
`
cygpath
--unix
"
$M2_HOME
"
`
[
-n
"
$JAVA_HOME
"
]
&&
JAVA_HOME
=
`
cygpath
--unix
"
$JAVA_HOME
"
`
[
-n
"
$CLASSPATH
"
]
&&
CLASSPATH
=
`
cygpath
--path
--unix
"
$CLASSPATH
"
`
fi
# For Migwn, ensure paths are in UNIX format before anything is touched
if
$mingw
;
then
[
-n
"
$M2_HOME
"
]
&&
M2_HOME
=
"
`
(
cd
"
$M2_HOME
"
;
pwd
)
`
"
[
-n
"
$JAVA_HOME
"
]
&&
JAVA_HOME
=
"
`
(
cd
"
$JAVA_HOME
"
;
pwd
)
`
"
# TODO classpath?
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
=
"
`
which 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
CLASSWORLDS_LAUNCHER
=
org.codehaus.plexus.classworlds.launcher.Launcher
# For Cygwin, switch paths to Windows format before running java
if
$cygwin
;
then
[
-n
"
$M2_HOME
"
]
&&
M2_HOME
=
`
cygpath
--path
--windows
"
$M2_HOME
"
`
[
-n
"
$JAVA_HOME
"
]
&&
JAVA_HOME
=
`
cygpath
--path
--windows
"
$JAVA_HOME
"
`
[
-n
"
$CLASSPATH
"
]
&&
CLASSPATH
=
`
cygpath
--path
--windows
"
$CLASSPATH
"
`
fi
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir
()
{
local
basedir
=
$(
pwd
)
local
wdir
=
$(
pwd
)
while
[
"
$wdir
"
!=
'/'
]
;
do
if
[
-d
"
$wdir
"
/.mvn
]
;
then
basedir
=
$wdir
break
fi
wdir
=
$(
cd
"
$wdir
/.."
;
pwd
)
done
echo
"
${
basedir
}
"
}
# concatenates all lines of a file
concat_lines
()
{
if
[
-f
"
$1
"
]
;
then
echo
"
$(
tr
-s
'\n'
' '
<
"
$1
"
)
"
fi
}
export
MAVEN_PROJECTBASEDIR
=
${
MAVEN_BASEDIR
:-$(
find_maven_basedir
)}
MAVEN_OPTS
=
"
$(
concat_lines
"
$MAVEN_PROJECTBASEDIR
/.mvn/jvm.config"
)
$MAVEN_OPTS
"
# 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
exec
"
$JAVACMD
"
\
$MAVEN_OPTS
\
-classpath
"
$MAVEN_PROJECTBASEDIR
/.mvn/wrapper/maven-wrapper.jar"
\
"-Dmaven.home=
${
M2_HOME
}
"
"-Dmaven.multiModuleProjectDirectory=
${
MAVEN_PROJECTBASEDIR
}
"
\
${
WRAPPER_LAUNCHER
}
"
$@
"
mvnw.cmd
0 → 100644
View file @
1bd0b30c
@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 http://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 Maven2 Start Up Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM M2_HOME - location of maven2's installed home dir
@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 key stroke 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 enable echoing my 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 "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\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
set MAVEN_CMD_LINE_ARGS=%*
@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="".\.mvn\wrapper\maven-wrapper.jar""
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CMD_LINE_ARGS%
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 "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\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%
exit /B %ERROR_CODE%
\ No newline at end of file
pom.xml
0 → 100644
View file @
1bd0b30c
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.senthink.www
</groupId>
<artifactId>
challenger-rmi
</artifactId>
<version>
0.0.1
</version>
<packaging>
jar
</packaging>
<name>
challenger-rmi
</name>
<description>
challenger-rmi
</description>
<properties>
<logback.version>
1.1.6
</logback.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<java.version>
1.8
</java.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
spring-web
</artifactId>
<version>
4.3.4.RELEASE
</version>
</dependency>
<dependency>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-annotations
</artifactId>
<version>
1.5.10
</version>
</dependency>
<dependency>
<groupId>
javax.servlet
</groupId>
<artifactId>
javax.servlet-api
</artifactId>
<version>
4.0.0-b01
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-netflix-core
</artifactId>
<version>
1.2.3.RELEASE
</version>
</dependency>
<dependency>
<groupId>
javax.validation
</groupId>
<artifactId>
validation-api
</artifactId>
<version>
1.1.0.CR3
</version>
</dependency>
<dependency>
<groupId>
org.hibernate
</groupId>
<artifactId>
hibernate-validator
</artifactId>
<version>
5.2.4.Final
</version>
</dependency>
<dependency>
<groupId>
net.sf.json-lib
</groupId>
<artifactId>
json-lib
</artifactId>
<version>
2.4
</version>
<classifier>
jdk15
</classifier>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>
senthink-releases
</id>
<name>
Senthink-Releases
</name>
<url>
http://10.16.10.22:8081/nexus/content/repositories/senthink-releases/
</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.5.1
</version>
<configuration>
<source>
1.8
</source>
<target>
1.8
</target>
<annotationProcessorPaths>
<path>
<groupId>
org.mapstruct
</groupId>
<artifactId>
mapstruct-processor
</artifactId>
<version>
1.1.0.Final
</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</project>
src/main/java/com/senthink/rmi/challenger/param/EllaOrgStructureParam.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
param
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
@ApiModel
(
"协议定义"
)
public
class
EllaOrgStructureParam
extends
PageParam
{
@ApiModelProperty
(
"模糊查询"
)
private
String
search
;
/**
* 组织结构名称
*/
@ApiModelProperty
(
"组织结构名称"
)
private
String
name
;
/**
* 上级架构的id
*/
@ApiModelProperty
(
"上级架构的id"
)
private
Integer
parentId
;
/**
* 组织架构的层级 0最高层级 向下递增
*/
@ApiModelProperty
(
"组织架构的层级 0最高层级 向下递增"
)
private
Integer
level
;
/**
* 编号
*/
@ApiModelProperty
(
"编号"
)
private
String
number
;
/**
* 英文缩写
*/
@ApiModelProperty
(
"英文缩写"
)
private
String
abbreviation
;
/**
* 简称
*/
@ApiModelProperty
(
"简称"
)
private
String
shortName
;
@ApiModelProperty
(
"节点对应的英文名"
)
private
String
enName
;
public
String
getSearch
()
{
return
this
.
search
;
}
public
void
setSearch
(
String
search
)
{
this
.
search
=
search
;
}
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Integer
getParentId
()
{
return
this
.
parentId
;
}
public
void
setParentId
(
Integer
parentId
)
{
this
.
parentId
=
parentId
;
}
public
Integer
getLevel
()
{
return
this
.
level
;
}
public
void
setLevel
(
Integer
level
)
{
this
.
level
=
level
;
}
public
String
getNumber
()
{
return
this
.
number
;
}
public
void
setNumber
(
String
number
)
{
this
.
number
=
number
;
}
public
String
getAbbreviation
()
{
return
this
.
abbreviation
;
}
public
void
setAbbreviation
(
String
abbreviation
)
{
this
.
abbreviation
=
abbreviation
;
}
public
String
getShortName
()
{
return
this
.
shortName
;
}
public
void
setShortName
(
String
shortName
)
{
this
.
shortName
=
shortName
;
}
public
String
getEnName
()
{
return
enName
;
}
public
void
setEnName
(
String
enName
)
{
this
.
enName
=
enName
;
}
}
src/main/java/com/senthink/rmi/challenger/param/EllaUserBaseParam.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
param
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.util.Date
;
import
java.util.List
;
public
class
EllaUserBaseParam
extends
PageParam
{
public
EllaUserBaseParam
()
{
super
();
}
public
EllaUserBaseParam
(
String
loginName
,
String
password
)
{
this
.
loginName
=
loginName
;
this
.
password
=
password
;
}
@ApiModelProperty
(
"模糊查询"
)
private
String
search
;
/**
* 登录名
*/
@ApiModelProperty
(
"登录名"
)
private
String
loginName
;
/**
* 密码
*/
@ApiModelProperty
(
"密码"
)
private
String
password
;
/**
* 真实姓名
*/
@ApiModelProperty
(
"真实姓名"
)
private
String
realName
;
/**
* 手机号
*/
@ApiModelProperty
(
"手机号"
)
private
String
telephone
;
/**
* 邮箱
*/
@ApiModelProperty
(
"邮箱"
)
private
String
email
;
/**
* 地址
*/
@ApiModelProperty
(
"地址"
)
private
String
address
;
/**
* 注册日期
*/
@ApiModelProperty
(
"注册日期"
)
private
Date
regTime
;
/**
* 截止日期
*/
@ApiModelProperty
(
"截止日期"
)
private
Date
endTime
;
/**
* 用户类型id
*/
@ApiModelProperty
(
"用户类型id"
)
private
Integer
userTypeId
;
/**
* 用户状态 0 启用/ 1 禁用 / 2待审核 /3 驳回
*/
@ApiModelProperty
(
"用户状态 0 启用/ 1 禁用 / 2待审核 /3 驳回"
)
private
Integer
state
;
@ApiModelProperty
(
"用户状态集"
)
private
List
<
Integer
>
states
;
/**
* 父级帐号ID
*/
@ApiModelProperty
(
"父级帐号ID"
)
private
Integer
parentId
;
@ApiModelProperty
(
"拒绝理由"
)
private
String
rejectReason
;
@ApiModelProperty
(
"拒绝时间"
)
private
String
rejectTime
;
public
String
getRejectReason
()
{
return
rejectReason
;
}
public
void
setRejectReason
(
String
rejectReason
)
{
this
.
rejectReason
=
rejectReason
;
}
public
String
getRejectTime
()
{
return
rejectTime
;
}
public
void
setRejectTime
(
String
rejectTime
)
{
this
.
rejectTime
=
rejectTime
;
}
public
Integer
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
Integer
parentId
)
{
this
.
parentId
=
parentId
;
}
public
List
<
Integer
>
getStates
()
{
return
states
;
}
public
void
setStates
(
List
<
Integer
>
states
)
{
this
.
states
=
states
;
}
public
String
getSearch
()
{
return
this
.
search
;
}
public
void
setSearch
(
String
search
)
{
this
.
search
=
search
;
}
public
String
getLoginName
()
{
return
this
.
loginName
;
}
public
void
setLoginName
(
String
loginName
)
{
this
.
loginName
=
loginName
;
}
public
String
getPassword
()
{
return
this
.
password
;
}
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
public
String
getTelephone
()
{
return
this
.
telephone
;
}
public
void
setTelephone
(
String
telephone
)
{
this
.
telephone
=
telephone
;
}
public
String
getEmail
()
{
return
this
.
email
;
}
public
void
setEmail
(
String
email
)
{
this
.
email
=
email
;
}
public
String
getAddress
()
{
return
this
.
address
;
}
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
public
Date
getRegTime
()
{
return
this
.
regTime
;
}
public
void
setRegTime
(
Date
regTime
)
{
this
.
regTime
=
regTime
;
}
public
Date
getEndTime
()
{
return
this
.
endTime
;
}
public
void
setEndTime
(
Date
endTime
)
{
this
.
endTime
=
endTime
;
}
public
Integer
getUserTypeId
()
{
return
this
.
userTypeId
;
}
public
void
setUserTypeId
(
Integer
userTypeId
)
{
this
.
userTypeId
=
userTypeId
;
}
public
Integer
getState
()
{
return
state
;
}
public
void
setState
(
Integer
state
)
{
this
.
state
=
state
;
}
public
String
getRealName
()
{
return
realName
;
}
public
void
setRealName
(
String
realName
)
{
this
.
realName
=
realName
;
}
}
src/main/java/com/senthink/rmi/challenger/param/PageParam.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
param
;
/**
* The type Page param.
*
* @Project : Columbia
* @Package Name : com.senthink.www.domain.param
* @Class Name : ${CLASS_NAME}
* @Description :
* @Author : lingcy@lierda.com
* @Creation Date : 2016年11月23日 上午11:29
* @ModificationHistory Who When What -------- ---------- -----------------------------------
*/
public
class
PageParam
{
private
int
page
=
1
;
private
int
pageSize
=
10
;
private
String
search
;
private
String
searchBgnTime
;
private
String
searchEndTime
;
private
String
sort
;
/**
* Gets search end time.
*
* @return the search end time
*/
public
String
getSearchEndTime
()
{
return
searchEndTime
;
}
/**
* Sets search end time.
*
* @param searchEndTime the search end time
*/
public
void
setSearchEndTime
(
String
searchEndTime
)
{
this
.
searchEndTime
=
searchEndTime
;
}
/**
* Gets search bgn time.
*
* @return the search bgn time
*/
public
String
getSearchBgnTime
()
{
return
searchBgnTime
;
}
/**
* Sets search bgn time.
*
* @param searchBgnTime the search bgn time
*/
public
void
setSearchBgnTime
(
String
searchBgnTime
)
{
this
.
searchBgnTime
=
searchBgnTime
;
}
/**
* Gets page size.
*
* @return the page size
*/
public
int
getPageSize
()
{
return
pageSize
;
}
/**
* Sets page size.
*
* @param pageSize the page size
*/
public
void
setPageSize
(
int
pageSize
)
{
this
.
pageSize
=
pageSize
;
}
/**
* Gets page.
*
* @return the page
*/
public
int
getPage
()
{
return
page
;
}
/**
* Sets page.
*
* @param page the page
*/
public
void
setPage
(
int
page
)
{
this
.
page
=
page
;
}
/**
* Gets search.
*
* @return the search
*/
public
String
getSearch
()
{
return
search
;
}
/**
* Sets search.
*
* @param search the search
*/
public
void
setSearch
(
String
search
)
{
this
.
search
=
search
;
}
/**
* Gets sort.
*
* @return the sort
*/
public
String
getSort
()
{
return
sort
;
}
/**
* Sets sort.
*
* @param sort the sort
*/
public
void
setSort
(
String
sort
)
{
this
.
sort
=
sort
;
}
}
src/main/java/com/senthink/rmi/challenger/param/PagePermissionParam.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
param
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.util.List
;
public
class
PagePermissionParam
extends
PageParam
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键
*/
@ApiModelProperty
(
"ID"
)
private
Integer
id
;
/**
* 权限名称
*/
@ApiModelProperty
(
"权限名称"
)
private
String
name
;
/**
* 权限编号
*/
@ApiModelProperty
(
"权限编号"
)
private
String
number
;
/**
* 权限的路径
*/
@ApiModelProperty
(
"权限的路径"
)
private
String
url
;
/**
* 权限类型 0页面权限 1数据权限
*/
@ApiModelProperty
(
"权限类型 0页面权限 1数据权限"
)
private
Integer
type
;
/**
* 上级权限ID
*/
@ApiModelProperty
(
"上级权限ID"
)
private
Integer
parentId
;
/**
* 层级,最高级为0,依次下降,1,2,3...
*/
@ApiModelProperty
(
"层级,最高级为0,依次下降,1,2,3... "
)
private
Integer
level
;
/**
* 所属系统ID
*/
@ApiModelProperty
(
"所属系统ID"
)
private
Integer
subsystemId
;
/**
* 是否是菜单 0 否 1是
*/
@ApiModelProperty
(
"是否是菜单 0 否 1是"
)
private
Integer
isMenu
;
/**
* 权限英文名称
*/
@ApiModelProperty
(
"权限英文名称"
)
private
String
enName
;
@ApiModelProperty
(
"子节点集"
)
private
List
<
PagePermissionParam
>
children
;
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getNumber
()
{
return
number
;
}
public
void
setNumber
(
String
number
)
{
this
.
number
=
number
;
}
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
public
Integer
getType
()
{
return
type
;
}
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
public
Integer
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
Integer
parentId
)
{
this
.
parentId
=
parentId
;
}
public
Integer
getLevel
()
{
return
level
;
}
public
void
setLevel
(
Integer
level
)
{
this
.
level
=
level
;
}
public
Integer
getSubsystemId
()
{
return
subsystemId
;
}
public
void
setSubsystemId
(
Integer
subsystemId
)
{
this
.
subsystemId
=
subsystemId
;
}
public
Integer
getIsMenu
()
{
return
isMenu
;
}
public
void
setIsMenu
(
Integer
isMenu
)
{
this
.
isMenu
=
isMenu
;
}
public
String
getEnName
()
{
return
enName
;
}
public
void
setEnName
(
String
enName
)
{
this
.
enName
=
enName
;
}
public
List
<
PagePermissionParam
>
getChildren
()
{
return
children
;
}
public
void
setChildren
(
List
<
PagePermissionParam
>
children
)
{
this
.
children
=
children
;
}
}
src/main/java/com/senthink/rmi/challenger/param/RoleParam.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
param
;
import
io.swagger.annotations.ApiModelProperty
;
public
class
RoleParam
extends
PageParam
{
@ApiModelProperty
(
"模糊查询"
)
private
String
search
;
/**
* 角色名称
*/
@ApiModelProperty
(
"角色名称"
)
private
String
roleName
;
/**
* 角色编号
*/
@ApiModelProperty
(
"角色编号"
)
private
String
roleNumber
;
/**
* 权限集合用 id_level,id_level... 表示
*/
@ApiModelProperty
(
"权限集合用 id_level,id_level... 表示"
)
private
String
permissions
;
/**
* 用户数据权限信息,id的集合,分割
*/
@ApiModelProperty
(
"用户数据权限信息,id的集合,分割"
)
private
String
userdatas
;
/**
* 角色备注
*/
@ApiModelProperty
(
"角色备注"
)
private
String
remark
;
public
String
getSearch
()
{
return
this
.
search
;
}
public
void
setSearch
(
String
search
)
{
this
.
search
=
search
;
}
public
String
getRoleName
()
{
return
this
.
roleName
;
}
public
void
setRoleName
(
String
roleName
)
{
this
.
roleName
=
roleName
;
}
public
String
getRoleNumber
()
{
return
this
.
roleNumber
;
}
public
void
setRoleNumber
(
String
roleNumber
)
{
this
.
roleNumber
=
roleNumber
;
}
public
String
getPermissions
()
{
return
this
.
permissions
;
}
public
void
setPermissions
(
String
permissions
)
{
this
.
permissions
=
permissions
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getUserdatas
()
{
return
userdatas
;
}
public
void
setUserdatas
(
String
userdatas
)
{
this
.
userdatas
=
userdatas
;
}
}
src/main/java/com/senthink/rmi/challenger/param/SubsystemParam.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
param
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.util.List
;
public
class
SubsystemParam
extends
PageParam
{
@ApiModelProperty
(
"模糊查询"
)
private
String
search
;
/** 主键 */
@ApiModelProperty
(
"主键ID"
)
private
Integer
id
;
/** 系统名称 */
@ApiModelProperty
(
"系统名称"
)
private
String
name
;
/** 系统编号 */
@ApiModelProperty
(
"系统编号"
)
private
String
number
;
/** 系统访问路径 */
@ApiModelProperty
(
"系统访问路径"
)
private
String
url
;
/** 系统备注 */
@ApiModelProperty
(
"系统备注"
)
private
String
remark
;
/** 系统英文名称 */
@ApiModelProperty
(
"系统英文名称"
)
private
String
enName
;
@ApiModelProperty
(
"权限集"
)
private
List
<
PagePermissionParam
>
permissions
;
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
String
getEnName
()
{
return
enName
;
}
public
void
setEnName
(
String
enName
)
{
this
.
enName
=
enName
;
}
public
List
<
PagePermissionParam
>
getPermissions
()
{
return
permissions
;
}
public
void
setPermissions
(
List
<
PagePermissionParam
>
permissions
)
{
this
.
permissions
=
permissions
;
}
public
String
getSearch
()
{
return
this
.
search
;
}
public
void
setSearch
(
String
search
)
{
this
.
search
=
search
;
}
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getNumber
()
{
return
this
.
number
;
}
public
void
setNumber
(
String
number
)
{
this
.
number
=
number
;
}
public
String
getUrl
()
{
return
this
.
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
}
src/main/java/com/senthink/rmi/challenger/param/SubsystemSyncParam.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
param
;
import
io.swagger.annotations.ApiModelProperty
;
public
class
SubsystemSyncParam
extends
PageParam
{
@ApiModelProperty
(
"模糊查询"
)
private
String
search
;
/**
* 系统名称
*/
@ApiModelProperty
(
"系统名称"
)
private
String
name
;
/**
* 接口地址
*/
@ApiModelProperty
(
"接口地址"
)
private
String
url
;
@ApiModelProperty
(
"备注"
)
private
String
remark
;
@ApiModelProperty
(
"接口状态"
)
private
Integer
status
;
public
String
getSearch
()
{
return
this
.
search
;
}
public
void
setSearch
(
String
search
)
{
this
.
search
=
search
;
}
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getUrl
()
{
return
this
.
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
}
src/main/java/com/senthink/rmi/challenger/param/UserExtendsParam.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
param
;
import
io.swagger.annotations.ApiModelProperty
;
public
class
UserExtendsParam
extends
PageParam
{
@ApiModelProperty
(
"模糊查询"
)
private
String
search
;
/**
* 用户类型id
*/
@ApiModelProperty
(
"用户类型id"
)
private
Integer
userTypeId
;
/**
* 扩展属性code即属性列code,唯一的
*/
@ApiModelProperty
(
"扩展属性code即属性列code,唯一的"
)
private
String
attributeCode
;
/**
* 扩展属性名即属性列名
*/
@ApiModelProperty
(
"扩展属性名即属性列名"
)
private
String
attributeName
;
/**
* 表单类型
*/
@ApiModelProperty
(
"表单类型"
)
private
Integer
formType
;
/**
* 备注
*/
@ApiModelProperty
(
"备注"
)
private
String
remark
;
/**
* 单选框或复选框的待选值,用,隔开
*/
@ApiModelProperty
(
"单选框或复选框的待选值,用,隔开"
)
private
String
content
;
public
String
getSearch
()
{
return
this
.
search
;
}
public
void
setSearch
(
String
search
)
{
this
.
search
=
search
;
}
public
Integer
getUserTypeId
()
{
return
this
.
userTypeId
;
}
public
void
setUserTypeId
(
Integer
userTypeId
)
{
this
.
userTypeId
=
userTypeId
;
}
public
String
getAttributeName
()
{
return
this
.
attributeName
;
}
public
void
setAttributeName
(
String
attributeName
)
{
this
.
attributeName
=
attributeName
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getAttributeCode
()
{
return
attributeCode
;
}
public
void
setAttributeCode
(
String
attributeCode
)
{
this
.
attributeCode
=
attributeCode
;
}
public
Integer
getFormType
()
{
return
formType
;
}
public
void
setFormType
(
Integer
formType
)
{
this
.
formType
=
formType
;
}
public
String
getContent
()
{
return
content
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
}
src/main/java/com/senthink/rmi/challenger/param/UserOrgParam.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
param
;
import
io.swagger.annotations.ApiModelProperty
;
public
class
UserOrgParam
extends
PageParam
{
@ApiModelProperty
(
"模糊查询"
)
private
String
search
;
/**
* 用户ID
*/
@ApiModelProperty
(
"用户ID"
)
private
Integer
userId
;
/**
* 组织架构的id
*/
@ApiModelProperty
(
"组织架构的id"
)
private
Integer
orgId
;
public
String
getSearch
()
{
return
this
.
search
;
}
public
void
setSearch
(
String
search
)
{
this
.
search
=
search
;
}
public
Integer
getUserId
()
{
return
this
.
userId
;
}
public
void
setUserId
(
Integer
userId
)
{
this
.
userId
=
userId
;
}
public
Integer
getOrgId
()
{
return
orgId
;
}
public
void
setOrgId
(
Integer
orgId
)
{
this
.
orgId
=
orgId
;
}
}
src/main/java/com/senthink/rmi/challenger/param/UserRoleParam.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
param
;
import
io.swagger.annotations.ApiModelProperty
;
public
class
UserRoleParam
extends
PageParam
{
@ApiModelProperty
(
"模糊查询"
)
private
String
search
;
/**
* 用户ID
*/
@ApiModelProperty
(
"用户ID"
)
private
Integer
userId
;
/**
* 角色ID
*/
@ApiModelProperty
(
"角色ID"
)
private
Integer
roleId
;
public
String
getSearch
()
{
return
this
.
search
;
}
public
void
setSearch
(
String
search
)
{
this
.
search
=
search
;
}
public
Integer
getUserId
()
{
return
this
.
userId
;
}
public
void
setUserId
(
Integer
userId
)
{
this
.
userId
=
userId
;
}
public
Integer
getRoleId
()
{
return
this
.
roleId
;
}
public
void
setRoleId
(
Integer
roleId
)
{
this
.
roleId
=
roleId
;
}
}
src/main/java/com/senthink/rmi/challenger/param/UserTypeParam.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
param
;
import
io.swagger.annotations.ApiModelProperty
;
public
class
UserTypeParam
extends
PageParam
{
@ApiModelProperty
(
"模糊查询"
)
private
String
search
;
/**
* 用户类型名称
*/
@ApiModelProperty
(
"用户类型名称"
)
private
String
name
;
/**
* 用户类型备注
*/
@ApiModelProperty
(
"用户类型备注"
)
private
String
remark
;
public
String
getSearch
()
{
return
this
.
search
;
}
public
void
setSearch
(
String
search
)
{
this
.
search
=
search
;
}
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
}
src/main/java/com/senthink/rmi/challenger/response/Message.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
response
;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
Message
{
private
String
code
;
private
String
msg
;
private
Object
data
;
public
Message
()
{
}
public
static
final
String
CODE_SUCCESS
=
"8001"
;
public
static
final
String
MSG_SUCCESS
=
"操作成功"
;
public
static
final
String
CODE_ERROR
=
"4001"
;
public
static
final
String
MSG_ERROR
=
"操作失败"
;
public
static
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
static
{
map
.
put
(
CODE_SUCCESS
,
MSG_SUCCESS
);
map
.
put
(
CODE_ERROR
,
MSG_ERROR
);
}
public
static
final
Message
ERROR
=
new
Message
(
Message
.
CODE_ERROR
);
public
static
final
Message
SUCCESS
=
new
Message
(
Message
.
CODE_SUCCESS
);
public
Message
(
String
code
)
{
this
.
code
=
code
;
this
.
msg
=
getMsgByCode
(
code
);
}
public
Message
(
Object
data
)
{
this
.
data
=
data
;
}
public
Message
(
String
code
,
String
msg
)
{
this
.
code
=
code
;
this
.
msg
=
msg
;
}
public
Message
(
String
code
,
Object
data
)
{
this
.
code
=
code
;
this
.
msg
=
getMsgByCode
(
code
);
this
.
data
=
data
;
}
public
Message
(
String
code
,
String
msg
,
Object
data
)
{
this
.
code
=
code
;
this
.
msg
=
msg
;
this
.
data
=
data
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getMsg
()
{
return
msg
;
}
public
void
setMsg
(
String
msg
)
{
this
.
msg
=
msg
;
}
public
Object
getData
()
{
return
data
;
}
public
void
setData
(
Object
data
)
{
this
.
data
=
data
;
}
public
String
getMsgByCode
(
String
code
)
{
return
map
.
get
(
code
);
}
}
src/main/java/com/senthink/rmi/challenger/rmi/AirAdressHystrix.java
0 → 100644
View file @
1bd0b30c
/**
*
*/
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
/**
* @ClassName : AirAdressHystrix
* @Description :
* @Author : xujialin
* @CreationDate : 2016年12月23日下午3:08:15
*/
public
abstract
class
AirAdressHystrix
implements
AirAdressRemoteService
{
/*
* (non-Javadoc)
*
* @see com.senthink.columbiarmi.rmi.AirAdressRemoteService#editAdress(com.
* senthink.columbiarmi.vo.AircubeAdressVo)
*/
@Override
public
abstract
Message
editAdress
(
@RequestBody
AircubeAdressVo
airAdress
);
/*
* (non-Javadoc)
*
* @see
* com.senthink.columbiarmi.rmi.AirAdressRemoteService#getAdress(java.lang.
* Integer)
*/
@Override
public
abstract
Message
getAdress
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
/*
* (non-Javadoc)
*
* @see
* com.senthink.columbiarmi.rmi.AirAdressRemoteService#getAdressByCubeId(
* java.lang.Integer)
*/
@Override
public
abstract
Message
getAdressByCubeId
(
@PathVariable
(
value
=
"cubeid"
)
Integer
cubeid
);
}
src/main/java/com/senthink/rmi/challenger/rmi/AirAdressRemoteService.java
0 → 100644
View file @
1bd0b30c
/**
*
*/
package
com
.
senthink
.
rmi
.
challenger
.
rmi
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
com.senthink.columbiarmi.response.Message
;
import
io.swagger.annotations.ApiOperation
;
/**
* @ClassName : AirAdressRemoteService
* @Description :
* @Author : xujialin
* @CreationDate : 2016年12月23日下午3:08:40
*/
@FeignClient
(
value
=
"columbia"
,
fallback
=
AirAdressHystrix
.
class
)
public
interface
AirAdressRemoteService
{
@ApiOperation
(
value
=
"地址插入"
,
notes
=
"userId airId 必传 ,地址插入或更新"
)
@RequestMapping
(
"/columbia/h5/adress/add"
)
Message
editAdress
(
@RequestBody
AircubeAdressVo
airAdress
);
@ApiOperation
(
value
=
"获取要编辑的adress"
,
notes
=
"根据id获取要更新的adress"
)
@RequestMapping
(
"/columbia/h5/adress/edit/{id}"
)
Message
getAdress
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
@ApiOperation
(
value
=
"获取当前魔方启用的地址"
,
notes
=
"根据魔方id获取要当前的adress"
)
@RequestMapping
(
"/columbia/h5/air/getAdress/{cubeid}"
)
Message
getAdressByCubeId
(
@PathVariable
(
value
=
"cubeid"
)
Integer
cubeid
);
}
src/main/java/com/senthink/rmi/challenger/rmi/AirInfoHystrix.java
0 → 100644
View file @
1bd0b30c
/**
*
*/
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
/**
* @ClassName : AirInfoHystrix
* @Description :
* @Author : xujialin
* @CreationDate : 2016年12月19日下午4:30:43
*/
public
abstract
class
AirInfoHystrix
implements
AirInfoRemoteService
{
/*
* (non-Javadoc)
*
* @see
* com.senthink.columbiarmi.rmi.AirInfoRemoteService#addAircube(com.senthink
* .columbiarmi.vo.AircubeInfoVo)
*/
@Override
public
abstract
Message
addAircube
(
@RequestBody
AircubeInfoVo
airvo
);
/*
* (non-Javadoc)
*
* @see
* com.senthink.columbiarmi.rmi.AirInfoRemoteService#getaircube(java.lang.
* Integer)
*/
@Override
public
abstract
Message
getaircube
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
/*
* (non-Javadoc)
*
* @see
* com.senthink.columbiarmi.rmi.AirInfoRemoteService#getTicketByMac(java.
* lang.String)
*/
@Override
public
abstract
Message
getTicketByMac
(
@PathVariable
(
value
=
"mac"
)
String
mac
);
}
src/main/java/com/senthink/rmi/challenger/rmi/AirInfoRemoteService.java
0 → 100644
View file @
1bd0b30c
/**
*
*/
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
com.senthink.columbiarmi.response.Message
;
import
io.swagger.annotations.ApiOperation
;
/**
* @ClassName : AirInfoRemoteService
* @Description :
* @Author : xujialin
* @CreationDate : 2016年12月19日下午4:31:41
*/
@FeignClient
(
value
=
"columbia"
,
fallback
=
AirInfoHystrix
.
class
)
public
interface
AirInfoRemoteService
{
@ApiOperation
(
value
=
"更新或插入魔方信息"
,
notes
=
"更新或插入魔方信息"
)
@RequestMapping
(
"/columbia/h5/air/addOrUpdate"
)
Message
addAircube
(
@RequestBody
AircubeInfoVo
airvo
);
@ApiOperation
(
value
=
"根据魔方id获取要修改的魔方信息"
,
notes
=
"根据魔方id获取要修改的魔方信息"
)
@RequestMapping
(
"/columbia/h5/air/edit/{id}"
)
Message
getaircube
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
@ApiOperation
(
value
=
"通过Mac获取二维码信息"
,
notes
=
"通过Mac获取二维码信息"
)
@RequestMapping
(
value
=
"/columbia/h5/air/getTicket/{mac}"
)
Message
getTicketByMac
(
@PathVariable
(
value
=
"mac"
)
String
mac
);
}
src/main/java/com/senthink/rmi/challenger/rmi/AircubeUserHystrix.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
/**
* @Project : Columbia
* @Package Name : com.senthink.columbiarmi.rmi
* @Description :
* @Author : wanwt@senthink.com
* @Creation Date : 2016年12月30日 上午8:50
* @ModificationHistory Who When What
* -------- ---------- -----------------------------------
*/
public
abstract
class
AircubeUserHystrix
implements
AircubeUserRemoteService
{
public
abstract
Message
registAndAuthorizeDvc
(
@RequestBody
AircubeAuthorizeVo
aircubeAuthorizeVo
);
public
abstract
Message
sendMsgToDvc
(
@RequestBody
DvcMsgVo
dvcMsg
);
public
abstract
Message
sign4JsApi
(
@PathVariable
(
value
=
"url"
)
String
url
,
@PathVariable
(
value
=
"code"
)
String
code
,
@PathVariable
(
value
=
"state"
)
String
state
);
public
abstract
Message
getUserOpenid
(
@PathVariable
(
value
=
"code"
)
String
code
);
}
src/main/java/com/senthink/rmi/challenger/rmi/AircubeUserRemoteService.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
/**
* @Project : Columbia
* @Package Name : com.senthink.columbiarmi.rmi
* @Description : 供前台和设备厂商调用的部分接口
* @Author : wanwt@senthink.com
* @Creation Date : 2016年12月30日 上午8:51
* @ModificationHistory Who When What
* -------- ---------- -----------------------------------
*/
@FeignClient
(
name
=
"columbia"
,
fallback
=
AircubeUserHystrix
.
class
)
public
interface
AircubeUserRemoteService
{
@ApiOperation
(
value
=
"通过Mac地址添加设备信息及微信认证"
,
notes
=
"生产线调用该接口进行设备认证,该接口只接受同一型号产品的批量认证"
)
@RequestMapping
(
value
=
"/columbia/user/registAndAuthorizeDvc"
,
method
=
RequestMethod
.
POST
)
Message
registAndAuthorizeDvc
(
@RequestBody
AircubeAuthorizeVo
aircubeAuthorizeVo
);
@ApiOperation
(
value
=
"主动发消息给设备"
,
notes
=
"默认为给设备发送请求历史数据指令,返回通道为微信服务器"
)
@RequestMapping
(
value
=
"/columbia/user/sendMsgToDvc"
,
method
=
RequestMethod
.
POST
)
Message
sendMsgToDvc
(
@RequestBody
DvcMsgVo
dvcMsg
);
@ApiOperation
(
value
=
"前台调用jsapi验证签名"
,
notes
=
"前台页面调用jsapi时需请求后台证书验证签名,将微信跳转的链接前台拆分后分三个字段请求,防止符号转码"
)
@RequestMapping
(
value
=
"/columbia/user/sign4JsApi/{url}/{code}/{state}"
,
method
=
RequestMethod
.
GET
)
Message
sign4JsApi
(
@PathVariable
(
value
=
"url"
)
String
url
,
@PathVariable
(
value
=
"code"
)
String
code
,
@PathVariable
(
value
=
"state"
)
String
state
);
@ApiOperation
(
value
=
"oauth2获取用户openid"
,
notes
=
"微信内页面跳转项目页面时返回的code用以获取该用户基本信息"
)
@RequestMapping
(
value
=
"/columbia/user/getUserOpenid/{code}"
,
method
=
RequestMethod
.
GET
)
Message
getUserOpenid
(
@PathVariable
(
value
=
"code"
)
String
code
);
}
src/main/java/com/senthink/rmi/challenger/rmi/DvcBaseHystrix.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
/**
* Created by Leaves on 2016/12/20.
*/
public
abstract
class
DvcBaseHystrix
implements
DvcBaseRemoteService
{
public
abstract
Message
list
(
@RequestBody
(
required
=
false
)
BumpDvcBaseParam
bumpDvcBaseParam
);
public
abstract
Message
detail
(
@PathVariable
(
value
=
"dvcId"
)
Integer
dvcId
);
}
src/main/java/com/senthink/rmi/challenger/rmi/DvcBaseRemoteService.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
/**
* Created by Leaves on 2016/12/20.
*/
@FeignClient
(
value
=
"columbia"
,
fallback
=
DvcBaseHystrix
.
class
)
public
interface
DvcBaseRemoteService
{
/**
* 设备查询、搜索
*
* @param bumpDvcBaseParam
* @return
*/
@ApiOperation
(
value
=
"设备列表"
,
notes
=
"设备列表分页展示、设备搜索,搜索关键词search(VCU编号、名称、车主账号、条码编号(车架号)、SIM卡号(IMSI))、searchBgnTime、searchEndTime"
)
@RequestMapping
(
value
=
"/columbia/dvcBase/list"
,
method
=
RequestMethod
.
POST
)
Message
list
(
@RequestBody
(
required
=
false
)
BumpDvcBaseParam
bumpDvcBaseParam
);
/**
* 设备详情页
* 根据设备条码编号(车架号)查询设备详情,包括设备基本信息,设备使用情况,车主信息
*
* @param dvcId
* @return
*/
@ApiOperation
(
value
=
"设备详情"
,
notes
=
"根据设备 Id 查看设备详情(未包含车主信息),如返回false,则表示该条记录不存在"
)
@RequestMapping
(
value
=
{
"/columbia/dvcBase/detail/{dvcId}"
},
method
=
RequestMethod
.
GET
)
Message
detail
(
@PathVariable
(
value
=
"dvcId"
)
Integer
dvcId
);
}
src/main/java/com/senthink/rmi/challenger/rmi/DvcCodeidHystrix.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
javax.servlet.http.HttpServletRequest
;
/**
* Created by Leaves on 2016/12/20.
*/
public
abstract
class
DvcCodeidHystrix
implements
DvcCodeidRemoteService
{
public
abstract
Message
list
(
@RequestBody
(
required
=
false
)
BumpDvcCodeidParam
bumpDvcCodeidParam
);
public
abstract
Message
dvcCodeidAddAndEdit
(
@RequestBody
(
required
=
true
)
DvcCodeidVo
dvcCodeidVo
);
public
abstract
Message
dvcCodeidEdit
(
@RequestParam
Integer
id
);
public
abstract
Message
deleteCodeidById
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
public
abstract
Message
importExcel
(
HttpServletRequest
httpServletRequest
);
}
src/main/java/com/senthink/rmi/challenger/rmi/DvcCodeidRemoteService.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
/**
* Created by Leaves on 2016/12/20.
*/
@FeignClient
(
value
=
"columbia"
,
fallback
=
DvcCodeidHystrix
.
class
)
public
interface
DvcCodeidRemoteService
{
/**
* 条码列表首页
*
* @param bumpDvcCodeidParam
* @return
*/
@ApiOperation
(
value
=
"条码列表"
,
notes
=
"条码列表分页展示、条码搜索,搜索关键词search(条码编号、VCU编号)"
)
@RequestMapping
(
value
=
"/columbia/code/list"
,
method
=
RequestMethod
.
POST
)
Message
list
(
@RequestBody
(
required
=
false
)
BumpDvcCodeidParam
bumpDvcCodeidParam
);
/**
* 条码添加、更新
*
* @param dvcCodeidVo
* @return
*/
@ApiOperation
(
value
=
"条码添加、更新"
,
notes
=
"条码添加,输入信息(条码编号、VCU编号、Id=0);更新数据,输入信息(条码编号、VCU编号、Id 为数据库实际 Id 值)"
)
@RequestMapping
(
value
=
"/columbia/code/addAndEdit"
,
method
=
RequestMethod
.
POST
)
Message
dvcCodeidAddAndEdit
(
@RequestBody
(
required
=
true
)
DvcCodeidVo
dvcCodeidVo
);
/**
* 条码修改
*
* @param id
* @return
*/
@ApiOperation
(
value
=
"条码修改"
,
notes
=
"条码修改,根据 Id 返回需要修改的条码的原始数据,如返回 false,则表示该条记录不存在"
)
@RequestMapping
(
value
=
"/columbia/code/edit/{id}"
,
method
=
RequestMethod
.
GET
)
Message
dvcCodeidEdit
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
/**
* 删除条码
*
* @param id
* @return
*/
@ApiOperation
(
value
=
"条码删除"
,
notes
=
"条码删除,根据 Id 删除条码,如果该设备已经注册,则无法删除"
)
@RequestMapping
(
value
=
"/columbia/code/delete/{id}"
,
method
=
RequestMethod
.
DELETE
)
Message
deleteCodeidById
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
/**
* 条码设置excel导入
*
* @param httpServletRequest
* @return
*/
@ApiOperation
(
value
=
"条码批量导入"
,
notes
=
"条码批量导入,<br/>Excel 数据格式:一共2列,需加上列名,第1列(条码编号(车架号)),第2列(设备ID),第2行开始为连续的若干行数据,其中 Excel 的 Sheet 名字为“设备条码导入”,Excel 文件名为“dataExcel.xls”;<br/>数据通过表单上传,enctype 等于 multipart/form-data;<br/>返回数据:导入数据总数,导入成功条数,导入失败数据具体位置;<br/>测试文件下载地址:http://10.18.11.16:9437/dataExcel.xls"
)
@RequestMapping
(
value
=
"/columbia/code/importExcel"
,
method
=
RequestMethod
.
POST
)
Message
importExcel
(
HttpServletRequest
httpServletRequest
);
}
src/main/java/com/senthink/rmi/challenger/rmi/DvcTypeHystrix.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
javax.validation.Valid
;
/**
* The type Dvc type hystrix.
*
* @Project : Columbia
* @Package Name : com.senthink.www.rmi
* @Class Name : ${CLASS_NAME}
* @Description :
* @Author : lingcy@lierda.com
* @Creation Date : 2016年12月16日 下午3:19
* @ModificationHistory Who When What -------- ---------- -----------------------------------
*/
public
abstract
class
DvcTypeHystrix
implements
DvcTypeRemoteService
{
/**
* Index string.
*
* @param param the param
* @return the string
*/
public
abstract
Message
index
(
@RequestBody
(
required
=
false
)
BumpDvcTypeParam
param
);
/**
* Dvc type to edit string.
*
* @param id the id
* @return the string
*/
public
abstract
Message
dvcTypeToEdit
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
/**
* Dvc type do edit string.
*
* @param vo the vo
* @return the string
*/
public
abstract
Message
dvcTypeDoEdit
(
@RequestBody
@Valid
BumpDvcTypeVo
vo
);
/**
* dvcTypeDelete
* @return the string
*/
public
abstract
Message
dvcTypeDelete
(
@PathVariable
(
value
=
"ids"
)
String
ids
);
}
src/main/java/com/senthink/rmi/challenger/rmi/DvcTypeRemoteService.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
/**
* The interface Dvc type remote service.
*
* @Project : Columbia
* @Package Name : com.senthink.www.rmi
* @Class Name : DvcTypeRemoteService
* @Description :
* @Author : lingcy@lierda.com
* @Creation Date : 2016年12月16日 下午3:18
* @ModificationHistory Who When What -------- ---------- -----------------------------------
*/
@FeignClient
(
name
=
"columbia"
,
fallback
=
DvcTypeHystrix
.
class
)
public
interface
DvcTypeRemoteService
{
/**
* 模型类别首页
*
* @param param the param
* @return string string
*/
@ApiOperation
(
value
=
"模型类别"
,
notes
=
"分页显示模型类别"
,
position
=
6
)
@RequestMapping
(
value
=
{
"/columbia/dvcType/list"
},
method
=
RequestMethod
.
POST
)
Message
index
(
@RequestBody
(
required
=
false
)
BumpDvcTypeParam
param
);
/**
* 模型类别修改
*
* @param id the id
* @return string string
*/
@ApiOperation
(
value
=
"编辑"
,
notes
=
"编辑模型类别"
,
position
=
5
)
@RequestMapping
(
value
=
"/columbia/dvcType/edit/{id}"
,
method
=
RequestMethod
.
GET
)
Message
dvcTypeToEdit
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
/**
* 模型类别新增或修改执行
*
* @param vo the vo
* @return string string
*/
@ApiOperation
(
value
=
"编辑或者新增"
,
notes
=
"执行编辑或者新增"
,
position
=
4
)
@RequestMapping
(
value
=
"/columbia/dvcType/doSave"
,
method
=
RequestMethod
.
POST
)
Message
dvcTypeDoEdit
(
@RequestBody
@Valid
BumpDvcTypeVo
vo
);
/**
* 删除模型类别
* @return the string
*/
@ApiOperation
(
value
=
"删除"
,
notes
=
"执行删除"
,
position
=
3
)
@RequestMapping
(
value
=
{
"/columbia/dvcType/delete/{ids}"
},
method
=
RequestMethod
.
GET
)
Message
dvcTypeDelete
(
@PathVariable
(
value
=
"ids"
)
String
ids
);
}
src/main/java/com/senthink/rmi/challenger/rmi/ExternalAPIHystrix.java
0 → 100644
View file @
1bd0b30c
/**
*
*/
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
/**
* @ClassName : ExternalAPIRemoteService
* @Description :
* @Author : xujialin
* @CreationDate : 2016年12月26日下午5:07:50
*/
public
abstract
class
ExternalAPIHystrix
implements
ExternalAPIRemoteService
{
/*
* (non-Javadoc)
*
* @see
* com.senthink.columbiarmi.rmi.ExternalAPIRemoteService#getweather(java.
* lang.Integer)
*/
@Override
public
abstract
Message
getweather
(
Integer
airId
);
/*
* (non-Javadoc)
*
* @see com.senthink.columbiarmi.rmi.ExternalAPIRemoteService#getTicket()
*/
@Override
public
abstract
Message
getTicket
();
}
src/main/java/com/senthink/rmi/challenger/rmi/ExternalAPIRemoteService.java
0 → 100644
View file @
1bd0b30c
/**
*
*/
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
com.senthink.columbiarmi.response.Message
;
import
io.swagger.annotations.ApiOperation
;
/**
* @ClassName : ExternalAPIHystrix
* @Description :
* @Author : xujialin
* @CreationDate : 2016年12月26日下午5:08:11
*/
public
interface
ExternalAPIRemoteService
{
@ApiOperation
(
value
=
"天气api调用"
,
notes
=
"天气Api调用 返回status 与 天气数据"
)
@RequestMapping
(
"/columbia/h5/api/weather/{airId}"
)
public
Message
getweather
(
@PathVariable
Integer
airId
);
@ApiOperation
(
value
=
"操作ticket获取"
,
notes
=
"操作ticket获取"
)
@RequestMapping
(
"/columbia/h5/ticket/get"
)
public
Message
getTicket
();
}
src/main/java/com/senthink/rmi/challenger/rmi/MetaHystrix.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
javax.validation.Valid
;
/**
* @Project : Columbia
* @Package Name : com.senthink.www.rmi
* @Class Name : MetaHystrix
* @Description :
* @Author : lingcy@lierda.com
* @Creation Date : 2016年12月16日 下午3:36
* @ModificationHistory Who When What
* -------- ---------- -----------------------------------
*/
public
abstract
class
MetaHystrix
implements
MetaRemoteService
{
public
abstract
Message
index
();
public
abstract
Message
toEdit
(
@Valid
@RequestBody
BumpMetaVo
vo
);
public
abstract
Message
edit
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
public
abstract
Message
doDelete
(
@PathVariable
(
value
=
"ids"
)
String
ids
);
}
src/main/java/com/senthink/rmi/challenger/rmi/MetaRemoteService.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
/**
* The interface Meta remote service.
*
* @Project : Columbia
* @Package Name : com.senthink.www.rmi
* @Class Name : MetaRemoteService
* @Description :
* @Author : lingcy@lierda.com
* @Creation Date : 2016年12月16日 下午3:35
* @ModificationHistory Who When What -------- ---------- -----------------------------------
*/
@FeignClient
(
name
=
"columbia"
,
fallback
=
MetaHystrix
.
class
)
public
interface
MetaRemoteService
{
/**
* 模型创建首页
*
* @return jsonStr string
*/
@ApiOperation
(
value
=
"模型"
,
notes
=
"显示模型"
)
@RequestMapping
(
value
=
{
"/columbia/meta/index"
},
method
=
RequestMethod
.
GET
)
Message
index
();
/**
* 模型创建新增和修改
*
* @param vo the vo
* @return jsonStr string
*/
@ApiOperation
(
value
=
"新增或修改"
,
notes
=
"新增或修改模型"
)
@RequestMapping
(
value
=
"/columbia/meta/doEdit"
,
method
=
RequestMethod
.
POST
)
Message
toEdit
(
@Valid
@RequestBody
BumpMetaVo
vo
);
/**
* 模型创建新增和修改
*
* @return jsonStr
*/
@ApiOperation
(
value
=
"进入修改"
,
notes
=
"进入修改模型"
)
@RequestMapping
(
value
=
"/columbia/meta/edit/{id}"
,
method
=
RequestMethod
.
GET
)
Message
edit
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
/**
* 模型删除
*
* @param id the id
* @return jsonStr string
*/
@ApiOperation
(
value
=
"删除"
,
notes
=
"删除模型"
)
@RequestMapping
(
value
=
"/columbia/meta/doDelete/{ids}"
,
method
=
RequestMethod
.
DELETE
)
Message
doDelete
(
@PathVariable
(
value
=
"ids"
)
String
ids
);
}
src/main/java/com/senthink/rmi/challenger/rmi/ProtocolAnalyzeHystrix.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
javax.validation.Valid
;
/**
* The type Protocol analyze hystrix.
*
* @Project : Columbia
* @Package Name : com.senthink.www.rmi
* @Class Name : ${CLASS_NAME}
* @Description :
* @Author : lingcy@lierda.com
* @Creation Date : 2016年12月16日 下午3:25
* @ModificationHistory Who When What -------- ---------- -----------------------------------
*/
public
abstract
class
ProtocolAnalyzeHystrix
implements
ProtocolAnalyzeRemoteService
{
/**
* Index string.
*
* @param bpap the bpap
* @return the string
*/
public
abstract
Message
index
(
@RequestBody
(
required
=
false
)
BumpProtocolAnalyzeParam
bpap
);
/**
* Panalyze to add string.
*
* @return the string
*/
public
abstract
Message
panalyzeToAdd
();
/**
* Panalyze to edit string.
*
* @param id the id
* @return the string
*/
public
abstract
Message
panalyzeToEdit
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
/**
* Panalyze do add string.
*
* @param vo the vo
* @return the string
*/
public
abstract
Message
panalyzeDoAdd
(
@Valid
@RequestBody
BumpProtocolAnalyzeVo
vo
);
/**
* Panalyze delete string.
*
* @param id the id
* @return the string
*/
public
abstract
Message
panalyzeDelete
(
@PathVariable
(
value
=
"ids"
)
String
ids
);
}
src/main/java/com/senthink/rmi/challenger/rmi/ProtocolAnalyzeRemoteService.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
/**
* The interface Protocol analyze remote service.
*
* @Project : Columbia
* @Package Name : com.senthink.www.rmi
* @Class Name : ${CLASS_NAME}
* @Description :
* @Author : lingcy@lierda.com
* @Creation Date : 2016年12月16日 下午3:24
* @ModificationHistory Who When What -------- ---------- -----------------------------------
*/
@FeignClient
(
name
=
"columbia"
,
fallback
=
ProtocolAnalyzeHystrix
.
class
)
public
interface
ProtocolAnalyzeRemoteService
{
/**
* 命令解析首页
*
* @param bpap the bpap
* @return jsonStr string
*/
@ApiOperation
(
value
=
"协议解析"
,
notes
=
"分页显示协议解析"
)
@RequestMapping
(
value
=
{
"/columbia/panalyze/list"
},
method
=
RequestMethod
.
POST
)
Message
index
(
@RequestBody
(
required
=
false
)
BumpProtocolAnalyzeParam
bpap
);
/**
* 命令解析添加
*
* @return jsonStr string
*/
@ApiOperation
(
value
=
"添加"
,
notes
=
"协议解析"
)
@RequestMapping
(
value
=
"/columbia/panalyze/add"
,
method
=
RequestMethod
.
POST
)
Message
panalyzeToAdd
();
/**
* 命令解析修改
*
* @param id the id
* @return jsonStr string
*/
@ApiOperation
(
value
=
"修改"
,
notes
=
"协议解析修改"
)
@RequestMapping
(
value
=
"/columbia/panalyze/edit/{id}"
,
method
=
RequestMethod
.
GET
)
Message
panalyzeToEdit
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
/**
* 命令解析添加或修改执行
*
* @param vo the vo
* @return jsonStr string
*/
@ApiOperation
(
value
=
"添加或修改执行"
,
notes
=
"协议解析执行添加或修改"
)
@RequestMapping
(
value
=
"/columbia/panalyze/doAdd"
,
method
=
RequestMethod
.
POST
)
Message
panalyzeDoAdd
(
@Valid
@RequestBody
BumpProtocolAnalyzeVo
vo
);
/**
* 删除命令解析
*
* @param ids the ids
* @return jsonStr string
*/
@ApiOperation
(
value
=
"删除"
,
notes
=
"协议解析删除"
)
@RequestMapping
(
value
=
{
"/columbia/panalyze/delete/{ids}"
},
method
=
RequestMethod
.
GET
)
Message
panalyzeDelete
(
@PathVariable
(
value
=
"ids"
)
String
ids
);
}
src/main/java/com/senthink/rmi/challenger/rmi/ProtocolFrameworkHystrix.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
/**
* The type Protocol framework hystrix.
*
* @Project : Columbia
* @Package Name : com.senthink.www.rmi
* @Class Name : ProtocolFrameworkHystrix
* @Description :
* @Author : lingcy@lierda.com
* @Creation Date : 2016年12月15日 下午4:56
* @ModificationHistory Who When What -------- ---------- -----------------------------------
*/
public
abstract
class
ProtocolFrameworkHystrix
implements
ProtocolFrameworkRemoteService
{
public
abstract
Message
index
(
@RequestBody
(
required
=
false
)
BumpProtocolFrameworkParam
bpfp
);
/**
* Pframework to add string.
*
* @return the string
*/
public
abstract
Message
pframeworkToAdd
();
/**
* Pframework to edit string.
*
* @param id the id
* @return the string
*/
public
abstract
Message
pframeworkToEdit
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
/**
* Pframework do add string.
*
* @param pfkv the pfkv
* @return the string
*/
public
abstract
Message
pframeworkDoAdd
(
@RequestBody
ProtocolFrameworkVo
pfkv
);
/**
* Pframework do edit string.
*
* @param vo the vo
* @return the string
*/
public
abstract
Message
pframeworkDoEdit
(
@RequestBody
ProtocolFrameworkVo
vo
);
/**
* Pframework delete string.
*
* @param id the id
* @return the string
*/
public
abstract
Message
pframeworkDelete
(
@PathVariable
(
value
=
"ids"
)
String
ids
);
}
src/main/java/com/senthink/rmi/challenger/rmi/ProtocolFrameworkRemoteService.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
/**
* The interface Protocol framework remote service.
*
* @Project : Columbia
* @Package Name : com.senthink.www.rmi
* @Class Name : ProtocolFrameworkRemoteService
* @Description :
* @Author : lingcy@lierda.com
* @Creation Date : 2016年12月15日 下午4:25
* @ModificationHistory Who When What -------- ---------- -----------------------------------
*/
@FeignClient
(
name
=
"columbia"
,
fallback
=
ProtocolFrameworkHystrix
.
class
)
public
interface
ProtocolFrameworkRemoteService
{
/**
* 协议定义首页
*
* @param bpfp the bpfp
* @return jsonStr string
*/
@ApiOperation
(
value
=
"显示电车协议"
,
notes
=
"分页返回电车协议"
,
position
=
6
)
@RequestMapping
(
value
=
{
"/columbia/pframework/list"
},
method
=
RequestMethod
.
POST
)
Message
index
(
@RequestBody
(
required
=
false
)
BumpProtocolFrameworkParam
bpfp
);
/**
* 协议定义添加
*
* @return jsonStr string
*/
@ApiOperation
(
value
=
"添加"
,
notes
=
"添加电车协议"
,
position
=
5
)
@RequestMapping
(
value
=
"/columbia/pframework/add"
,
method
=
RequestMethod
.
POST
)
Message
pframeworkToAdd
();
/**
* 协议定义修改
*
* @param id the id
* @return jsonStr string
*/
@ApiOperation
(
value
=
"编辑"
,
notes
=
"编辑电车协议"
,
position
=
4
)
@RequestMapping
(
value
=
"/columbia/pframework/edit/{id}"
,
method
=
RequestMethod
.
GET
)
Message
pframeworkToEdit
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
/**
* 协议定义添加执行
*
* @param pfkv the pfkv
* @return jsonStr string
*/
@ApiOperation
(
value
=
"执行添加"
,
notes
=
"协议定义添加执行"
,
position
=
3
)
@RequestMapping
(
value
=
"/columbia/pframework/doAdd"
,
method
=
RequestMethod
.
POST
)
Message
pframeworkDoAdd
(
@RequestBody
ProtocolFrameworkVo
pfkv
);
/**
* 协议定义修改执行
*
* @param vo the vo
* @return string string
*/
@ApiOperation
(
value
=
"执行修改"
,
notes
=
"协议定义修改执行"
,
position
=
2
)
@RequestMapping
(
value
=
"/columbia/pframework/doEdit"
,
method
=
RequestMethod
.
POST
)
Message
pframeworkDoEdit
(
@RequestBody
ProtocolFrameworkVo
vo
);
/**
* 删除协议定义
*
* @param id the id
* @return jsonStr string
*/
@ApiOperation
(
value
=
"执行删除"
,
notes
=
"删除协议定义"
,
position
=
1
)
@RequestMapping
(
value
=
{
"/columbia/pframework/delete/{ids}"
},
method
=
RequestMethod
.
GET
)
Message
pframeworkDelete
(
@PathVariable
(
value
=
"ids"
)
String
ids
);
}
src/main/java/com/senthink/rmi/challenger/rmi/ProtocolParamHystrix.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
javax.validation.Valid
;
/**
* The type Protocol param hystrix.
*
* @Project : Columbia
* @Package Name : com.senthink.www.rmi
* @Class Name : ${CLASS_NAME}
* @Description :
* @Author : lingcy@lierda.com
* @Creation Date : 2016年12月16日 下午3:30
* @ModificationHistory Who When What -------- ---------- -----------------------------------
*/
public
abstract
class
ProtocolParamHystrix
implements
ProtocolParamRemoteService
{
public
abstract
Message
index
(
@RequestBody
(
required
=
false
)
BumpProtocolParamParam
param
);
/**
* Pparam to add string.
*
* @return the string
*/
public
abstract
Message
pparamToAdd
();
/**
* Pparam to edit string.
*
* @param id the id
* @return the string
*/
public
abstract
Message
pparamToEdit
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
/**
* Pparam do add string.
*
* @param vo the vo
* @return the string
*/
public
abstract
Message
pparamDoAdd
(
@Valid
@RequestBody
ProtocolParamVo
vo
);
/**
* Pparam delete string.
* @return the string
*/
public
abstract
Message
pparamDelete
(
@PathVariable
(
value
=
"ids"
)
String
ids
);
/**
* Select metas by framework id string.
*
* @param id the id
* @return the string
*/
public
abstract
Message
selectMetasByFrameworkId
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
}
src/main/java/com/senthink/rmi/challenger/rmi/ProtocolParamRemoteService.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
/** * @Project : Columbia * @Package Name : com.senthink.www.rmi * @Class Name : ProtocolParamRemoteService * @Description : * @Author : lingcy@lierda.com * @Creation Date : 2016年12月16日 下午3:29 * @ModificationHistory Who When What * -------- ---------- ----------------------------------- */
@FeignClient
(
name
=
"columbia"
,
fallback
=
ProtocolParamHystrix
.
class
)
public
interface
ProtocolParamRemoteService
{
/** * 协议参数首页 * * @param param * @return */
@ApiOperation
(
value
=
"协议参数"
,
notes
=
"分页显示协议参数"
)
@RequestMapping
(
value
=
{
"/columbia/pparam/list"
},
method
=
RequestMethod
.
POST
)
Message
index
(
@RequestBody
(
required
=
false
)
BumpProtocolParamParam
param
);
/** * 协议参数添加 * * @return */
@ApiOperation
(
value
=
"添加"
,
notes
=
"协议参数添加"
)
@RequestMapping
(
value
=
"/columbia/pparam/add"
,
method
=
RequestMethod
.
GET
)
Message
pparamToAdd
();
/** * 协议参数修改 * * @param id * @return */
@ApiOperation
(
value
=
"编辑"
,
notes
=
"协议参数编辑"
)
@RequestMapping
(
value
=
"/columbia/pparam/edit/{id}"
,
method
=
RequestMethod
.
POST
)
Message
pparamToEdit
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
/** * 协议参数执行添加或修改 * * @param vo * @return */
@ApiOperation
(
value
=
"执行添加或者修改"
,
notes
=
"协议参数执行添加或者修改"
)
@RequestMapping
(
value
=
"/columbia/pparam/doAdd"
,
method
=
RequestMethod
.
POST
)
Message
pparamDoAdd
(
@Valid
@RequestBody
ProtocolParamVo
vo
);
/** * 删除协议参数 */
@ApiOperation
(
value
=
"删除"
,
notes
=
"协议参数删除"
)
@RequestMapping
(
value
=
{
"/columbia/pparam/delete/{ids}"
},
method
=
RequestMethod
.
GET
)
Message
pparamDelete
(
@PathVariable
(
value
=
"ids"
)
String
ids
);
@RequestMapping
(
value
=
"/columbia/pparam/getMetas/{id}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
value
=
"查询"
,
notes
=
"查询所属模块或者结果赋值模块"
)
Message
selectMetasByFrameworkId
(
@PathVariable
(
value
=
"id"
)
Integer
id
);
}
\ No newline at end of file
src/main/java/com/senthink/rmi/challenger/rmi/WechaMsgtHystrix.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
/**
* @Project : Columbia
* @Package Name : com.senthink.columbiarmi.rmi
* @Description : 微信接口抽象类
* @Author : wanwt@senthink.com
* @Creation Date : 2016年12月26日 下午5:16
* @ModificationHistory Who When What
* -------- ---------- -----------------------------------
*/
public
abstract
class
WechaMsgtHystrix
{
public
abstract
Message
receiveMsg
(
HttpServletRequest
request
,
HttpServletResponse
response
);
public
abstract
Message
receiveDvcMsg
(
HttpServletRequest
request
,
HttpServletResponse
response
);
}
src/main/java/com/senthink/rmi/challenger/rmi/WechatMsgRemoteService.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
columbiarmi
.
rmi
;
import
com.senthink.columbiarmi.response.Message
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.cloud.netflix.feign.FeignClient
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
/**
* @Project : Columbia
* @Package Name : com.senthink.columbiarmi.rmi
* @Description : 微信相关接口
* @Author : wanwt@senthink.com
* @Creation Date : 2016年12月26日 下午5:18
* @ModificationHistory Who When What
* -------- ---------- -----------------------------------
*/
@FeignClient
(
name
=
"columbia"
,
fallback
=
WechaMsgtHystrix
.
class
)
public
interface
WechatMsgRemoteService
{
@ApiOperation
(
value
=
"微信回调接口"
,
notes
=
"微信回调信息(用户关注,上报地理位置,绑定设备等事件)都转发到该接口"
)
@RequestMapping
(
value
=
"/columbia/reply/receiveMsg"
,
method
=
RequestMethod
.
POST
)
Message
receiveMsg
(
HttpServletRequest
request
,
HttpServletResponse
response
);
@ApiOperation
(
value
=
"微信硬件回调接口(仅公众平台启用时有效)"
,
notes
=
"微信硬件回调信息(设备发送消息到服务器,绑定设备等事件)都转发到该接口"
)
@RequestMapping
(
value
=
"/columbia/reply/receiveDvcMsg"
,
method
=
RequestMethod
.
POST
)
Message
receiveDvcMsg
(
HttpServletRequest
request
,
HttpServletResponse
response
);
}
src/main/java/com/senthink/rmi/challenger/vo/NodeVo.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
vo
;
import
java.io.Serializable
;
import
java.util.List
;
public
class
NodeVo
implements
Serializable
{
/**
* serialVersionUID:TODO(用一句话描述这个变量表示什么)
* @since Ver 1.1
*/
private
static
final
long
serialVersionUID
=
7185777465259967700L
;
private
Integer
id
;
/**
* 父级ID
*/
private
Integer
pId
;
/**
* 当前节点名称
*/
private
String
name
;
/**
* 层级
*/
private
Integer
level
;
/**
* 子节点
*/
private
List
<
NodeVo
>
children
;
/**
* 是否选中
*/
private
boolean
checked
;
/**
* 子系统id
*/
private
Integer
subsystemId
;
//节点对应的英文名
private
String
enName
;
public
NodeVo
(){
}
public
NodeVo
(
Integer
id
,
Integer
level
){
this
.
id
=
id
;
this
.
level
=
level
;
}
public
Integer
getpId
()
{
return
pId
;
}
public
void
setpId
(
Integer
pId
)
{
this
.
pId
=
pId
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
Integer
getLevel
()
{
return
level
;
}
public
void
setLevel
(
Integer
level
)
{
this
.
level
=
level
;
}
public
List
<
NodeVo
>
getChildren
()
{
return
children
;
}
public
void
setChildren
(
List
<
NodeVo
>
children
)
{
this
.
children
=
children
;
}
public
boolean
isChecked
()
{
return
checked
;
}
public
void
setChecked
(
boolean
checked
)
{
this
.
checked
=
checked
;
}
public
Integer
getSubsystemId
()
{
return
subsystemId
;
}
public
void
setSubsystemId
(
Integer
subsystemId
)
{
this
.
subsystemId
=
subsystemId
;
}
public
String
getEnName
()
{
return
enName
;
}
public
void
setEnName
(
String
enName
)
{
this
.
enName
=
enName
;
}
}
src/main/java/com/senthink/rmi/challenger/vo/OrgStructureVo.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
vo
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
java.io.Serializable
;
public
class
OrgStructureVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
5620497436811285836L
;
private
Integer
id
;
/**
* 组织结构名称
*/
@NotEmpty
(
message
=
"组织架构名不允许为空"
)
private
String
name
;
/**
* 上级架构的id
*/
private
Integer
parentId
;
/**
* 组织架构的层级 0最高层级 向下递增
*/
private
Integer
level
;
/**
* 编号
*/
private
String
number
;
/**
* 英文缩写
*/
private
String
abbreviation
;
/**
* 简称
*/
private
String
shortName
;
/**
* 节点对应的英文名
*/
private
String
enName
;
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Integer
getParentId
()
{
return
this
.
parentId
;
}
public
void
setParentId
(
Integer
parentId
)
{
this
.
parentId
=
parentId
;
}
public
Integer
getLevel
()
{
return
this
.
level
;
}
public
void
setLevel
(
Integer
level
)
{
this
.
level
=
level
;
}
public
String
getNumber
()
{
return
this
.
number
;
}
public
void
setNumber
(
String
number
)
{
this
.
number
=
number
;
}
public
String
getAbbreviation
()
{
return
this
.
abbreviation
;
}
public
void
setAbbreviation
(
String
abbreviation
)
{
this
.
abbreviation
=
abbreviation
;
}
public
String
getShortName
()
{
return
this
.
shortName
;
}
public
void
setShortName
(
String
shortName
)
{
this
.
shortName
=
shortName
;
}
public
String
getEnName
()
{
return
enName
;
}
public
void
setEnName
(
String
enName
)
{
this
.
enName
=
enName
;
}
}
src/main/java/com/senthink/rmi/challenger/vo/PagePermissionVo.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
vo
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
public
class
PagePermissionVo
extends
Entity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
7961685214504407072L
;
/**
* 权限名称
*/
@NotEmpty
(
message
=
"权限名称不允许为空"
)
private
String
name
;
/**
* 权限编号
*/
@NotEmpty
(
message
=
"权限编号不允许为空"
)
private
String
number
;
/**
* 权限的路径
*/
private
String
url
;
/**
* 权限类型 0页面权限 1数据权限
*/
private
Integer
type
;
/**
* 上级权限ID
*/
@NotNull
(
message
=
"父类ID不允许为空"
)
private
Integer
parentId
;
/**
* 级别、层级,最高级为0,依次下降,1,2,3...
*/
@NotNull
(
message
=
"级别不允许为空"
)
private
Integer
level
;
/**
* 所属系统ID
*/
// @NotNull(message = "所属系统不允许为空")
private
Integer
subsystemId
;
/**
* 是否是菜单 0否 1是
*/
private
Integer
isMenu
;
private
String
enName
;
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getNumber
()
{
return
this
.
number
;
}
public
void
setNumber
(
String
number
)
{
this
.
number
=
number
;
}
public
String
getUrl
()
{
return
this
.
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
public
Integer
getType
()
{
return
this
.
type
;
}
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
public
Integer
getParentId
()
{
return
this
.
parentId
;
}
public
void
setParentId
(
Integer
parentId
)
{
this
.
parentId
=
parentId
;
}
public
Integer
getLevel
()
{
return
this
.
level
;
}
public
void
setLevel
(
Integer
level
)
{
this
.
level
=
level
;
}
public
Integer
getSubsystemId
()
{
return
this
.
subsystemId
;
}
public
void
setSubsystemId
(
Integer
subsystemId
)
{
this
.
subsystemId
=
subsystemId
;
}
public
Integer
getIsMenu
()
{
return
isMenu
;
}
public
void
setIsMenu
(
Integer
isMenu
)
{
this
.
isMenu
=
isMenu
;
}
public
String
getEnName
()
{
return
enName
;
}
public
void
setEnName
(
String
enName
)
{
this
.
enName
=
enName
;
}
}
src/main/java/com/senthink/rmi/challenger/vo/RoleVo.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
vo
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
javax.validation.constraints.Pattern
;
import
java.io.Serializable
;
public
class
RoleVo
extends
Entity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
2100630863868299080L
;
private
static
final
String
numReg
=
"^[A-Za-z][A-Za-z1-9_-]+$"
;
/**
* 角色名称
*/
@NotEmpty
(
message
=
"角色名称不允许为空"
)
private
String
roleName
;
/**
* 角色编号
*/
@Pattern
(
regexp
=
numReg
,
message
=
"请输入英文或数字"
)
private
String
roleNumber
;
/**
* 权限集合用 id_level,id_level... 表示
*/
// @NotEmpty(message = "请选择权限")
private
String
permissions
;
/**
* 用户数据权限信息,id的集合,分割
*/
// @NotEmpty(message = "请选择用户")
private
String
userdatas
;
/**
* 角色备注
*/
private
String
remark
;
public
String
getRoleName
()
{
return
this
.
roleName
;
}
public
void
setRoleName
(
String
roleName
)
{
this
.
roleName
=
roleName
;
}
public
String
getRoleNumber
()
{
return
this
.
roleNumber
;
}
public
void
setRoleNumber
(
String
roleNumber
)
{
this
.
roleNumber
=
roleNumber
;
}
public
String
getPermissions
()
{
return
this
.
permissions
;
}
public
void
setPermissions
(
String
permissions
)
{
this
.
permissions
=
permissions
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getUserdatas
()
{
return
userdatas
;
}
public
void
setUserdatas
(
String
userdatas
)
{
this
.
userdatas
=
userdatas
;
}
}
src/main/java/com/senthink/rmi/challenger/vo/SubsystemSyncVo.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
vo
;
import
org.hibernate.validator.constraints.NotBlank
;
import
java.io.Serializable
;
public
class
SubsystemSyncVo
extends
Entity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
4888387947052885316L
;
/**
* 系统名称
*/
@NotBlank
(
message
=
"系统名称不允许为空"
)
private
String
name
;
/**
* 接口地址
*/
@NotBlank
(
message
=
"访问路径不允许为空"
)
private
String
url
;
private
String
remark
;
private
Integer
status
;
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getUrl
()
{
return
this
.
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
}
src/main/java/com/senthink/rmi/challenger/vo/SubsystemVo.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
vo
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
java.io.Serializable
;
public
class
SubsystemVo
extends
Entity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
3691640953750630217L
;
/**
* 系统名称
*/
@NotEmpty
(
message
=
"系统名称不允许为空"
)
private
String
name
;
/**
* 系统编号
*/
@NotEmpty
(
message
=
"系统编号不允许为空"
)
private
String
number
;
/**
* 系统访问路径
*/
@NotEmpty
(
message
=
"系统访问路径不允许为空"
)
private
String
url
;
/**
* 系统备注
*/
private
String
remark
;
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getNumber
()
{
return
this
.
number
;
}
public
void
setNumber
(
String
number
)
{
this
.
number
=
number
;
}
public
String
getUrl
()
{
return
this
.
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
}
src/main/java/com/senthink/rmi/challenger/vo/UserBaseVo.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
vo
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
javax.validation.constraints.Pattern
;
import
java.io.Serializable
;
import
java.util.Date
;
public
class
UserBaseVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
3641762319070709334L
;
private
static
final
String
emailReg
=
"^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$"
;
private
static
final
String
phoneReg
=
"^(13|15|18|17)\\d{9}$"
;
private
Integer
id
;
/**
* 登录名
*/
@NotEmpty
(
message
=
"{error_ue_loginname_null}"
)
private
String
loginName
;
/**
* 密码
*/
private
String
password
;
/**
* 真实姓名
*/
@NotEmpty
(
message
=
"真实姓名不能为空"
)
private
String
realName
;
/**
* 手机号
*/
@Pattern
(
regexp
=
phoneReg
,
message
=
"手机格式不正确"
)
private
String
telephone
;
/**
* 邮箱
*/
@Pattern
(
regexp
=
emailReg
,
message
=
"邮箱格式不正确"
)
private
String
email
;
/**
* 地址
*/
private
String
address
;
/**
* 注册日期
*/
private
Date
regTime
;
/**
* 截止日期
*/
private
String
endTime
;
/**
* 用户类型id
*/
private
Integer
userTypeId
;
/**
* 用户状态 0 启用/ 1 禁用
*/
private
Integer
state
;
/**
* 手机端登录时传过来的手机名
*/
private
String
phoneName
;
/**
* 手机端登录时传过来的手机uuid
*/
private
String
phoneUuid
;
/**
* android的cid或iOS的devicetoken,由client_type来决定
*/
private
String
clientId
;
/**
* android 或 ios
*/
private
String
clientType
;
/**
* 手机端注册请求的验证码
*/
private
String
virifyCode
;
/**
* 门店对应的服务商id 0:服务商
*/
private
Integer
parentId
;
private
String
picIds
;
private
String
picUrls
;
private
String
tradeBgnTime
;
private
String
tradeEndTime
;
private
String
gpsValue
;
private
String
isUpdatePic
;
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
String
getIsUpdatePic
()
{
return
isUpdatePic
;
}
public
void
setIsUpdatePic
(
String
isUpdatePic
)
{
this
.
isUpdatePic
=
isUpdatePic
;
}
public
String
getGpsValue
()
{
return
gpsValue
;
}
public
void
setGpsValue
(
String
gpsValue
)
{
this
.
gpsValue
=
gpsValue
;
}
public
String
getTradeBgnTime
()
{
return
tradeBgnTime
;
}
public
void
setTradeBgnTime
(
String
tradeBgnTime
)
{
this
.
tradeBgnTime
=
tradeBgnTime
;
}
public
String
getTradeEndTime
()
{
return
tradeEndTime
;
}
public
void
setTradeEndTime
(
String
tradeEndTime
)
{
this
.
tradeEndTime
=
tradeEndTime
;
}
public
String
getPicIds
()
{
return
picIds
;
}
public
void
setPicIds
(
String
picIds
)
{
this
.
picIds
=
picIds
;
}
public
String
getPicUrls
()
{
return
picUrls
;
}
public
void
setPicUrls
(
String
picUrls
)
{
this
.
picUrls
=
picUrls
;
}
public
Integer
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
Integer
parentId
)
{
this
.
parentId
=
parentId
;
}
public
String
getLoginName
()
{
return
this
.
loginName
;
}
public
void
setLoginName
(
String
loginName
)
{
this
.
loginName
=
loginName
;
}
public
String
getPassword
()
{
return
this
.
password
;
}
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
public
String
getTelephone
()
{
return
this
.
telephone
;
}
public
void
setTelephone
(
String
telephone
)
{
this
.
telephone
=
telephone
;
}
public
String
getEmail
()
{
return
this
.
email
;
}
public
void
setEmail
(
String
email
)
{
this
.
email
=
email
;
}
public
String
getAddress
()
{
return
this
.
address
;
}
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
public
Date
getRegTime
()
{
return
regTime
;
}
public
void
setRegTime
(
Date
regTime
)
{
this
.
regTime
=
regTime
;
}
public
String
getEndTime
()
{
return
endTime
;
}
public
void
setEndTime
(
String
endTime
)
{
this
.
endTime
=
endTime
;
}
public
Integer
getUserTypeId
()
{
return
this
.
userTypeId
;
}
public
void
setUserTypeId
(
Integer
userTypeId
)
{
this
.
userTypeId
=
userTypeId
;
}
public
Integer
getState
()
{
return
state
;
}
public
void
setState
(
Integer
state
)
{
this
.
state
=
state
;
}
public
String
getPhoneName
()
{
return
phoneName
;
}
public
void
setPhoneName
(
String
phoneName
)
{
this
.
phoneName
=
phoneName
;
}
public
String
getPhoneUuid
()
{
return
phoneUuid
;
}
public
void
setPhoneUuid
(
String
phoneUuid
)
{
this
.
phoneUuid
=
phoneUuid
;
}
public
String
getRealName
()
{
return
realName
;
}
public
void
setRealName
(
String
realName
)
{
this
.
realName
=
realName
;
}
public
String
getClientId
()
{
return
clientId
;
}
public
void
setClientId
(
String
clientId
)
{
this
.
clientId
=
clientId
;
}
public
String
getClientType
()
{
return
clientType
;
}
public
void
setClientType
(
String
clientType
)
{
this
.
clientType
=
clientType
;
}
public
String
getVirifyCode
()
{
return
virifyCode
;
}
public
void
setVirifyCode
(
String
virifyCode
)
{
this
.
virifyCode
=
virifyCode
;
}
}
src/main/java/com/senthink/rmi/challenger/vo/UserExtendsVo.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
vo
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
java.io.Serializable
;
public
class
UserExtendsVo
extends
Entity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1480244651888427349L
;
/**
* 用户类型id
*/
@NotEmpty
(
message
=
"{error_ue_usertype_null}"
)
private
String
userTypeId
;
/**
* 扩展属性code即属性列code,唯一的
*/
@NotEmpty
(
message
=
"{error_ue_extendcode_null}"
)
private
String
attributeCode
;
/**
* 扩展属性名即属性列名
*/
@NotEmpty
(
message
=
"{error_ue_extendname_null}"
)
private
String
attributeName
;
/**
* 表单类型
*/
@NotEmpty
(
message
=
"{error_ue_formtype_null}"
)
private
String
formType
;
/**
* 备注
*/
private
String
remark
;
/**
* 单选框或复选框的待选值,用,隔开
*/
private
String
content
;
public
String
getUserTypeId
()
{
return
this
.
userTypeId
;
}
public
void
setUserTypeId
(
String
userTypeId
)
{
this
.
userTypeId
=
userTypeId
;
}
public
String
getAttributeName
()
{
return
this
.
attributeName
;
}
public
void
setAttributeName
(
String
attributeName
)
{
this
.
attributeName
=
attributeName
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getAttributeCode
()
{
return
attributeCode
;
}
public
void
setAttributeCode
(
String
attributeCode
)
{
this
.
attributeCode
=
attributeCode
;
}
public
String
getFormType
()
{
return
formType
;
}
public
void
setFormType
(
String
formType
)
{
this
.
formType
=
formType
;
}
public
String
getContent
()
{
return
content
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
}
src/main/java/com/senthink/rmi/challenger/vo/UserTypeVo.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
vo
;
import
org.hibernate.validator.constraints.Length
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
java.io.Serializable
;
public
class
UserTypeVo
extends
Entity
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
3642681516157405674L
;
/**
* 用户类型名称
*/
@NotEmpty
(
message
=
"用户类型名称不允许为空"
)
@Length
(
min
=
1
,
max
=
20
,
message
=
"用户类型名称长度必须在1-20之间"
)
private
String
name
;
/**
* 用户类型备注
*/
private
String
remark
;
public
String
getName
()
{
return
this
.
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
}
src/main/java/com/senthink/rmi/challenger/vo/UserUpdatePwdVo.java
0 → 100644
View file @
1bd0b30c
package
com
.
senthink
.
rmi
.
challenger
.
vo
;
import
org.hibernate.validator.constraints.NotEmpty
;
import
java.io.Serializable
;
public
class
UserUpdatePwdVo
implements
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
-
9088978689747269515L
;
@NotEmpty
(
message
=
"登录名不允许为空"
)
private
String
userName
;
@NotEmpty
(
message
=
"原登录密码不允许为空"
)
private
String
beforePassword
;
@NotEmpty
(
message
=
"新登录密码不允许为空"
)
private
String
newPassword
;
public
String
getUserName
()
{
return
userName
;
}
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
public
String
getBeforePassword
()
{
return
beforePassword
;
}
public
void
setBeforePassword
(
String
beforePassword
)
{
this
.
beforePassword
=
beforePassword
;
}
public
String
getNewPassword
()
{
return
newPassword
;
}
public
void
setNewPassword
(
String
newPassword
)
{
this
.
newPassword
=
newPassword
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment