forked from golang/hotime
接口层复用
This commit is contained in:
parent
98619083a1
commit
d7a59845eb
@ -732,6 +732,11 @@ func setMakeCodeLintener(name string, appIns *Application) {
|
|||||||
context.Req.Method != "POST" {
|
context.Req.Method != "POST" {
|
||||||
return isFinished
|
return isFinished
|
||||||
}
|
}
|
||||||
|
//排除已有接口的无效操作
|
||||||
|
if len(context.RouterString) == 3 && context.Router[context.RouterString[0]] != nil && context.Router[context.RouterString[0]][context.RouterString[1]] != nil && context.Router[context.RouterString[0]][context.RouterString[1]][context.RouterString[2]] != nil {
|
||||||
|
return isFinished
|
||||||
|
}
|
||||||
|
|
||||||
//列表检索
|
//列表检索
|
||||||
if len(context.RouterString) == 2 &&
|
if len(context.RouterString) == 2 &&
|
||||||
context.Req.Method == "GET" {
|
context.Req.Method == "GET" {
|
||||||
|
Loading…
Reference in New Issue
Block a user