POST api/Course/Index

获取课程列表 ExamType参数为api/Course/GetCourseType接口获取的类型值

Request Information

URI Parameters

None.

Body Parameters

Course_Search_Api_Dto
NameDescriptionTypeAdditional information
ExamType

考试类型 0表示免费,默认是国考1000

Enum_ExamTypeData

None.

PageSize

每页显示记录条数(默认是20)

integer

None.

PageIndex

页码,默认是1

integer

None.

OrganizationId

前端不用传

integer

None.

StudentId

前端不用传

integer

None.

UserToken

当前登录用户的UserToken,由服务端在用户登录成功之后生成,并在整个访问过程中回传

string

None.

DomainName

来访域名(用户访问该站点时输入的域名)

string

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ExamType": 1000,
  "PageSize": 1,
  "PageIndex": 2,
  "OrganizationId": 3,
  "StudentId": 4,
  "UserToken": "sample string 5",
  "DomainName": "sample string 6",
  "Id": 7
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APIResponseModelOfTOfCourseInfoDto
NameDescriptionTypeAdditional information
Count

integer

None.

PageCount

integer

None.

Data

Collection of CourseInfoDto

None.

State

integer

None.

Msg

返回的错误或描述信息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Count": 1,
  "PageCount": 2,
  "Data": [
    {
      "Price": 1.0,
      "PreferentialPrice": 2.0,
      "BuyCount": 3,
      "IsPurchased": true,
      "ImgUrl": "http://image.baishengwc.comsample string 5",
      "ChapterCount": 6,
      "Name": "sample string 7",
      "Id": 8
    },
    {
      "Price": 1.0,
      "PreferentialPrice": 2.0,
      "BuyCount": 3,
      "IsPurchased": true,
      "ImgUrl": "http://image.baishengwc.comsample string 5",
      "ChapterCount": 6,
      "Name": "sample string 7",
      "Id": 8
    }
  ],
  "State": 3,
  "Msg": "sample string 4"
}