一波更新

This commit is contained in:
tangping
2025-01-23 16:12:49 +08:00
parent 22ac6c1fed
commit 5f3a40a50e
90 changed files with 2392 additions and 1791 deletions

View File

@@ -3,11 +3,11 @@ package httpServer
import (
"encoding/json"
"fmt"
"goutil/logUtilPlus"
"goutil/typeUtil"
"goutil/zlibUtil"
"io/ioutil"
"net/http"
"goutil/logUtilPlus"
"goutil/typeUtil"
"goutil/zlibUtil"
)
// ApiContext
@@ -184,6 +184,7 @@ func NewApiContext(_request *http.Request, _responseWriter http.ResponseWriter,
// 读取数据
_, errMsg := context.readContent(isZlib)
if errMsg != nil {
return nil, errMsg
}

View File

@@ -1,10 +1,10 @@
package httpServer
import (
"common/webServer"
"net/http"
"common/resultStatus"
"common/webServer"
)
// 处理函数
@@ -59,7 +59,7 @@ func (this *ApiHandler) FuncParamNames() []string {
// @receiver this: this
// @r:
// return:
// @resultStatus.ResultStatus: 状态码数据
// @resultstatus.ResultStatus: 状态码数据
func (this *ApiHandler) CheckParam(r *http.Request) resultStatus.ResultStatus {
for _, name := range this.funcParamNames {
if r.Form[name] == nil || len(r.Form[name]) == 0 {

View File

@@ -7,6 +7,7 @@ import (
"goutil/logUtil"
"goutil/logUtilPlus"
// "log"
"net/http/pprof"