1、新增平台专区-查询所有标签【系统及自定义】接口

【旧项目】接口路径:https://open.rabbitpre.com/api/template/platform/getAllTags

【新项目】接口路径:https://integrate.rabbitpre.com/api/open/api/template/platform/getAllTags

请求方式:GET

入参:

参数必选类型说明
opfidtruestring
第三方平台的用户id

返回参说明:

参数类型说明
customTagslist
表示自定义标签:
"customTags":
[{
//自定义分组id
  "groupId": 11,
//自定义分组名称
  "groupName": "用途类",
//分组隐藏标记,0不隐藏,1隐藏
    "hideFlag": 0,
//自定义标签列表
    "tags": [{
//创建时间
        "createTime": "2022-04-19T02:37:59.420Z",
//标签名称
      "name": "拉新促活",
//标签id
      "tagId": 1,
//标签类型 1、系统标签 2、自定义标签
"type": 1
    }]
}]
systemTagslist
表示系统标签

"systemTags": [{
//二级分类列表
    "children": [{
//三级分类列表
        "children": [{
//三级分类创建时间
            "createTime": "2022-04-19T02:37:59.420Z",
//三级分类key          
"fieldKey": "meet",
           //三级分类隐藏标记,0不隐藏,1隐藏
"hideFlag": 0,
//三级分类id
            "id": 1,
//三级分类列表
            "name": "会议邀请"
        }],
//二级分类时间
        "createTime": "2022-04-19T02:37:59.420Z",
//二级分类key
        "fieldKey": "tplScen",
      //二级分类隐藏标记,0不隐藏,1隐藏
      "hideFlag": 0,
      //二级分类id
      "id": 1, 
        //二级分类的名称
        "name": "用途"
  }],
    //一级分类的id
  "firstId": "1",
    //一级分类的名称
    "name": "展示页"
}]

返回参数格式:

```json
{
  "code": "string",
  "data": {
    "customTags": [
      {
        "groupId": 0,
        "groupName": "string",
        "hideFlag": 0,
        "tags": [
          {
            "createTime": "2022-04-19T02:37:59.420Z",
            "name": "string",
            "tagId": 0,
            "type": 0
          }
        ]
      }
    ],
    "systemTags": [
      {
        "children": [
          {
            "children": [
              {}
            ],
            "createTime": "2022-04-19T02:37:59.420Z",
            "fieldKey": "string",
            "hideFlag": 0,
            "id": 0,
            "name": "string"
          }
        ],
        "firstId": "string",
        "name": "string"
      }
    ]
  },
  "errorCode": "string",
  "msg": "string"
}
```

2、新增平台专区-查询平台模板列表接口

【旧项目】接口路径:https://open.rabbitpre.com/api/template/platform/list

【新项目】接口路径:https://integrate.rabbitpre.com/api/open/api/template/platform/list

请求方式:POST

入参填写要求:入参的customTagIds、systemTags、firstId是要根据/api/template/platform/getAllTags接口的返回参来进行填写的。

customTagIds,填写的根据getAllTags接口返回参数中customTags下的tagId,要查询那个自定义标签,只需要把tagId填写至customTagIds下即可

firstId,填写的根据getAllTags接口返回参数中systemTags下的firstId,firstId可以不填写,如果填写只能填写一个。表示的是你选择的哪个1级分类

systemTags,填写是getAllTags接口返回参数中systemTags下面的children下的每个元素的fieldkey进行填写。例如:我想查询用途下的会议邀请的模板,

这个时候组装的数据为

{

      //用途的key
      "secondFieldKey": "tplScen",

      //会议邀请的key
      "thirdFieldKey": "meet"
}


入参:

参数必选类型说明
userIdtruestring
用户id
opfidtruestring平台id
orgIdfalsestring企业id
mostHotfalsebooleantrue综合排序、false最新排序
pageNofalseinteger页码
pageSizefalseinteger页大小
hidePayTemplatefalseboolean是否隐藏付费模板
firstIdfalseinteger系统标签1级分类的id
customTagIdsfalselist自定义标签id列表
systemTagsfalselist

系统标签列表:

{

      //二级分类的key
      "secondFieldKey": "string",

      //三级分类的key
      "thirdFieldKey": "string"
}


入参格式

```json
{
  "customTagIds": [
    0
  ],
  "firstId": 0,
  "hidePayTemplate": false,
  "opfid": "string",
  "orgId": "string",
  "pageNo": 0,
  "pageSize": 0,
  "systemTags": [
    {
      "secondFieldKey": "string",
      "thirdFieldKey": "string"
    }
  ],
  "userId": "string"
}
```

返回参数:

参数类型说明
idstring模板id
titlestring模板标题
descstring模板描述
tplImgUrlstring模板封面图片url(tplCoversFilepath不为空用tplCoversFilepath)
tplExtstring扩展字段(height:模板高度)
tplViewcount
integer模板浏览次数
tplAmount
integer模板使用量
tplCoversFilepath
string模板封面图片url(值为空时用tplimg)
tplSpecies
integer模板类型 1:活动页,2:展示页,3:还阿波
previewUrl
string预览url
tplStatestring状态:已上架、已下架
labellist

标签列表:

[
   {     //创建时间
         "createTime": "2022-04-19T05:57:30.930Z",
         //标签名称
        "name": "string",
         //标签id
        "tagId": 0,
         //标签类型 1、系统标签 2、自定义标签
        "type": 0
}
]

返回参数具体格式

```json
{
  "code": "string",
  "data": {
    "data": [
      {
        "appId": "string",
        "appSortRecommend": 0,
        "appVersion": 0,
        "buyDetail": "string",
        "buyFlag": 0,
        "collectionTpl": true,
        "conversionRate": 0,
        "createTime": "yyyy-MM-dd HH:mm:ss",
        "defaultTemplate": 0,
        "desc": "string",
        "duration": 0,
        "elementsImage": 0,
        "elementsText": 0,
        "elementsVideo": 0,
        "filterItems": {},
        "hotSort": 0,
        "id": "string",
        "image": "string",
        "labels": [
          {
            "createTime": "2022-04-19T05:57:30.930Z",
            //标签名称
            "name": "string",
            //标签id
            "tagId": 0,
            //标签类型 1、系统标签 2、自定义标签
            "type": 0
          }
        ],
        "materialFlag": 0,
        "minimumPrice": 0,
        "pluginClassifyId": 0,
        "pluginId": 0,
        "pluginPlayWayKey": "string",
        "previewUrl": "string",
        "remark": "string",
        "sort": "string",
        "title": "string",
        "tplAmount": 0,
        "tplBillState": "string",
        "tplCoversFilepath": "string",
        "tplDiscountRatio": 0,
        "tplExported": "string",
        "tplExt": "string",
        "tplFavorablePrice": 0,
        "tplFreeLimit": 0,
        "tplImg": "string",
        "tplImgUrl": "string",
        "tplInited": "string",
        "tplMobileClass": "string",
        "tplMobileSort": 0,
        "tplOrganize": "string",
        "tplOrganizeDiscount": 0,
        "tplOrganizePrice": 0,
        "tplParms": "string",
        "tplPrice": 0,
        "tplShelf": "string",
        "tplSortEseelandingpage": "string",
        "tplSortRecommend": "string",
        "tplSortSpavideo": "string",
        "tplSpecialSort": 0,
        "tplSpecies": "string",
        "tplState": "string",
        "tplTags": "string",
        "tplType": "string",
        "tplVideo": "string",
        "tplViewCount": 0,
        "tplZip": 0,
        "updateTime": "yyyy-MM-dd HH:mm:ss",
        "userId": "string",
        "video": "string",
        "videoHeight": 0,
        "videoWidth": 0,
        "videourl": "string",
        "vipSpecial": "string"
      }
    ],
    "longTotalRecords": 0,
    "pageNo": 0,
    "pageSize": 0,
    "scrollId": "string",
    "totalRecords": 0
  },
  "errorCode": "string",
  "msg": "string"
}
```