导入过滤规则
上传 Excel,解析内容列后批量写入过滤规则。
| 请求方式 | POST |
|---|---|
| 接口路径 | /api/filterSet/importExcel |
| Content-Type | form-data |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
|---|---|---|---|
ruleType | 对象 | 是 | URL 参数 |
shopType | 对象 | 是 | URL 参数 |
file | file | 是 | 表单文件 |
curl 调用
curl -s 'https://www.8shu8.com/api/filterSet/importExcel?ruleType=xxx&shopType=xxx' \ -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \ -F 'file=@example.jpg'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": "string"
}