POST api/subject/save

保存主题

Request Information

URI Parameters

None.

Body Parameters

主题实体

SubjectDto
NameDescriptionTypeAdditional information
Id

主题编号(修改时使用)

integer

None.

PlateId

版块编号

integer

None.

Title

主题题目

string

None.

Content

主题内容

string

None.

Anonymity

是否匿名

boolean

None.

CatalogId

引用课程目录编号

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "PlateId": 2,
  "Title": "sample string 3",
  "Content": "sample string 4",
  "Anonymity": true,
  "CatalogId": 1
}

text/html

Sample:
{"Id":1,"PlateId":2,"Title":"sample string 3","Content":"sample string 4","Anonymity":true,"CatalogId":1}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存主题

JsonRtnDtoOfSubject
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

Subject

None.

Response Formats

application/json, text/json

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

text/html

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

application/xml, text/xml

Sample:
<JsonRtnDtoOfSubjectmEDjlcEG 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>9</d2p1:ApprovalNum>
    <d2p1:CatalogId>1</d2p1:CatalogId>
    <d2p1:Content>sample string 4</d2p1:Content>
    <d2p1:CreatedTime>2024-09-25T00:11:30.9371145+08:00</d2p1:CreatedTime>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:LastReplyTime>2024-09-25T00:11:30.9371145+08:00</d2p1:LastReplyTime>
    <d2p1:LastUpdatedTime>2024-09-25T00:11:30.9371145+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>10</d2p1:NegativeNum>
    <d2p1:PlateId>2</d2p1:PlateId>
    <d2p1:ReplyQuantity>13</d2p1:ReplyQuantity>
    <d2p1:Title>sample string 3</d2p1:Title>
    <d2p1:TotalVotes>11</d2p1:TotalVotes>
    <d2p1:Views>12</d2p1:Views>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfSubjectmEDjlcEG>

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

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