POST api/Comment/CreateComment
会员中心 发布评论
Request Information
URI Parameters
None.
Body Parameters
CreateCommentDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
主键 |
integer |
None. |
ThirdId |
评论关联业务Id |
integer |
None. |
ParentId |
被回复的评论的id,如果为0,表示一级评论 |
integer |
None. |
Content |
回复内容 |
string |
None. |
ThirdTitle |
评论标题,用于关键字查询 |
string |
None. |
UserId |
评论用户id 无需传,后端获取 |
integer |
None. |
NeedUserId |
是否需要用户标识 |
boolean |
None. |
UserContactName |
针对不需要登录的场景,提交人姓名 |
string |
None. |
UserContact |
针对不需要登录的场景,提交人联系方式 |
string |
None. |
UserGender |
针对不需要登录的场景,提交人性别 |
SexType |
None. |
Ip |
Ip地址 无需传,后端获取 |
string |
None. |
IsAdminComment |
预留 是否后台评论回复 无需传,后端获取 |
boolean |
None. |
IsSpecial |
特殊带评分 评论 无需传,后端获取 |
boolean |
None. |
Secene | NewsStyleidType |
None. |
Request Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml, text/xml
Sample:
<CreateCommentDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.Comment"> <Secene xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.CallBack">GShop</Secene> <Content>sample string 4</Content> <Id>1</Id> <Ip>sample string 10</Ip> <IsAdminComment>true</IsAdminComment> <IsSpecial>true</IsSpecial> <NeedUserId>true</NeedUserId> <ParentId>3</ParentId> <ThirdId>2</ThirdId> <ThirdTitle>sample string 5</ThirdTitle> <UserContact>sample string 9</UserContact> <UserContactName>sample string 8</UserContactName> <UserGender>Male</UserGender> <UserId>6</UserId> </CreateCommentDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
会员中心 发布评论
ObjectNone.
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />