POST api/menu/save

保存菜单

Request Information

URI Parameters

None.

Body Parameters

Menu
NameDescriptionTypeAdditional information
Id

课程分类

integer

None.

MenuType

菜单类型

MenuType

None.

MenuName

分类名称

string

None.

Path

层级路径

string

None.

PId

父级分类

integer

None.

Link

链接地址

string

None.

FontIcon

字体图标

string

None.

Sort

排序

integer

None.

UpdatedTime

最后更新时间

date

None.

CreatedTime

创建时间

date

None.

IsShow

是否隐藏

boolean

None.

IsEnabled

是否启用

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "MenuType": 1,
  "MenuName": "sample string 2",
  "Path": "sample string 3",
  "PId": 4,
  "Link": "sample string 5",
  "FontIcon": "sample string 6",
  "Sort": 7,
  "UpdatedTime": "2024-09-25T00:05:15.8732744+08:00",
  "CreatedTime": "2024-09-25T00:05:15.8732744+08:00",
  "IsShow": true,
  "IsEnabled": true
}

text/html

Sample:
{"Id":1,"MenuType":1,"MenuName":"sample string 2","Path":"sample string 3","PId":4,"Link":"sample string 5","FontIcon":"sample string 6","Sort":7,"UpdatedTime":"2024-09-25T00:05:15.8732744+08:00","CreatedTime":"2024-09-25T00:05:15.8732744+08:00","IsShow":true,"IsEnabled":true}

application/xml, text/xml

Sample:
<Menu xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">
  <CreatedTime>2024-09-25T00:05:15.8732744+08:00</CreatedTime>
  <FontIcon>sample string 6</FontIcon>
  <Id>1</Id>
  <IsEnabled>true</IsEnabled>
  <IsShow>true</IsShow>
  <Link>sample string 5</Link>
  <MenuName>sample string 2</MenuName>
  <MenuType>云课堂</MenuType>
  <PId>4</PId>
  <Path>sample string 3</Path>
  <Sort>7</Sort>
  <UpdatedTime>2024-09-25T00:05:15.8732744+08:00</UpdatedTime>
</Menu>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存菜单

JsonRtnDtoOfMenu
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

Menu

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "Id": 1,
    "MenuType": 1,
    "MenuName": "sample string 2",
    "Path": "sample string 3",
    "PId": 4,
    "Link": "sample string 5",
    "FontIcon": "sample string 6",
    "Sort": 7,
    "UpdatedTime": "2024-09-25T00:05:15.8732744+08:00",
    "CreatedTime": "2024-09-25T00:05:15.8732744+08:00",
    "IsShow": true,
    "IsEnabled": true
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"Id":1,"MenuType":1,"MenuName":"sample string 2","Path":"sample string 3","PId":4,"Link":"sample string 5","FontIcon":"sample string 6","Sort":7,"UpdatedTime":"2024-09-25T00:05:15.8732744+08:00","CreatedTime":"2024-09-25T00:05:15.8732744+08:00","IsShow":true,"IsEnabled":true}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfMenumEDjlcEG 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:05:15.8732744+08:00</d2p1:CreatedTime>
    <d2p1:FontIcon>sample string 6</d2p1:FontIcon>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:IsEnabled>true</d2p1:IsEnabled>
    <d2p1:IsShow>true</d2p1:IsShow>
    <d2p1:Link>sample string 5</d2p1:Link>
    <d2p1:MenuName>sample string 2</d2p1:MenuName>
    <d2p1:MenuType>云课堂</d2p1:MenuType>
    <d2p1:PId>4</d2p1:PId>
    <d2p1:Path>sample string 3</d2p1:Path>
    <d2p1:Sort>7</d2p1:Sort>
    <d2p1:UpdatedTime>2024-09-25T00:05:15.8732744+08:00</d2p1:UpdatedTime>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfMenumEDjlcEG>

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

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Id":1,"MenuType":1,"MenuName":"sample string 2","Path":"sample string 3","PId":4,"Link":"sample string 5","FontIcon":"sample string 6","Sort":7,"UpdatedTime":"2024-09-25T00:05:15.8732744+08:00","CreatedTime":"2024-09-25T00:05:15.8732744+08:00","IsShow":true,"IsEnabled":true}});