访问路径:api/template/class

接口说明:获取模板分类

URL结构

https://open.rabbitpre.com/api/template/class

接口协议:HTTPS

HTTP请求方式:GET

请求参数

参数
必选
类型
说明
companyId
false
string
第三方平台的企业id,如果没有则不必传,有则传,其他接口必须保持一致
uid
true
string
第三方平台的用户id
type
true
string
模板类型 1:翻页,2:长页,6:企业专区,13:玩法

请求示例

换行和缩进只是为了更好的展示:

https://open.rabbitpre.com/api/template/class?type=1

返回参数

参数类型说明
parentNamestring分类名称
fieldNamestring分类字段
tagsstring

【分类子类型值,分类子类名称】

返回示例


{
    "code""200",
    "errorCode""SUCCESS",
    "msg""ok",
    "data": [
        {
            "parentName""用途",
            "fieldName""tplscene",
            "tags": [
                [
                    "ALL",
                    "全部"
                ],
                [
                    "COMP",
                    "企业宣传"
                ]
            ]
        },
        {
            "parentName""行业",
            "fieldName""tpltheme",
            "tags": [
                [
                    "ALL",
                    "全部"
                ],
                [
                    "LAND",
                    "地产/家具"
                ]
            ]
        },
        {
            "parentName""热点",
            "fieldName""tpl_type_hot",
            "tags": [
                [
                    "ALL",
                    "全部"
                ],
                [
                    "NEW_YEARS",
                    "元旦"
                ]
            ]
        },
        {
            "parentName""个人",
            "fieldName""tpl_type_personal11",
            "tags": [
                [
                    "ALL",
                    "全部"
                ],
                [
                    "BIRTHDAY",
                    "生日"
                ]
            ]
        },
        {
            "parentName""其他",
            "tags": [
                {
                    "fieldName""tpl_style",
                    "name""风格",
                    "tags": [
                        [
                            "ALL",
                            "全部"
                        ],
                        [
                            "Czq4YOQEWU",
                            "简约"
                        ]
                    ]
                },
                {
                    "fieldName""tpl_color",
                    "name""色调",
                    "tags": [
                        [
                            "ALL",
                            null,
                            "全部"
                        ],
                        [
                            "white",
                            "ffffff",
                            "白色"
                        ]
                    ]
                },
                {
                    "fieldName""original_price",
                    "name""价格",
                    "tags": [
                        [
                            "ALL",
                            "全部"
                        ],
                        [
                            "0-0",
                            "免费"
                        ],
                        [
                            "0-",
                            "付费"
                        ],
                        [
                            "0-9",
                            "0-9"
                        ],
                        [
                            "10-19",
                            "10-19"
                        ],
                        [
                            "20-29",
                            "20-29"
                        ],
                        [
                            "30-39",
                            "30-39"
                        ],
                        [
                            "40-60",
                            "40-60"
                        ]
                    ]
                },
                {
                    "fieldName""discount_ratio",
                    "name""折扣",
                    "tags": [
                        [
                            "ALL",
                            "全部"
                        ],
                        [
                            "0.8-0.85",
                            "人气八折"
                        ],
                        [
                            "0.9-0.9",
                            "优选九折"
                        ]
                    ]
                },
                {
                    "fieldName""depreciation",
                    "name""立减",
                    "tags": [
                        [
                            "ALL",
                            "全部"
                        ],
                        [
                            "5-1000",
                            "爆款直降"
                        ]
                    ]
                }
            ]
        }
    ]
}



  • 无标签