POST api/{area}/OECoursePeriods/CommentCreate
提交评论
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| area | string |
None. |
Body Parameters
CommentBindingModels| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
课程Id |
string |
None. |
| Aid |
用户Id |
string |
None. |
| ShopID |
商城Id |
string |
None. |
| Content |
评价内容 |
string |
None. |
| Star |
评价级别 |
string |
None. |
| CommentType |
点评类型 0课程、1活动、2学员故事、3导师语录 |
string |
None. |
| AccountId |
用户Id |
string |
None. |
| ShopId |
商城Id |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "sample string 1",
"Aid": "sample string 2",
"ShopID": "sample string 3",
"Content": "sample string 4",
"Star": "sample string 5",
"CommentType": "sample string 6",
"AccountId": "sample string 7",
"ShopId": 8
}
application/xml, text/xml
Sample:
<CommentBindingModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Areas.OnlineEducation.Models"> <AccountId xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models">sample string 7</AccountId> <Id i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models" /> <ShopId xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models">8</ShopId> <Aid>sample string 2</Aid> <CommentType>sample string 6</CommentType> <Content>sample string 4</Content> <Id>sample string 1</Id> <ShopID>sample string 3</ShopID> <Star>sample string 5</Star> </CommentBindingModels>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseResultModels| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode |
返回Code(-1请求失败,0请求成功,1调用支付) |
integer |
None. |
| errmsg |
返回提示消息 |
string |
None. |
| url |
返回Url |
string |
None. |
| data |
返回数据 |
string |
None. |
| dataObj |
返回数据1 |
Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"url": "sample string 3",
"data": "sample string 4",
"dataObj": {}
}
application/xml, text/xml
Sample:
<BaseResultModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models"> <data>sample string 4</data> <dataObj /> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <url>sample string 3</url> </BaseResultModels>