POST api/permission/save

保存权限

Request Information

URI Parameters

None.

Body Parameters

ActionPermission
NameDescriptionTypeAdditional information
Id

主键

string

None.

ActionType

权限类型标记 与UserType 对应

integer

None.

PId

父级分类

string

None.

ActionName

方法名称

string

None.

ControllerName

控制器名称

string

None.

Description

功能描述

string

None.

IsSystem

内置权限

boolean

None.

IsEnabled

是否启用

boolean

None.

Sort

排序

integer

None.

CreatedTime

创建时间

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "ActionType": 2,
  "PId": "sample string 3",
  "ActionName": "sample string 4",
  "ControllerName": "sample string 5",
  "Description": "sample string 6",
  "IsSystem": true,
  "IsEnabled": true,
  "Sort": 1,
  "CreatedTime": "2024-09-25T00:08:21.1249399+08:00"
}

text/html

Sample:
{"Id":"sample string 1","ActionType":2,"PId":"sample string 3","ActionName":"sample string 4","ControllerName":"sample string 5","Description":"sample string 6","IsSystem":true,"IsEnabled":true,"Sort":1,"CreatedTime":"2024-09-25T00:08:21.1249399+08:00"}

application/xml, text/xml

Sample:
<ActionPermission xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">
  <ActionName>sample string 4</ActionName>
  <ActionType>2</ActionType>
  <ControllerName>sample string 5</ControllerName>
  <CreatedTime>2024-09-25T00:08:21.1249399+08:00</CreatedTime>
  <Description>sample string 6</Description>
  <Id>sample string 1</Id>
  <IsEnabled>true</IsEnabled>
  <IsSystem>true</IsSystem>
  <PId>sample string 3</PId>
  <Sort>1</Sort>
</ActionPermission>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存权限

JsonRtnDtoOfActionPermission
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

ActionPermission

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "Id": "sample string 1",
    "ActionType": 2,
    "PId": "sample string 3",
    "ActionName": "sample string 4",
    "ControllerName": "sample string 5",
    "Description": "sample string 6",
    "IsSystem": true,
    "IsEnabled": true,
    "Sort": 1,
    "CreatedTime": "2024-09-25T00:08:21.1249399+08:00"
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"Id":"sample string 1","ActionType":2,"PId":"sample string 3","ActionName":"sample string 4","ControllerName":"sample string 5","Description":"sample string 6","IsSystem":true,"IsEnabled":true,"Sort":1,"CreatedTime":"2024-09-25T00:08:21.1249399+08:00"}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfActionPermissionmEDjlcEG 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:ActionName>sample string 4</d2p1:ActionName>
    <d2p1:ActionType>2</d2p1:ActionType>
    <d2p1:ControllerName>sample string 5</d2p1:ControllerName>
    <d2p1:CreatedTime>2024-09-25T00:08:21.1249399+08:00</d2p1:CreatedTime>
    <d2p1:Description>sample string 6</d2p1:Description>
    <d2p1:Id>sample string 1</d2p1:Id>
    <d2p1:IsEnabled>true</d2p1:IsEnabled>
    <d2p1:IsSystem>true</d2p1:IsSystem>
    <d2p1:PId>sample string 3</d2p1:PId>
    <d2p1:Sort>1</d2p1:Sort>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfActionPermissionmEDjlcEG>

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

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Id":"sample string 1","ActionType":2,"PId":"sample string 3","ActionName":"sample string 4","ControllerName":"sample string 5","Description":"sample string 6","IsSystem":true,"IsEnabled":true,"Sort":1,"CreatedTime":"2024-09-25T00:08:21.1249399+08:00"}});