(api API, ctx Context, cErr *contextError, res ValidateResult)
| 1970 | } |
| 1971 | |
| 1972 | func writeErr(api API, ctx Context, cErr *contextError, res ValidateResult) { |
| 1973 | if cErr.Errs != nil { |
| 1974 | WriteErr(api, ctx, cErr.Code, cErr.Msg, cErr.Errs...) |
| 1975 | } else { |
| 1976 | WriteErr(api, ctx, cErr.Code, cErr.Msg, res.Errors...) |
| 1977 | } |
| 1978 | } |
| 1979 | |
| 1980 | func processMultipartMsgBody(form *multipart.Form, op Operation, v reflect.Value, rbt rawBodyType, rawBodyIndex []int, formValueParser func(val reflect.Value)) *contextError { |
| 1981 | f := v.FieldByIndex(rawBodyIndex) |