POST api/structure/save

保存组织架构

Request Information

URI Parameters

None.

Body Parameters

组织架构实体

Structure
NameDescriptionTypeAdditional information
ID

课程分类

integer

None.

StructureName

分类名称

string

None.

Path

层级路径

string

None.

PID

父级分类

integer

None.

Sort

排序

integer

None.

UpdatedTime

最后更新时间

date

None.

CreatedTime

创建时间

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "StructureName": "sample string 2",
  "Path": "sample string 3",
  "PID": 4,
  "Sort": 5,
  "UpdatedTime": "2024-09-25T00:09:46.6248849+08:00",
  "CreatedTime": "2024-09-25T00:09:46.6248849+08:00"
}

text/html

Sample:
{"ID":1,"StructureName":"sample string 2","Path":"sample string 3","PID":4,"Sort":5,"UpdatedTime":"2024-09-25T00:09:46.6248849+08:00","CreatedTime":"2024-09-25T00:09:46.6248849+08:00"}

application/xml, text/xml

Sample:
<Structure xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">
  <CreatedTime>2024-09-25T00:09:46.6248849+08:00</CreatedTime>
  <ID>1</ID>
  <PID>4</PID>
  <Path>sample string 3</Path>
  <Sort>5</Sort>
  <StructureName>sample string 2</StructureName>
  <UpdatedTime>2024-09-25T00:09:46.6248849+08:00</UpdatedTime>
</Structure>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存组织架构

JsonRtnDtoOfStructure
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

Structure

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "ID": 1,
    "StructureName": "sample string 2",
    "Path": "sample string 3",
    "PID": 4,
    "Sort": 5,
    "UpdatedTime": "2024-09-25T00:09:46.6406124+08:00",
    "CreatedTime": "2024-09-25T00:09:46.6406124+08:00"
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"ID":1,"StructureName":"sample string 2","Path":"sample string 3","PID":4,"Sort":5,"UpdatedTime":"2024-09-25T00:09:46.6406124+08:00","CreatedTime":"2024-09-25T00:09:46.6406124+08:00"}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfStructuremEDjlcEG 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:CreatedTime>2024-09-25T00:09:46.6406124+08:00</d2p1:CreatedTime>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:PID>4</d2p1:PID>
    <d2p1:Path>sample string 3</d2p1:Path>
    <d2p1:Sort>5</d2p1:Sort>
    <d2p1:StructureName>sample string 2</d2p1:StructureName>
    <d2p1:UpdatedTime>2024-09-25T00:09:46.6406124+08:00</d2p1:UpdatedTime>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfStructuremEDjlcEG>

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

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"ID":1,"StructureName":"sample string 2","Path":"sample string 3","PID":4,"Sort":5,"UpdatedTime":"2024-09-25T00:09:46.6406124+08:00","CreatedTime":"2024-09-25T00:09:46.6406124+08:00"}});