|
|
@ -5,8 +5,6 @@ import ( |
|
|
|
"net/http" |
|
|
|
"strings" |
|
|
|
"time" |
|
|
|
|
|
|
|
"github.com/micro/go-micro/logger" |
|
|
|
) |
|
|
|
|
|
|
|
func NewQueryNode(c *QueryContext, path, key string, queryMap map[string]interface{}) *QueryNode { |
|
|
@ -119,7 +117,6 @@ func (n *QueryNode) parseOne() { |
|
|
|
func (n *QueryNode) parseKVs(kvs map[string]interface{}) { |
|
|
|
root := n.ctx |
|
|
|
for field, value := range kvs { |
|
|
|
logger.Debugf("%s -> parse %s %v", n.Key, field, value) |
|
|
|
if value == nil { |
|
|
|
root.err = fmt.Errorf("field value error, %s is nil", field) |
|
|
|
root.code = http.StatusBadRequest |
|
|
|