This commit is contained in:
tanghc
2019-03-23 14:15:36 +08:00
parent e361d4df98
commit 7631457923
10 changed files with 31 additions and 8 deletions

1
.gitignore vendored
View File

@@ -23,3 +23,4 @@
/nbdist/
/.nb-gradle/
/build/

View File

@@ -37,10 +37,11 @@ SOP封装了开放平台大部分功能包括签名验证、统一异常处
- 支持Spring Cloud Gateway
- 关闭签名校验功能
- 整合[easyopen](https://gitee.com/durcframework/easyopen)
- 配置中心
## 后期规划
- 配置中心,Spring Cloud ConfigZookeeper
- Spring Cloud ConfigZookeeper
- Admin管理平台统一管理微服务配置管理路由信息微服务上下线API文档管理等功能
## 工程说明
@@ -49,8 +50,7 @@ SOP封装了开放平台大部分功能包括签名验证、统一异常处
- sop-registry注册中心eureka实现
- sop-gateway网关统一访问入口Spring Cloud Zuul实现可切换成Spring Cloud Gateway
- sop-gateway-common网关公共模块,封装常用功能,包含签名校验、错误处理等功能
- sop-service-common微服务端公共模块封装配套功能
- sop-common公共模块封装常用功能包含签名校验、错误处理等功能
- sop-story微服务示例story服务同时作为Provider提供服务
- sop-book微服务示例book服务也是Consumer调用story提供的服务
- sop-test接口调用测试用例

View File

@@ -8,6 +8,8 @@
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<description>一个开放平台解决方案项目基于Spring Cloud实现目标是能够让用户快速得搭建起自己的开放平台</description>
<modules>
<module>sop-common</module>
<module>sop-admin</module>

7
sop-admin/readme.md Normal file
View File

@@ -0,0 +1,7 @@
# 后台admin
主要功能:
- 配置管理
- 服务管理
- 路由管理

View File

@@ -3,7 +3,7 @@
*/
var ApiUtil = (function () {
// 接口URL,更改此处即可
var url = 'http://localhost:8082/api';
var url = SopConfig.url;
var URI_CHAR = '/';
var params = {};

View File

@@ -10,7 +10,8 @@
var lib = (function () {
// 始终需要加载的js
var alwaysLoadJs = [
'../../assets/lib/jquery/3.2.1/jquery.min.js'
'../../config/config.js'
,'../../assets/lib/jquery/3.2.1/jquery.min.js'
,'../../assets/lib/layui/layui.js'
,'../../assets/lib/easyopen/sdk.js'
,'../../assets/lib/layuiext/Form.js'

View File

@@ -0,0 +1,10 @@
/**
* 配置
* @type {{url: string}}
*/
var SopConfig = {
/**
* 后端接口url
*/
url: 'http://localhost:8082/api'
}

View File

@@ -1,5 +1,8 @@
# sop-common
- sop-gateway-common提供给网关使用
- sop-service-common提供给微服务端使用需要打成jar
- 打包成jar`mvn clean package`
- 上传到本机仓库:`mvn clean install`
- 上传到maven私服`mvn clean deploy`

View File

@@ -1,3 +1,3 @@
# 测试
# 测试接口调用
查看测试用例

View File

@@ -58,7 +58,6 @@ biz_content String 是 请求参数的集合,最大长度不限,除公共
Map<String, String> bizContent = new HashMap<>();
bizContent.put("id", "1");
bizContent.put("name", "葫芦娃");
// bizContent.put("name", "葫芦娃1234567890葫芦娃1234567890"); // 超出长度
params.put("biz_content", JSON.toJSONString(bizContent));