示例#1
0
func DecodeUrlQuery(data []byte, value interface{}) error {
	result, err := decodeQueryInner(string(data))
	if err != nil {
		return err
	}
	return language.MapToArray(result, value, "url")
}
示例#2
0
func (this *contextImplement) GetParamToStruct(requireStruct interface{}) {
	//导出到struct
	err := language.MapToArray(this.inputData, requireStruct, "url")
	if err != nil {
		language.Throw(1, err.Error())
	}
}