Paul 6 years ago
parent
commit
3823e763e4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      request/request.go

+ 1
- 1
request/request.go View File

12
 	Check() error
12
 	Check() error
13
 }
13
 }
14
 
14
 
15
-func ParseSuccess(ctx *gin.Context, r interface{}, fs ...func() error) bool {
15
+func ParseParamSuccess(ctx *gin.Context, r interface{}, fs ...func() error) bool {
16
 	if r != nil {
16
 	if r != nil {
17
 		if Fail(ctx, http.StatusBadRequest, ctx.ShouldBind(r)) {
17
 		if Fail(ctx, http.StatusBadRequest, ctx.ShouldBind(r)) {
18
 			return false
18
 			return false