API Call Address
{域名地址}/api/archive/filters
Description:{域名地址}
Need to replace it with your domain address, such ashttps://en.anqicms.com/api/archive/filters
Calling method
GET
Request parameters
Field name |
Type |
Required |
Description |
moduleId |
int |
Yes |
Model ID |
Return parameters
Field name |
Type |
Description |
code |
int |
error code |
msg |
string |
error reason description |
data |
object[] |
result content |
data result parameters
Field name |
Type |
Description |
name |
string |
Filter Name |
field_name |
string |
Filter Field Name |
Items |
object[] |
Filter Parameters List |
Filter parameters list item
Field name |
Type |
Description |
Label |
string |
Parameter options |
Total |
int |
Quantity |
request data example
Parameter |
Value |
moduleId |
1 |
Return Data Example
{
"code": 0,
"data": [
{
"name": "城市",
"field_name": "city",
"items": [
{
"label": "全部",
"total": 0
},
{
"label": "北京",
"total": 0
},
{
"label": "上海",
"total": 0
},
{
"label": "重庆",
"total": 0
},
{
"label": "广州",
"total": 0
},
{
"label": "天津",
"total": 0
}
]
},
{
"name": "学历",
"field_name": "certificate",
"items": [
{
"label": "全部",
"total": 0
},
{
"label": "硕士",
"total": 0
},
{
"label": "本科",
"total": 0
},
{
"label": "大专",
"total": 0
},
{
"label": "高中",
"total": 0
},
{
"label": "初中",
"total": 0
}
]
}
],
"msg": ""
}
Error Code
error code |
Description |
0 |
OK |
-1 |
Error, the reason is indicated in the msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API request OK |