POST api/packagetour/search/{lang}?moduleId={moduleId}

搜索旅行团

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

string

Required

moduleId

string

Default value is

Body Parameters

PackageTourSearchRQContract
NameDescriptionTypeAdditional information
keywords

关键字

string

None.

countryids

国家ID

Collection of string

None.

cityids

城市ID

Collection of string

None.

departuredate

出发开始日期

date

None.

departureenddate

出发结束日期

date

None.

attrids

属性

Collection of string

None.

fromday

开始天数

integer

None.

endday

结束天数

integer

None.

pageindex

当前页码

integer

None.

pagesize

每页数量

integer

None.

skip

跳过数量

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "keywords": "sample string 1",
  "countryids": [
    "sample string 1",
    "sample string 2"
  ],
  "cityids": [
    "sample string 1",
    "sample string 2"
  ],
  "departuredate": "2024-12-23T19:36:42.2102483+08:00",
  "departureenddate": "2024-12-23T19:36:42.2102483+08:00",
  "attrids": [
    "sample string 1",
    "sample string 2"
  ],
  "fromday": 1,
  "endday": 1,
  "pageindex": 2,
  "pagesize": 3,
  "skip": 4
}

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 'PackageTourSearchRQContract'.

Response Information

Resource Description

搜索旅行团

ReturnResultOfPagerListOfPackageTourItemContract
NameDescriptionTypeAdditional information
data

PagerListOfPackageTourItemContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "total_count": 1,
    "page": 2,
    "page_size": 3,
    "data_list": [
      {
        "tourId": "sample string 1",
        "tourCode": "sample string 2",
        "tourTitle": "sample string 3",
        "tourSubTitle": "sample string 4",
        "coverPic": "sample string 5",
        "price": 6.0,
        "departurestartdate": "2024-12-23T19:36:42.2259007+08:00",
        "departureenddate": "2024-12-23T19:36:42.2259007+08:00",
        "urlcategory": "sample string 9",
        "airlines": [
          {
            "airelinecode": "sample string 1",
            "airline": "sample string 2"
          },
          {
            "airelinecode": "sample string 1",
            "airline": "sample string 2"
          }
        ],
        "tags": [
          {
            "tag": "sample string 1",
            "orderby": 2,
            "position": 3,
            "imgUrl": "sample string 4"
          },
          {
            "tag": "sample string 1",
            "orderby": 2,
            "position": 3,
            "imgUrl": "sample string 4"
          }
        ],
        "cityid": "sample string 10"
      },
      {
        "tourId": "sample string 1",
        "tourCode": "sample string 2",
        "tourTitle": "sample string 3",
        "tourSubTitle": "sample string 4",
        "coverPic": "sample string 5",
        "price": 6.0,
        "departurestartdate": "2024-12-23T19:36:42.2259007+08:00",
        "departureenddate": "2024-12-23T19:36:42.2259007+08:00",
        "urlcategory": "sample string 9",
        "airlines": [
          {
            "airelinecode": "sample string 1",
            "airline": "sample string 2"
          },
          {
            "airelinecode": "sample string 1",
            "airline": "sample string 2"
          }
        ],
        "tags": [
          {
            "tag": "sample string 1",
            "orderby": 2,
            "position": 3,
            "imgUrl": "sample string 4"
          },
          {
            "tag": "sample string 1",
            "orderby": 2,
            "position": 3,
            "imgUrl": "sample string 4"
          }
        ],
        "cityid": "sample string 10"
      }
    ],
    "page_count": 1,
    "skip": 4
  },
  "code": 1,
  "message": "sample string 2"
}