update method name
This commit is contained in:
parent
01c2fdf5a2
commit
22bf77019a
@ -76,12 +76,12 @@ func (wh *wrapperHandle) GetScheme(ctx *gin.Context, defaultVal string) string {
|
||||
return defaultVal
|
||||
}
|
||||
|
||||
// GetQuery 获取query参数
|
||||
// ParseQuery 获取query参数
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:03 2024/1/2
|
||||
func (wh *wrapperHandle) GetQuery(ctx *gin.Context) map[string]string {
|
||||
func (wh *wrapperHandle) ParseQuery(ctx *gin.Context) map[string]string {
|
||||
query := make(map[string]string)
|
||||
if nil != ctx && nil != ctx.Request && nil != ctx.Request.URL {
|
||||
for paramName, valueList := range ctx.Request.URL.Query() {
|
||||
@ -133,12 +133,12 @@ func (wh *wrapperHandle) GetDomain(ctx *gin.Context) string {
|
||||
return ctx.Request.Host
|
||||
}
|
||||
|
||||
// GetRequestBody 获取请求body
|
||||
// ParseBody 获取请求body
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 11:25 2024/7/26
|
||||
func (wh *wrapperHandle) GetRequestBody(ctx *gin.Context) map[string]any {
|
||||
func (wh *wrapperHandle) ParseBody(ctx *gin.Context) map[string]any {
|
||||
body := map[string]any{}
|
||||
contentType := wh.GetContentType(ctx, "")
|
||||
if strings.Contains(contentType, consts.MimeTypeXWWWFormUrlencoded) { // form请求
|
||||
|
Loading…
Reference in New Issue
Block a user