POST api/subject/reply

回复主题或评论回复

Request Information

URI Parameters

None.

Body Parameters

回复实体

ReplyDto
NameDescriptionTypeAdditional information
SubjectId

主题编号

integer

None.

ReplyId

回复目标(如果为空则回复主题,不为空则回复 当前回复编号的“回复”)

integer

None.

PlateId

版块编号

integer

None.

Content

回复内容

string

None.

Anonymity

是否匿名

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "SubjectId": 1,
  "ReplyId": 1,
  "PlateId": 2,
  "Content": "sample string 3",
  "Anonymity": true
}

text/html

Sample:
{"SubjectId":1,"ReplyId":1,"PlateId":2,"Content":"sample string 3","Anonymity":true}

application/xml, text/xml

Sample:
<ReplyDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Anonymity>true</Anonymity>
  <Content>sample string 3</Content>
  <PlateId>2</PlateId>
  <ReplyId>1</ReplyId>
  <SubjectId>1</SubjectId>
</ReplyDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

回复主题或评论回复

JsonRtnDtoOfReply
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

Reply

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "Id": 1,
    "SubjectId": 2,
    "ReplyId": 1,
    "PlateId": 3,
    "Content": "sample string 4",
    "MemberId": "sample string 5",
    "MemberName": "sample string 6",
    "MemberType": 7,
    "Anonymity": true,
    "LastUpdatedTime": "2024-09-25T00:09:37.9238954+08:00",
    "CreatedTime": "2024-09-25T00:09:37.9238954+08:00",
    "ApprovalNum": 10,
    "NegativeNum": 11,
    "TotalVotes": 12,
    "CommentQuantity": 13
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"Id":1,"SubjectId":2,"ReplyId":1,"PlateId":3,"Content":"sample string 4","MemberId":"sample string 5","MemberName":"sample string 6","MemberType":7,"Anonymity":true,"LastUpdatedTime":"2024-09-25T00:09:37.9238954+08:00","CreatedTime":"2024-09-25T00:09:37.9238954+08:00","ApprovalNum":10,"NegativeNum":11,"TotalVotes":12,"CommentQuantity":13}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfReplymEDjlcEG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data">
    <d2p1:Anonymity>true</d2p1:Anonymity>
    <d2p1:ApprovalNum>10</d2p1:ApprovalNum>
    <d2p1:CommentQuantity>13</d2p1:CommentQuantity>
    <d2p1:Content>sample string 4</d2p1:Content>
    <d2p1:CreatedTime>2024-09-25T00:09:37.9238954+08:00</d2p1:CreatedTime>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:LastUpdatedTime>2024-09-25T00:09:37.9238954+08:00</d2p1:LastUpdatedTime>
    <d2p1:MemberId>sample string 5</d2p1:MemberId>
    <d2p1:MemberName>sample string 6</d2p1:MemberName>
    <d2p1:MemberType>7</d2p1:MemberType>
    <d2p1:NegativeNum>11</d2p1:NegativeNum>
    <d2p1:PlateId>3</d2p1:PlateId>
    <d2p1:ReplyId>1</d2p1:ReplyId>
    <d2p1:SubjectId>2</d2p1:SubjectId>
    <d2p1:TotalVotes>12</d2p1:TotalVotes>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfReplymEDjlcEG>

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Id":1,"SubjectId":2,"ReplyId":1,"PlateId":3,"Content":"sample string 4","MemberId":"sample string 5","MemberName":"sample string 6","MemberType":7,"Anonymity":true,"LastUpdatedTime":"2024-09-25T00:09:37.9238954+08:00","CreatedTime":"2024-09-25T00:09:37.9238954+08:00","ApprovalNum":10,"NegativeNum":11,"TotalVotes":12,"CommentQuantity":13}});