From e8f5a9f4706aa954fae150b525e60230b70b6cd4 Mon Sep 17 00:00:00 2001 From: shuzheng <469741414@qq.com> Date: Sat, 18 Feb 2017 21:44:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0zheng-upms-common=E5=AD=90?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=85=AC=E5=85=B1=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 +++--- zheng-upms/pom.xml | 1 + zheng-upms/zheng-upms-common/pom.xml | 56 +++++++++++++++++++ .../upms/common/constant/UpmsConstant.java | 13 +++++ .../upms/common/constant/UpmsResult.java | 19 +++++++ .../common/constant/UpmsResultConstant.java | 37 ++++++++++++ zheng-upms/zheng-upms-dao/pom.xml | 5 ++ 7 files changed, 141 insertions(+), 7 deletions(-) create mode 100644 zheng-upms/zheng-upms-common/pom.xml create mode 100644 zheng-upms/zheng-upms-common/src/main/java/com/zheng/upms/common/constant/UpmsConstant.java create mode 100644 zheng-upms/zheng-upms-common/src/main/java/com/zheng/upms/common/constant/UpmsResult.java create mode 100644 zheng-upms/zheng-upms-common/src/main/java/com/zheng/upms/common/constant/UpmsResultConstant.java diff --git a/README.md b/README.md index e7984276..ec34bb77 100644 --- a/README.md +++ b/README.md @@ -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: 项目构建管理 diff --git a/zheng-upms/pom.xml b/zheng-upms/pom.xml index 0cd2cc8e..a1bac004 100644 --- a/zheng-upms/pom.xml +++ b/zheng-upms/pom.xml @@ -19,6 +19,7 @@ + zheng-upms-common zheng-upms-dao zheng-upms-rpc-api zheng-upms-rpc-service diff --git a/zheng-upms/zheng-upms-common/pom.xml b/zheng-upms/zheng-upms-common/pom.xml new file mode 100644 index 00000000..89d88f58 --- /dev/null +++ b/zheng-upms/zheng-upms-common/pom.xml @@ -0,0 +1,56 @@ + + 4.0.0 + + + com.zheng + zheng-common + 1.0.0 + + + zheng-upms-common + jar + + zheng-upms-common + http://www.zhangshuzheng.cn + + + UTF-8 + + + + + com.zheng + zheng-common + 1.0.0 + jar + + + + + zheng-upms-common + + + src/main/java + + **/*.xml + + true + + + src/main/resources + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.18.1 + + true + true + + + + + diff --git a/zheng-upms/zheng-upms-common/src/main/java/com/zheng/upms/common/constant/UpmsConstant.java b/zheng-upms/zheng-upms-common/src/main/java/com/zheng/upms/common/constant/UpmsConstant.java new file mode 100644 index 00000000..3be7c253 --- /dev/null +++ b/zheng-upms/zheng-upms-common/src/main/java/com/zheng/upms/common/constant/UpmsConstant.java @@ -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 { + + + +} diff --git a/zheng-upms/zheng-upms-common/src/main/java/com/zheng/upms/common/constant/UpmsResult.java b/zheng-upms/zheng-upms-common/src/main/java/com/zheng/upms/common/constant/UpmsResult.java new file mode 100644 index 00000000..6bfd1945 --- /dev/null +++ b/zheng-upms/zheng-upms-common/src/main/java/com/zheng/upms/common/constant/UpmsResult.java @@ -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); + } + +} diff --git a/zheng-upms/zheng-upms-common/src/main/java/com/zheng/upms/common/constant/UpmsResultConstant.java b/zheng-upms/zheng-upms-common/src/main/java/com/zheng/upms/common/constant/UpmsResultConstant.java new file mode 100644 index 00000000..7a9c1fab --- /dev/null +++ b/zheng-upms/zheng-upms-common/src/main/java/com/zheng/upms/common/constant/UpmsResultConstant.java @@ -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; + } + +} diff --git a/zheng-upms/zheng-upms-dao/pom.xml b/zheng-upms/zheng-upms-dao/pom.xml index d4a9ef96..531bda78 100644 --- a/zheng-upms/zheng-upms-dao/pom.xml +++ b/zheng-upms/zheng-upms-dao/pom.xml @@ -25,6 +25,11 @@ 1.0.0 jar + + com.zheng + zheng-upms-common + 1.0.0 +