POST Visual/saveRight
数据权限:保存授权
Request Information
URI Parameters
None.
Body Parameters
SaveRightReqModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TypeId | integer |
None. |
|
| ObjectId | integer |
None. |
|
| fClassId | integer |
None. |
|
| fDataAll | boolean |
None. |
|
| fAutoNew | boolean |
None. |
|
| fDtlOrParent | boolean |
None. |
|
| dataInfoList | Collection of t_DataInfo |
None. |
|
| fViewSelfHst | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"TypeId": 1,
"ObjectId": 2,
"fClassId": 3,
"fDataAll": true,
"fAutoNew": true,
"fDtlOrParent": true,
"dataInfoList": [
{
"fItemId": 1,
"fNumber": "sample string 2",
"fName": "sample string 3",
"fQryRight": true,
"fEditRight": true,
"fDeleteRight": true,
"fDtlOrParent": true
},
{
"fItemId": 1,
"fNumber": "sample string 2",
"fName": "sample string 3",
"fQryRight": true,
"fEditRight": true,
"fDeleteRight": true,
"fDtlOrParent": true
}
],
"fViewSelfHst": true
}
application/xml, text/xml
Sample:
<SaveRightReqModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DbFrameModel">
<ObjectId>2</ObjectId>
<TypeId>1</TypeId>
<dataInfoList>
<t_DataInfo>
<fDeleteRight>true</fDeleteRight>
<fDtlOrParent>true</fDtlOrParent>
<fEditRight>true</fEditRight>
<fItemId>1</fItemId>
<fName>sample string 3</fName>
<fNumber>sample string 2</fNumber>
<fQryRight>true</fQryRight>
</t_DataInfo>
<t_DataInfo>
<fDeleteRight>true</fDeleteRight>
<fDtlOrParent>true</fDtlOrParent>
<fEditRight>true</fEditRight>
<fItemId>1</fItemId>
<fName>sample string 3</fName>
<fNumber>sample string 2</fNumber>
<fQryRight>true</fQryRight>
</t_DataInfo>
</dataInfoList>
<fAutoNew>true</fAutoNew>
<fClassId>3</fClassId>
<fDataAll>true</fDataAll>
<fDtlOrParent>true</fDtlOrParent>
<fViewSelfHst>true</fViewSelfHst>
</SaveRightReqModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VisualResModel| Name | Description | Type | Additional information |
|---|---|---|---|
| error | integer |
None. |
|
| Msg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"error": 1,
"Msg": "sample string 2"
}
application/xml, text/xml
Sample:
<VisualResModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLL.Visual"> <Msg>sample string 2</Msg> <error>1</error> </VisualResModel>