增加zheng-upms-common子系统公共模块

This commit is contained in:
shuzheng 2017-02-18 21:44:42 +08:00
parent e665e53353
commit e8f5a9f470
7 changed files with 141 additions and 7 deletions

View File

@ -20,6 +20,7 @@ zheng
├── zheng-common -- SSM框架公共模块
├── zheng-ui -- 后台管理系统UI模板基于bootstrap实现的响应式Material Design风格的通用后台管理系统模板
├── zheng-upms -- 用户权限管理系统(网关)
| ├── zheng-upms-common -- upms系统公共模块
| ├── zheng-upms-dao -- MyBatisGenerator代码生成模块无需开发
| ├── zheng-upms-client -- 集成upms依赖包提供单点认证、授权、会话管理
| ├── zheng-upms-rpc-api -- rpc接口包
@ -67,25 +68,27 @@ zheng
#### 后端技术:
- Spring Framework
- SpringMVC: MVC框架
- Spring secutity|Shiro: 安全框架
- Spring secutity|Apache Shiro: 安全框架
- Spring session: 分布式Session管理
- MyBatis: ORM框架
- MyBatis Generator: 代码生成
- Druid: 数据库连接池
- FluentValidator 校验框架 [https://github.com/neoremind/fluent-validator](https://github.com/neoremind/fluent-validator "FluentValidator")
- Jsp|Velocity|Thymeleaf: 模板引擎
- ZooKeeper: 协调服务
- ZooKeeper: 分布式协调服务
- Dubbo: 分布式服务框架
- TBSchedule|elastic-job: 分布式调度框架
- Redis: 分布式缓存数据库
- Quartz: 作业调度框架
- Ehcache: 缓存框架
- ActiveMQ: 消息队列
- Solr|Elasticsearch: 分布式全文搜索引擎
- Quartz: 作业调度框架
- Ehcache: 进程内缓存框架
- ActiveMQ: 消息队列
- JStorm: 实时流式计算框架
- FastDFS: 分布式文件系统
- Log4J: 日志管理
- Swagger2: 接口文档
- Swagger2: 接口测试框架
- sequence: 分布式高效ID生产 [http://git.oschina.net/yu120/sequence](http://git.oschina.net/yu120/sequence "sequence")
- AliOSS|Qiniu: 云存储
- AliOSS|Qiniu|QcloudCOS: 云存储
- Protobuf|json: 数据传输
- Jenkins: 持续集成工具
- Maven|Gradle: 项目构建管理

View File

@ -19,6 +19,7 @@
</properties>
<modules>
<module>zheng-upms-common</module>
<module>zheng-upms-dao</module>
<module>zheng-upms-rpc-api</module>
<module>zheng-upms-rpc-service</module>

View File

@ -0,0 +1,56 @@
<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>
<parent>
<groupId>com.zheng</groupId>
<artifactId>zheng-common</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>zheng-upms-common</artifactId>
<packaging>jar</packaging>
<name>zheng-upms-common</name>
<url>http://www.zhangshuzheng.cn</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.zheng</groupId>
<artifactId>zheng-common</artifactId>
<version>1.0.0</version>
<type>jar</type>
</dependency>
</dependencies>
<build>
<finalName>zheng-upms-common</finalName>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<skipTests>true</skipTests>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,13 @@
package com.zheng.upms.common.constant;
import com.zheng.common.base.BaseConstants;
/**
* upms系统常量类
* Created by shuzheng on 2017/2/18.
*/
public class UpmsConstant extends BaseConstants {
}

View File

@ -0,0 +1,19 @@
package com.zheng.upms.common.constant;
import com.zheng.common.base.BaseResult;
/**
* upms系统常量枚举类
* Created by shuzheng on 2017/2/18.
*/
public class UpmsResult extends BaseResult {
public UpmsResult(int code, String message, Object data) {
super(code, message, data);
}
public UpmsResult(UpmsResultConstant upmsResultConstant, Object data) {
super(upmsResultConstant.getCode(), upmsResultConstant.getMessage(), data);
}
}

View File

@ -0,0 +1,37 @@
package com.zheng.upms.common.constant;
/**
* upms系统接口结果常量枚举类
* Created by shuzheng on 2017/2/18.
*/
public enum UpmsResultConstant {
SUCCESS(1, "success"),
INVALID_LENGTH(10001, "success");
public int code;
public String message;
UpmsResultConstant(int code, String message) {
this.code = code;
this.message = message;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}

View File

@ -25,6 +25,11 @@
<version>1.0.0</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.zheng</groupId>
<artifactId>zheng-upms-common</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<build>