429 changed files with 11616 additions and 4 deletions
@ -0,0 +1,57 @@ |
|||
# KPI综合管理系统 |
|||
|
|||
|
|||
```Project |
|||
|—— api |
|||
└── version1 |
|||
└── empower |
|||
|—— apirouter |
|||
|—— initialization |
|||
└── database |
|||
└── nosql |
|||
└── app |
|||
└── route |
|||
|identification |
|||
|—— config |
|||
└── configDatabase |
|||
└── configNosql |
|||
└── configAapp |
|||
└── configJson |
|||
|—— models |
|||
|—— overall |
|||
|—— middleware |
|||
``` |
|||
## Hr 文件结构说明 |
|||
|
|||
| 文件夹 | 说明 | 描述| |
|||
|--------- |------ |-----| |
|||
| `api` | api相关业务 | api业务实现 | |
|||
| `--version1` | 业务版本文件夹 | 版本界定 | |
|||
| `--empower` |OAuth 2.0 授权 |授权Token| |
|||
| `apirouter` | 路由器 | 业务路由设定 | |
|||
| `initialization` | 初始化相关业务 | 系统初始化方面的实现 | |
|||
| `--database` | 数据库业务 | 数据库业务初始化实现 | |
|||
| `--nosql` | nosql数据库业务 | nosql业务初始化实现(例:Redis) | |
|||
| `--app` | app数据库业务 | app业务初始化实现 | |
|||
| `--route` | 路由初始化 | 路由初始化 | |
|||
| `identification` | 授权验证器 | 授权验证器 | |
|||
| `config` | 系统配置相关业务 | 系统系统配置方面的实现 | |
|||
| `--configDatabase` | 数据库业务 | 数据库业务系统配置实现 | |
|||
| `--configNosql` | nosql数据库业务 | nosql业务系统配置实现(例:Redis) | |
|||
| `--configAapp` | app系统业务 | app业务系统配置实现 | |
|||
| `--configJson` | app JSON业务 | app业务系统配置实现 | |
|||
| `models` | 数据模型 | 数据库方面的配置 | |
|||
| `overall` | 全局对象 | 全局对象| |
|||
| `middleware` | 中间件 | 中间件 | |
|||
|
|||
|
|||
## 加密规则 |
|||
``` |
|||
1、分解步骤 |
|||
one = md5(CodeString)+md5(AppKey) |
|||
two = md5(one)+AppKey |
|||
therr = md5(two) |
|||
2、合并 |
|||
md5(md5(md5(CodeString)+md5(AppKey))+AppKey) |
|||
``` |
|||
|
|||
@ -0,0 +1,2 @@ |
|||
package mytest |
|||
|
|||
@ -0,0 +1,5 @@ |
|||
package mytest |
|||
|
|||
type ApiEntry struct{ |
|||
|
|||
} |
|||
@ -0,0 +1,5 @@ |
|||
package mytest |
|||
|
|||
type ApiEntry struct{ |
|||
Test |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytest. |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytest.TestApi |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
type ApiEntry struct { |
|||
Test my |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytest.TestApi |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
type ApiEntry struct { |
|||
Test my |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
type ApiEntry struct { |
|||
Test |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
type ApiEntry struct { |
|||
Test |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
type ApiEntry struct { |
|||
Test tes |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute. |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.mytestroute |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute. |
|||
} |
|||
@ -0,0 +1,5 @@ |
|||
package mytest |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,6 @@ |
|||
package mytest |
|||
|
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import "api." |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import "" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import "key_performance_indicators/api/" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import "key_performance_indicators/api/My" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import "key_performance_indicators/api/myt" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import "key_performance_indicators/api/myTest/" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import "key_performance_indicators/api/myTest/mytestroute" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import "key_performance_indicators/api/myTest/mytestroute" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import "key_performance_indicators/api/myTest/mytestroute" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import "key_performance_indicators/api/myTest/mytestroute" |
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
Test mytestroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
|
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
|
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
MapToStructApi maptostruct.ApiMethod |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
|
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
|
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
my |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
mytest |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package mytest |
|||
|
|||
import mytest "key_performance_indicators/apirouter/myTest" |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
mytest. |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
|
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
my |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
|
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
t |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
test |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
testr |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package mytest |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
testroute. |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package mytest |
|||
|
|||
import testroute "key_performance_indicators/api/myTest/testRoute" |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
testroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package mytest |
|||
|
|||
import testroute "key_performance_indicators/api/myTest/testRoute" |
|||
|
|||
// import "key_performance_indicators/api/myTest/mytestroute"
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
testroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
package mytest |
|||
|
|||
import testroute "key_performance_indicators/api/myTest/testRoute" |
|||
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
testroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
package mytest |
|||
|
|||
import testroute "key_performance_indicators/api/myTest/testRoute" |
|||
|
|||
|
|||
type ApiEntry struct { |
|||
// Test mytestroute.ApiMethod
|
|||
Test testroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import testroute "key_performance_indicators/api/myTest/testRoute" |
|||
|
|||
type ApiEntry struct { |
|||
Test testroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package mytest |
|||
|
|||
import testroute "key_performance_indicators/api/myTest/testRoute" |
|||
|
|||
type ApiEntry struct { |
|||
Test testroute.ApiMethod |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package mytest |
|||
|
|||
import testroute "key_performance_indicators/api/myTest/testRoute" |
|||
|
|||
type ApiEntry struct { |
|||
Test testroute.ApiMethod |
|||
} |
|||
|
|||
|
|||
var |
|||
@ -0,0 +1,10 @@ |
|||
package mytest |
|||
|
|||
import testroute "key_performance_indicators/api/myTest/testRoute" |
|||
|
|||
type ApiEntry struct { |
|||
Test testroute.ApiMethod |
|||
} |
|||
|
|||
|
|||
var app |
|||
@ -0,0 +1,10 @@ |
|||
package mytest |
|||
|
|||
import testroute "key_performance_indicators/api/myTest/testRoute" |
|||
|
|||
type ApiEntry struct { |
|||
Test testroute.ApiMethod |
|||
} |
|||
|
|||
|
|||
var AppApiEntry = new() |
|||
@ -0,0 +1,9 @@ |
|||
package mytest |
|||
|
|||
import testroute "key_performance_indicators/api/myTest/testRoute" |
|||
|
|||
type ApiEntry struct { |
|||
Test testroute.ApiMethod |
|||
} |
|||
|
|||
var AppApiEntry = new(ApiEntry) |
|||
@ -0,0 +1 @@ |
|||
pa |
|||
@ -0,0 +1 @@ |
|||
package mytset |
|||
@ -0,0 +1 @@ |
|||
package mytest |
|||
@ -0,0 +1,2 @@ |
|||
package mytest |
|||
|
|||
@ -0,0 +1,2 @@ |
|||
package mytestr |
|||
|
|||
@ -0,0 +1,2 @@ |
|||
package mytestroute |
|||
|
|||
@ -0,0 +1 @@ |
|||
package |
|||
@ -0,0 +1 @@ |
|||
pa |
|||
@ -0,0 +1 @@ |
|||
package |
|||
@ -0,0 +1 @@ |
|||
package |
|||
@ -0,0 +1 @@ |
|||
p |
|||
@ -0,0 +1,2 @@ |
|||
package testroute |
|||
|
|||
@ -0,0 +1 @@ |
|||
package testroute |
|||
@ -0,0 +1 @@ |
|||
package testroute |
|||
@ -0,0 +1,3 @@ |
|||
package testroute |
|||
|
|||
func |
|||
@ -0,0 +1,3 @@ |
|||
package testroute |
|||
|
|||
func () |
|||
@ -0,0 +1,3 @@ |
|||
package testroute |
|||
|
|||
func (ApiMethod) |
|||
@ -0,0 +1,3 @@ |
|||
package testroute |
|||
|
|||
func (ApiMethod) |
|||
@ -0,0 +1,3 @@ |
|||
package testroute |
|||
|
|||
func (a*ApiMethod) |
|||
@ -0,0 +1,3 @@ |
|||
package testroute |
|||
|
|||
func (a *ApiMethod) |
|||
@ -0,0 +1,3 @@ |
|||
package testroute |
|||
|
|||
func (a *ApiMethod)MyTest() |
|||
@ -0,0 +1,3 @@ |
|||
package testroute |
|||
|
|||
func (a *ApiMethod)MyTest(c) |
|||
@ -0,0 +1,3 @@ |
|||
package testroute |
|||
|
|||
func (a *ApiMethod)MyTest(ctx ) |
|||
@ -0,0 +1,5 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) |
|||
@ -0,0 +1,7 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
|
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
|
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
ctx.get |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
ctx.Qu |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
ctx.Query() |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
ctx.Query("name") |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
name := ctx.Query("name") |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
name := ctx.Query("name") |
|||
age := ctx.Query("age") |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
name := ctx.Query("name") |
|||
age := ctx.Query("age") |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
name := ctx.Query("name") |
|||
age := ctx.Query("age") |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
name := ctx.Query("name") |
|||
age := ctx.Query("age") |
|||
|
|||
var |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
name := ctx.Query("name") |
|||
age := ctx.Query("age") |
|||
|
|||
var p1 = Person |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
name := ctx.Query("name") |
|||
age := ctx.Query("age") |
|||
|
|||
var p1 = Person{} |
|||
} |
|||
@ -0,0 +1,12 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
name := ctx.Query("name") |
|||
age := ctx.Query("age") |
|||
|
|||
var p1 = Person{ |
|||
Name: name, |
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
name := ctx.Query("name") |
|||
age := ctx.Query("age") |
|||
|
|||
var p1 = Person{ |
|||
Name: name, |
|||
Age |
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
name := ctx.Query("name") |
|||
age := ctx.Query("age") |
|||
|
|||
var p1 = Person{ |
|||
Name: name, |
|||
Age: age, |
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
package testroute |
|||
|
|||
import "github.com/gin-gonic/gin" |
|||
|
|||
func (a *ApiMethod) MyTest(ctx *gin.Context) { |
|||
name := ctx.Query("name") |
|||
age := ctx.Query("age") |
|||
|
|||
var p1 = Person{ |
|||
Name: name, |
|||
Age: age, |
|||
} |
|||
} |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue