POST api/ShareCon/Materialareaapi

素材专区

Request Information

URI Parameters

None.

Body Parameters

位点, 参数1=分类1,参数2=分类2

PageDataParam
NameDescriptionTypeAdditional information
position_index

位点,除第一页之外,其它都需要传递;前端原样返回。注意:从第二页开始,位点必须传递前一页返回的值,否则翻页无效。

string

None.

data1

参数1

string

None.

data2

参数2

string

None.

date1

参数1 线上有地方写错了字段 补救

string

None.

date2

参数2 线上有地方写错了字段 补救

string

None.

Request Formats

application/json, text/json

Sample:
{
  "position_index": "sample string 1",
  "data1": "sample string 2",
  "data2": "sample string 3",
  "date1": "sample string 4",
  "date2": "sample string 5"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

素材专区

ApiResultMaterialareaModel
NameDescriptionTypeAdditional information
position_index

这是位点,换页时候 原样回传就可以

string

None.

category

主分类 首页数据才会有数据

Collection of ResultCategory

None.

category2

子分类 首页数据才会有数据

Collection of ResultCategory

None.

datas

素材内容

Collection of ResultMaterialarea

None.

code

0:正确 100:错误 403:需要重新登录

integer

None.

msg

string

None.

submsg

输出的错误信息

string

None.

isinvitation

登陆时候是否需要弹窗填些邀请码 1:需要

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "position_index": "sample string 1",
  "category": [
    {
      "id": 1,
      "name": "sample string 2"
    },
    {
      "id": 1,
      "name": "sample string 2"
    }
  ],
  "category2": [
    {
      "id": 1,
      "name": "sample string 2"
    },
    {
      "id": 1,
      "name": "sample string 2"
    }
  ],
  "datas": [
    {
      "showtime": "sample string 1",
      "title": "sample string 2",
      "imgs": [
        "sample string 1",
        "sample string 2"
      ],
      "video": "sample string 3",
      "videocover": "sample string 4",
      "shares": 5
    },
    {
      "showtime": "sample string 1",
      "title": "sample string 2",
      "imgs": [
        "sample string 1",
        "sample string 2"
      ],
      "video": "sample string 3",
      "videocover": "sample string 4",
      "shares": 5
    }
  ],
  "code": 2,
  "msg": "sample string 3",
  "submsg": "sample string 4",
  "isinvitation": 5
}