mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 12:56:28 +08:00
readme
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -23,3 +23,4 @@
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
/build/
|
||||
|
||||
|
@@ -37,10 +37,11 @@ SOP封装了开放平台大部分功能包括:签名验证、统一异常处
|
||||
- 支持Spring Cloud Gateway
|
||||
- 关闭签名校验功能
|
||||
- 整合[easyopen](https://gitee.com/durcframework/easyopen)
|
||||
- 配置中心
|
||||
|
||||
## 后期规划
|
||||
|
||||
- 配置中心,Spring Cloud Config(Zookeeper)
|
||||
- Spring Cloud Config(Zookeeper)
|
||||
- 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:接口调用测试用例
|
||||
|
2
pom.xml
2
pom.xml
@@ -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
7
sop-admin/readme.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# 后台admin
|
||||
|
||||
主要功能:
|
||||
|
||||
- 配置管理
|
||||
- 服务管理
|
||||
- 路由管理
|
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
var ApiUtil = (function () {
|
||||
// 接口URL,更改此处即可
|
||||
var url = 'http://localhost:8082/api';
|
||||
var url = SopConfig.url;
|
||||
var URI_CHAR = '/';
|
||||
var params = {};
|
||||
|
||||
|
@@ -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'
|
||||
|
10
sop-admin/sop-admin-front/config/config.js
Normal file
10
sop-admin/sop-admin-front/config/config.js
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* 配置
|
||||
* @type {{url: string}}
|
||||
*/
|
||||
var SopConfig = {
|
||||
/**
|
||||
* 后端接口url
|
||||
*/
|
||||
url: 'http://localhost:8082/api'
|
||||
}
|
@@ -1,5 +1,8 @@
|
||||
# sop-common
|
||||
|
||||
- sop-gateway-common:提供给网关使用
|
||||
- sop-service-common:提供给微服务端使用,需要打成jar
|
||||
|
||||
- 打包成jar:`mvn clean package`
|
||||
- 上传到本机仓库:`mvn clean install`
|
||||
- 上传到maven私服:`mvn clean deploy`
|
@@ -1,3 +1,3 @@
|
||||
# 测试
|
||||
# 测试接口调用
|
||||
|
||||
查看测试用例
|
||||
查看测试用例
|
||||
|
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user