POST UserRole/SaveAccessFieldObject

字段权限:保存授权

Request Information

URI Parameters

None.

Body Parameters

FieldRightReqModel
NameDescriptionTypeAdditional information
fType

integer

None.

fObjectId

integer

None.

fBillTypeId

integer

None.

list

Collection of AccessFieldObjectDto

None.

Request Formats

application/json, text/json

Sample:
{
  "fType": 1,
  "fObjectId": 2,
  "fBillTypeId": 3,
  "list": [
    {
      "fPageIndex": 1,
      "fFieldName": "sample string 2",
      "fVisible": true,
      "fEnable": true,
      "fCaption": "sample string 5"
    },
    {
      "fPageIndex": 1,
      "fFieldName": "sample string 2",
      "fVisible": true,
      "fEnable": true,
      "fCaption": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<FieldRightReqModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DbFrameModel">
  <fBillTypeId>3</fBillTypeId>
  <fObjectId>2</fObjectId>
  <fType>1</fType>
  <list>
    <AccessFieldObjectDto>
      <fCaption>sample string 5</fCaption>
      <fEnable>true</fEnable>
      <fFieldName>sample string 2</fFieldName>
      <fPageIndex>1</fPageIndex>
      <fVisible>true</fVisible>
    </AccessFieldObjectDto>
    <AccessFieldObjectDto>
      <fCaption>sample string 5</fCaption>
      <fEnable>true</fEnable>
      <fFieldName>sample string 2</fFieldName>
      <fPageIndex>1</fPageIndex>
      <fVisible>true</fVisible>
    </AccessFieldObjectDto>
  </list>
</FieldRightReqModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

VisualResModel
NameDescriptionTypeAdditional 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>