标签栏目.md 3.94 KB

1、app.grass.labelRealtedArticleDetail(获取标签相关的文章列表详情)

请求参数

| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |

|:-------| -----:|-----:|-----:|-----:|----:|

| uid | Integer | 是 | 380463 | 0 | 用户uid |

| udid | String | 是 | 380463 | 0 | udid |

| labelId | Integer | 否 | 380463 | 0 | labelId|

| page | Integer | 否 | 1 | 1 | 页码 |

| limit | Integer | 否 | 1 | 1 | limit |

| lastedTime| String| 否 | 1 | 1 | 首次查询不需要,如果接口返回有lastedTime,则下一次分页请求的时候把数据带着|

响应

code为200即为成功,否则是失败。 (备注--返回字段与栏目文章详情列表接口(app.grass.channelArticleDetail) 保持一致) 
{
  "alg": "SALT_MD5",
  "code": 200,
  "data":{
     "detailList": [
      {
        "articleId": 82,
        "articleProductType": 2,
        "articleType": 1,
        "authorHeadIco": "http://head.static.yhbimg.com/yhb-head/2018/10/19/14/01c349dfd4e467b7ca208e355eeb921122.jpg?imageView2/{mode}/w/{width}/h/{height}",
        "authorName": "羡慕丶",
        "authorType": 1,
        "authorUid": 500031572,
        "blockList": [
          {
            "articleId": 82,
            "contentData": "http://img11.static.yhbimg.com/yhb-img01/2016/12/16/18/01c84b87d28efe5e733367aa8aa91c02a6.jpg?imageView2/{mode}/w/{width}/h/{height}",
            "createTime": 1548671254,
            "height": "276",
            "orderBy": 0,
            "templateKey": "image",
            "width": "640"
          },
          {
            "articleId": 82,
            "contentData": "http://img10.static.yhbimg.com/yhb-img01/2015/05/20/20/017f40fe5be35c9e1412cd8e2164c87e83.jpg?imageView2/{mode}/w/{width}/h/{height}",
            "createTime": 1548671255,
            "height": "750",
            "orderBy": 1,
            "templateKey": "image",
            "width": "750"
          },
          {
            "articleId": 82,
            "contentData": "文本文",
            "createTime": 1548671255,
            "orderBy": 2,
            "templateKey": "text"
          }
        ],
        "commentCount": 0,
        "comments": [],
        "favoriteCount": 0,
        "hasAttention": "N",
        "hasFavor": "N",
        "hasPraise": "N",
        "praiseCount": 0,
        "productList": [
          {
            "id": 84,
            "orderBy": 0,
            "productSkn": 10001061,
            "productType": 2
          }
        ],
        "publishTime": 1548671254,
        "publishTimeStr": "2019-01-28 18:27:34",
        "topicId": 33,
        "topicName": "123"
      }
     ],
    "pageSize": 5,
    "pageNo":1
    "totalCount": 5,
    "lastedTime":"12345678990" //下次进行分页查询的时候 把这个数据带着,
    "totalPage": 1
  },
  "md5": "ab23ca1c16260cb2de642071b0966f8b",
  "message": "操作成功"
}

2、app.grass.getGrassLabelList(发布选择标签列表)

请求参数: int page; int limit; int lastedTime;--初次获取列表不需要传,列表接口返回字段中包含 lastedTime,下次分页请求时传递该参数

响应:code为200即为成功,否则是失败。

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "topicList": [{
            "id": "标签id",
            "labelName": "标签名称"
        }, {
            "id": "标签id",
            "labelName": "标签名称"
        }],
        "pageSize": 5,
        "pageNo": 1,
        "totalCount": 5,
        "totalPage": 1,
        "lastedTime":12345556
    },
    "md5": "ab23ca1c16260cb2de642071b0966f8b",
    "message": "操作成功"
}

3、app.grass.getLabelRecentUsed(内容发布---最近使用标签列表)

请求参数

int uid;

响应

code为200即为成功,否则是失败。

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "list":    [{
            "id": "标签id",
            "labelName": "标签名称"
        }, {
            "id": "标签id",
            "labelName": "标签名称"
        }]

    },
    "md5": "ab23ca1c16260cb2de642071b0966f8b",
    "message": "操作成功"
}