| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| type | string | 否 | 应用类型:plugin(插件) / template(模板集合) / all(全部) |
| template_type | string | 否 | 当 type=template 时可细分:template / user_template / bottom_nav_template / blog_template / admin_template / all |
| category_id | int | 否 | 分类ID |
| keyword | string | 否 | 搜索关键词 |
| page | int | 否 | 页码,默认1 |
| limit | int | 否 | 每页数量,默认20,最大50 |
| domain | string | 否 | 当前域名(用于获取用户等级和价格) |
| license_key | string | 否 | 授权码(优先于domain) |
{
"code": 200,
"msg": "success",
"data": {
"list": [
{
"id": 1,
"name": "示例插件",
"slug": "example_plugin",
"type": "plugin",
"category_id": 1,
"category_name": "功能增强",
"description": "这是一个示例插件",
"author": "DCSHOP",
"cover": "https://xxx/cover.jpg",
"price": 100,
"price_vip": 80,
"price_svip": 50,
"price_supreme": 0,
"allow_buyout": 1,
"user_price_monthly": 20,
"has_monthly": 1,
"trial_days": 7,
"can_trial": 1,
"user_price": 80,
"user_level": 1,
"version": "1.0.0",
"sales": 100,
"is_buy": "n",
"buy_type": "",
"expire_time": null,
"is_expired": 0
}
],
"count": 50,
"page": 1,
"limit": 20
}
}
| 字段 | 说明 |
|---|---|
| user_price | 当前用户的实际价格(根据授权等级计算) |
| user_price_monthly | 当前用户月付价格,0 表示该等级不支持或未配置 |
| user_level | 用户授权等级:0=未授权, 1=VIP, 2=SVIP, 3=至尊 |
| is_buy | 是否已购买:y=已购买/免费, n=未购买 |
| buy_type | 购买类型:permanent=买断,monthly=月付,trial=试用 |
| expire_time | 月付/试用到期时间 |
| can_trial | 是否可试用:1=可试用,0=不可试用 |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| type | string | 否 | 应用类型:plugin / template / all |
| template_type | string | 否 | 模板细分类型,默认 all |
{
"code": 200,
"msg": "success",
"data": [
{"id": 1, "name": "功能增强", "slug": "feature", "type": "plugin", "sort": 100},
{"id": 2, "name": "支付接口", "slug": "payment", "type": "plugin", "sort": 90},
{"id": 3, "name": "界面美化", "slug": "theme", "type": "template", "sort": 80}
]
}