Documentation ¶
Overview ¶
Package parse_body ...
Description : parse_body ...
Author : go_developer@163.com<白茶清欢>
Date : 2024-10-22 16:51
Package parse_body ...
Description : parse_body ...
Author : go_developer@163.com<白茶清欢>
Date : 2024-10-22 16:43
Package parse_body ...
Description : parse_body ...
Author : go_developer@163.com<白茶清欢>
Date : 2024-10-22 16:43
Package parse_body ...
Description : parse_body ...
Author : go_developer@163.com<白茶清欢>
Date : 2024-10-22 16:42
Package parse_body ...
Description : parse_body ...
Author : go_developer@163.com<白茶清欢>
Date : 2024-10-22 16:42
Package parse_body ...
Description : parse_body ...
Author : go_developer@163.com<白茶清欢>
Date : 2024-10-22 16:43
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteForMap ¶
ExecuteForMap 高层级包装,表单解析为map
func Register ¶
func Register(adaptor abstract.RequestBodyParseAdaptor)
Register 注册适配器实例
Author : go_developer@163.com<白茶清欢>
Date : 16:45 2024/10/22
Types ¶
type FormUrlEncode ¶
type FormUrlEncode struct {
// contains filtered or unexported fields
}
func (FormUrlEncode) ContentType ¶
func (f FormUrlEncode) ContentType() string
func (FormUrlEncode) DoParse ¶
func (b FormUrlEncode) DoParse(ctx *gin.Context, receiver any, unmarshalFunc func(sourceData []byte, receiver any) error) ([]byte, error)
DoParse 解析
Author : go_developer@163.com<白茶清欢>
Date : 17:08 2024/10/22
type JsonAdaptor ¶
type JsonAdaptor struct {
// contains filtered or unexported fields
}
func (JsonAdaptor) ContentType ¶
func (j JsonAdaptor) ContentType() string
ContentType 请求类型固定返回json
Author : go_developer@163.com<白茶清欢>
Date : 16:59 2024/10/22
func (JsonAdaptor) DoParse ¶
func (b JsonAdaptor) DoParse(ctx *gin.Context, receiver any, unmarshalFunc func(sourceData []byte, receiver any) error) ([]byte, error)
DoParse 解析
Author : go_developer@163.com<白茶清欢>
Date : 17:08 2024/10/22
type XmlAdaptor ¶
type XmlAdaptor struct {
// contains filtered or unexported fields
}
func (XmlAdaptor) ContentType ¶
func (x XmlAdaptor) ContentType() string