筛选规则

## filters 筛选字段说明 |字段|用途|类型|说明|备注| |-|-|-|-|-| |[orderBy](#nav_1)|排序|字符串|-|-| |[quality](#nav_2)|筛选|数组|成新度|多选| |[days](#nav_3)|筛选|字符串|起租天数|单选| |[services](#nav_4)|筛选|对象|折扣服务|多选| |[rentRange](#nav_5)|筛选|对象|租金价格|区间| |[depositRange](#nav_6)|筛选|对象|押金|区间| ## orderBy 排序【字符串】【单选】 |取值|说明| |-|-| |空或不传|默认排序| |priceAsc|价格升序| |priceDesc|价格降序| |salesAsc|销量升序| |salesDesc|销量降序| #### 示例 ```json { "orderBy": "priceAsc" } ``` ## quality 商品成新度【数组】【多选】 >w **请传数组形式!请传数组形式!请传数组形式!** > 取值参考[商品成新度](doc:wUVeTctY) #### 示例 ```json { "quality": [ 0,2,3,6 ] } ``` ## days 租期【字符串】【单选】 |取值|说明| |-|-| |<=3|3天内| |7|7天| |30|30天| |90|90天| |180|180天| |365|365天| #### 示例 ```json { "days": "<=3" } ``` ## services 折扣服务【对象】【多选】 |字段|说明| |-|-| |certified|官方质检| |safe|安心租| |freeSend|寄出包邮| |freeReturn|包邮| |canBuy|可买断| |sfSend|顺丰发货| #### 示例 ```json { "services": { "certified": 1, "freeSend": 1, "freeReturn": 1, "sfSend": 1 } } ``` ## rentRange 租金区间【对象】【区间】 #### 示例 ```json { "rentRange": { "min": 300, //租金最小值 "max": 600 //租金最大值 } } ``` ## depositRange 押金区间【对象】【区间】 #### 示例 ```json { "depositRange": { "min": 300, //押金最小值 "max": 600 //押金最大值 } } ``` ## 完整 filters 示例 ```json { "order": "priceDesc", "quality": [0,3,6], "days": "<=3", "services": { "certified": 1, "freeSend": 1, "freeReturn": 1, "sfSend": 1 }, "rentRange": { "min": 300, "max": 600 }, "depositRange": { "min": 300, "max": 600 } } ```