POST api/SysMenu/AddSysMenuSubmit

添加一条菜单信息

Request Information

URI Parameters

None.

Body Parameters

SysMenuDTO
NameDescriptionTypeAdditional information
Id

ID

integer

None.

ParentMenuID

菜单父ID

integer

None.

SitesID

站点编号

integer

None.

MenuLevel

菜单级别

integer

None.

MenuCode

菜单代码

string

String length: inclusive between 0 and 200

MenuName

菜单名称

string

String length: inclusive between 0 and 500

MenuUrl

菜单地址

string

String length: inclusive between 0 and 500

OpenType

打开方式

integer

None.

IconClass

菜单样式

string

String length: inclusive between 0 and 100

MenuOrder

菜单排序

integer

None.

Descriptions

菜单描述

string

String length: inclusive between 0 and 200

IsObsoleted

是否逻辑删除

boolean

None.

CreateBy

创建人ID

integer

None.

CreateOn

创建时间

date

None.

SysCode

系统编号

string

String length: inclusive between 0 and 20

MenuAlias

菜单别名

string

String length: inclusive between 0 and 200

Brower

菜单浏览器

string

String length: inclusive between 0 and 50

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ParentMenuID": 1,
  "SitesID": 1,
  "MenuLevel": 1,
  "MenuCode": "sample string 2",
  "MenuName": "sample string 3",
  "MenuUrl": "sample string 4",
  "OpenType": 1,
  "IconClass": "sample string 5",
  "MenuOrder": 6,
  "Descriptions": "sample string 7",
  "IsObsoleted": true,
  "CreateBy": 1,
  "CreateOn": "2018-12-14T11:54:12.3408981+08:00",
  "SysCode": "sample string 9",
  "MenuAlias": "sample string 10",
  "Brower": "sample string 11"
}

application/xml, text/xml

Sample:
<SysMenuDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <Brower>sample string 11</Brower>
  <CreateBy>1</CreateBy>
  <CreateOn>2018-12-14T11:54:12.3408981+08:00</CreateOn>
  <Descriptions>sample string 7</Descriptions>
  <IconClass>sample string 5</IconClass>
  <Id>1</Id>
  <IsObsoleted>true</IsObsoleted>
  <MenuAlias>sample string 10</MenuAlias>
  <MenuCode>sample string 2</MenuCode>
  <MenuLevel>1</MenuLevel>
  <MenuName>sample string 3</MenuName>
  <MenuOrder>6</MenuOrder>
  <MenuUrl>sample string 4</MenuUrl>
  <OpenType>1</OpenType>
  <ParentMenuID>1</ParentMenuID>
  <SitesID>1</SitesID>
  <SysCode>sample string 9</SysCode>
</SysMenuDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SysMenuDTO'.

Response Information

Resource Description

添加一条菜单信息

StatusDTO
NameDescriptionTypeAdditional information
Status

状态

integer

None.

StatusMessage

消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "StatusMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<StatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <Status>1</Status>
  <StatusMessage>sample string 1</StatusMessage>
</StatusDTO>