POST api/localTour/advert/list

获取广告列表

Request Information

URI Parameters

None.

Body Parameters

Collection of AdvertRqContract
NameDescriptionTypeAdditional information
itemtype

广告类别

string

None.

count

广告数量

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "itemtype": "sample string 1",
    "count": 2
  },
  {
    "itemtype": "sample string 1",
    "count": 2
  }
]

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

获取广告列表

ReturnResultOfListOfAdvertRpContract
NameDescriptionTypeAdditional information
data

Collection of AdvertRpContract

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "itemtype": "sample string 1",
      "adertlist": [
        {
          "advid": 1,
          "advcontent": "sample string 2"
        },
        {
          "advid": 1,
          "advcontent": "sample string 2"
        }
      ]
    },
    {
      "itemtype": "sample string 1",
      "adertlist": [
        {
          "advid": 1,
          "advcontent": "sample string 2"
        },
        {
          "advid": 1,
          "advcontent": "sample string 2"
        }
      ]
    }
  ],
  "code": 1,
  "message": "sample string 2"
}