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