POST jxc_api/ErpPermission/SaveUser

Request Information

URI Parameters

None.

Body Parameters

UserEditModel
NameDescriptionTypeAdditional information
OriUserSn

integer

None.

UserSn

integer

None.

UserName

string

None.

Mobile

string

None.

DepartmentId

integer

None.

Postion

string

None.

RoleIds

Collection of integer

None.

AccRoleId

integer

None.

IsAddMode

boolean

None.

CanViewAllBill

boolean

None.

CanOpeAllWh

boolean

None.

OpeWhList

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "OriUserSn": 1,
  "UserSn": 2,
  "UserName": "sample string 3",
  "Mobile": "sample string 4",
  "DepartmentId": 5,
  "Postion": "sample string 6",
  "RoleIds": [
    1,
    2
  ],
  "AccRoleId": 7,
  "IsAddMode": false,
  "CanViewAllBill": true,
  "CanOpeAllWh": true,
  "OpeWhList": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<UserEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Setting.Models.Permission">
  <AccRoleId>7</AccRoleId>
  <CanOpeAllWh>true</CanOpeAllWh>
  <CanViewAllBill>true</CanViewAllBill>
  <DepartmentId>5</DepartmentId>
  <Mobile>sample string 4</Mobile>
  <OpeWhList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </OpeWhList>
  <OriUserSn>1</OriUserSn>
  <Postion>sample string 6</Postion>
  <RoleIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </RoleIds>
  <UserName>sample string 3</UserName>
  <UserSn>2</UserSn>
</UserEditModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>