简要描述:
装修列表
每个类型只会返回一条选中的的模板,根据code来进行判断是否选中模板! 如果没有数据返回或者某个类型的没有数据放回,就由表示使用默认模板!
请求域名:
- http://xx.com
请求URL:
plugin.decorate.admin.decorate-templet.get-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
type | 否 | number | 模板类型 会员中心=1 推广中心=2 分类中心=3 商品模版=4 商品列表=5 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": [
{
"id": 7,
"uniacid": 1,
"name": "test",
"image": "1.jpeg",
"code": "M0000002",
"type": "3",
"is_default": 1,
"created_at": "2020-08-10 15:05:41",
"updated_at": "2020-08-10 15:05:41",
"deleted_at": 0
},
{
"id": 6,
"uniacid": 1,
"name": "test",
"image": "1.jpeg",
"code": "M0000003",
"type": "4",
"is_default": 1,
"created_at": "2020-08-10 15:05:26",
"updated_at": "2020-08-10 15:05:26",
"deleted_at": 0
},
{
"id": 2,
"uniacid": 1,
"name": "test",
"image": "1.jpeg",
"code": "M0000001",
"type": "2",
"is_default": 1,
"created_at": "2020-08-10 15:05:01",
"updated_at": "2020-08-10 15:05:01",
"deleted_at": 0
},
{
"id": 1,
"uniacid": 1,
"name": "test",
"image": "1.jpeg",
"code": "M0000001",
"type": "1",
"is_default": 1,
"created_at": "2020-08-10 15:04:26",
"updated_at": "2020-08-10 15:04:26",
"deleted_at": 0
}
]
}
错误时返回:
{
"result": 0,
"msg": "暂无数据",
"data": []
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
name | strint | 模板名称 |
code | string | 模板唯一编号(例:M00001 每个类型的模板的编号都必须唯一) |
image | string | 模板展示图片 |
type | number | 模板类型 会员中心=1 推广中心=2 分类中心=3 商品模版=4 商品列表=5 |
is_default | number | 是否开启 1=是 0=否 |
备注:
- 更多返回错误代码请看首页的错误代码描述