GET api/OECoursePeriods/GetCommentList?aid={aid}&cID={cID}&pIndex={pIndex}&pageSize={pageSize}
查询评论
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| aid |
用户ID |
string |
Required |
| cID |
课程ID |
string |
Required |
| pIndex |
第几页 |
integer |
Default value is 1 |
| pageSize |
每页条数 |
integer |
Default value is 12 |
Body Parameters
None.
Response Information
Resource Description
CourseInfoDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| CommentInfoList |
课程详情评论 |
Collection of CourseCommentInfo |
None. |
| PeriodList |
课程详情课时 |
Collection of PeriodInfo |
None. |
| Cpid |
课时Id |
string |
None. |
| PeriodName |
课时名称 |
string |
None. |
| Author |
作者名称 |
string |
None. |
| Poster |
资源封面 |
string |
None. |
| PeriodPath |
资源路径 |
string |
None. |
| IsHasFree |
是否试听 |
boolean |
None. |
| FreeTime |
免费试听时间(秒) |
integer |
None. |
| TotalPageCount |
页数 |
integer |
None. |
| isCourseComment |
是否允许评论 |
boolean |
None. |
| IsHasPlay |
是否购买 |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"CommentInfoList": [
{
"Id": "sample string 1",
"NickName": "sample string 2",
"AccountImage": "sample string 3",
"Content": "sample string 4",
"Like": true,
"Useful": 6,
"Replys": "sample string 7",
"ReplyCount": 8,
"StarNum": "sample string 9",
"CreateTime": "sample string 10"
},
{
"Id": "sample string 1",
"NickName": "sample string 2",
"AccountImage": "sample string 3",
"Content": "sample string 4",
"Like": true,
"Useful": 6,
"Replys": "sample string 7",
"ReplyCount": 8,
"StarNum": "sample string 9",
"CreateTime": "sample string 10"
}
],
"PeriodList": [
{
"Cpid": "sample string 1",
"PeriodName": "sample string 2",
"Author": "sample string 3",
"Poster": "sample string 4",
"periodPath": "sample string 5",
"Introduction": "sample string 6",
"IsNow": true,
"IsHasFree": true,
"FreeTime": 9
},
{
"Cpid": "sample string 1",
"PeriodName": "sample string 2",
"Author": "sample string 3",
"Poster": "sample string 4",
"periodPath": "sample string 5",
"Introduction": "sample string 6",
"IsNow": true,
"IsHasFree": true,
"FreeTime": 9
}
],
"Cpid": "sample string 1",
"PeriodName": "sample string 2",
"Author": "sample string 3",
"Poster": "sample string 4",
"PeriodPath": "sample string 5",
"IsHasFree": true,
"FreeTime": 7,
"TotalPageCount": 8,
"isCourseComment": true,
"IsHasPlay": true
}
application/xml, text/xml
Sample:
<CourseInfoDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Areas.OnlineEducation.Models">
<Author>sample string 3</Author>
<CommentInfoList>
<CourseCommentInfo>
<AccountImage>sample string 3</AccountImage>
<Content>sample string 4</Content>
<CreateTime>sample string 10</CreateTime>
<Id>sample string 1</Id>
<Like>true</Like>
<NickName>sample string 2</NickName>
<ReplyCount>8</ReplyCount>
<Replys>sample string 7</Replys>
<StarNum>sample string 9</StarNum>
<Useful>6</Useful>
</CourseCommentInfo>
<CourseCommentInfo>
<AccountImage>sample string 3</AccountImage>
<Content>sample string 4</Content>
<CreateTime>sample string 10</CreateTime>
<Id>sample string 1</Id>
<Like>true</Like>
<NickName>sample string 2</NickName>
<ReplyCount>8</ReplyCount>
<Replys>sample string 7</Replys>
<StarNum>sample string 9</StarNum>
<Useful>6</Useful>
</CourseCommentInfo>
</CommentInfoList>
<Cpid>sample string 1</Cpid>
<FreeTime>7</FreeTime>
<IsHasFree>true</IsHasFree>
<IsHasPlay>true</IsHasPlay>
<PeriodList>
<PeriodInfo>
<Author>sample string 3</Author>
<Cpid>sample string 1</Cpid>
<FreeTime>9</FreeTime>
<Introduction>sample string 6</Introduction>
<IsHasFree>true</IsHasFree>
<IsNow>true</IsNow>
<PeriodName>sample string 2</PeriodName>
<Poster>sample string 4</Poster>
<periodPath>sample string 5</periodPath>
</PeriodInfo>
<PeriodInfo>
<Author>sample string 3</Author>
<Cpid>sample string 1</Cpid>
<FreeTime>9</FreeTime>
<Introduction>sample string 6</Introduction>
<IsHasFree>true</IsHasFree>
<IsNow>true</IsNow>
<PeriodName>sample string 2</PeriodName>
<Poster>sample string 4</Poster>
<periodPath>sample string 5</periodPath>
</PeriodInfo>
</PeriodList>
<PeriodName>sample string 2</PeriodName>
<PeriodPath>sample string 5</PeriodPath>
<Poster>sample string 4</Poster>
<TotalPageCount>8</TotalPageCount>
<isCourseComment>true</isCourseComment>
</CourseInfoDetail>