POST jxc_api/Permission/Save

Request Information

URI Parameters

None.

Body Parameters

SavePermissionOptions
NameDescriptionTypeAdditional information
Pi

PermissionInfo

None.

CurrUserSn

integer

None.

OldUserSn

integer

None.

UnChanged

boolean

None.

EffectNext

boolean

None.

UserPer

UserPermissionData

None.

Request Formats

application/json, text/json

Sample:
{
  "Pi": {
    "UserSn": 1,
    "Mobile": "sample string 2",
    "UserName": "sample string 3",
    "AsId": 4,
    "Permission": "sample string 5",
    "RoleId": 6,
    "RoleName": "sample string 7",
    "Note": "sample string 8"
  },
  "CurrUserSn": 1,
  "OldUserSn": 2,
  "UnChanged": true,
  "EffectNext": true,
  "UserPer": {
    "CanViewAllBill": true,
    "CanOpeAllWh": true,
    "OpeWhList": [
      1,
      2
    ]
  }
}

application/xml, text/xml

Sample:
<SavePermissionOptions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Setting">
  <_x003C_CurrUserSn_x003E_k__BackingField>1</_x003C_CurrUserSn_x003E_k__BackingField>
  <_x003C_EffectNext_x003E_k__BackingField>true</_x003C_EffectNext_x003E_k__BackingField>
  <_x003C_OldUserSn_x003E_k__BackingField>2</_x003C_OldUserSn_x003E_k__BackingField>
  <_x003C_Pi_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/LemonScm.Model">
    <d2p1:_x003C_AsId_x003E_k__BackingField>4</d2p1:_x003C_AsId_x003E_k__BackingField>
    <d2p1:_x003C_Mobile_x003E_k__BackingField>sample string 2</d2p1:_x003C_Mobile_x003E_k__BackingField>
    <d2p1:_x003C_Note_x003E_k__BackingField>sample string 8</d2p1:_x003C_Note_x003E_k__BackingField>
    <d2p1:_x003C_Permission_x003E_k__BackingField>sample string 5</d2p1:_x003C_Permission_x003E_k__BackingField>
    <d2p1:_x003C_RoleId_x003E_k__BackingField>6</d2p1:_x003C_RoleId_x003E_k__BackingField>
    <d2p1:_x003C_RoleName_x003E_k__BackingField>sample string 7</d2p1:_x003C_RoleName_x003E_k__BackingField>
    <d2p1:_x003C_UserName_x003E_k__BackingField>sample string 3</d2p1:_x003C_UserName_x003E_k__BackingField>
    <d2p1:_x003C_UserSn_x003E_k__BackingField>1</d2p1:_x003C_UserSn_x003E_k__BackingField>
  </_x003C_Pi_x003E_k__BackingField>
  <_x003C_UnChanged_x003E_k__BackingField>true</_x003C_UnChanged_x003E_k__BackingField>
  <_x003C_UserPer_x003E_k__BackingField>
    <_x003C_CanOpeAllWh_x003E_k__BackingField>true</_x003C_CanOpeAllWh_x003E_k__BackingField>
    <_x003C_CanViewAllBill_x003E_k__BackingField>true</_x003C_CanViewAllBill_x003E_k__BackingField>
    <_x003C_IsAdmin_x003E_k__BackingField>true</_x003C_IsAdmin_x003E_k__BackingField>
    <_x003C_IsSuperAdmin_x003E_k__BackingField>true</_x003C_IsSuperAdmin_x003E_k__BackingField>
    <_x003C_OpeWhList_x003E_k__BackingField xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </_x003C_OpeWhList_x003E_k__BackingField>
  </_x003C_UserPer_x003E_k__BackingField>
</SavePermissionOptions>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MessageModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Data

Object

None.

StatusCode

StatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Data": {},
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<MessageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model">
  <_x003C_Data_x003E_k__BackingField />
  <_x003C_Message_x003E_k__BackingField>sample string 2</_x003C_Message_x003E_k__BackingField>
  <_x003C_StatusCode_x003E_k__BackingField>CONTINUE</_x003C_StatusCode_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
</MessageModel>