@@ -88,7 +88,7 @@ func GetCrafts(c *gin.Context, apictx *ApiSession) (interface{}, error) {
}
if _norm, ok := query["norm"]; ok {
delete(query, "norm")
- query["name"] = bson.M{"$regex": _norm.(string)}
+ query["norm"] = bson.M{"$regex": _norm.(string)}
option := &repo.PageSearchOptions{
@@ -88,7 +88,7 @@ func GetMaterials(c *gin.Context, apictx *ApiSession) (interface{}, error) {
@@ -36,7 +36,7 @@ func Product(r *GinRouter) {
return query