POST Api/User/Add
Request Information
URI Parameters
None.
Body Parameters
UserDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| CustomerId | globally unique identifier |
None. |
|
| UserType | integer |
None. |
|
| UserName | string |
None. |
|
| Password | string |
None. |
|
| RealName | string |
None. |
|
| PhoneNum | string |
None. |
|
| Openid | string |
None. |
|
| RegistTime | date |
None. |
|
| RegistTimeToString | string |
None. |
|
| LastLoginTime | date |
None. |
|
| LastLoginTimeToString | string |
None. |
|
| LoginTimes | integer |
None. |
|
| IsDeleted | boolean |
None. |
|
| EMP | integer |
None. |
|
| Token | string |
None. |
|
| IsGetToken | boolean |
None. |
|
| CustomerName | string |
None. |
|
| RoleId | globally unique identifier |
None. |
|
| UserTypeName | string |
None. |
|
| CustomerIdList | Collection of globally unique identifier |
None. |
|
| IsAdmin | boolean |
None. |
|
| StationId | globally unique identifier |
None. |
|
| DeviceManufacturer | integer |
None. |
|
| StationType | integer |
None. |
|
| PageIndex | integer |
None. |
|
| PageSize | integer |
None. |
|
| Total | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "2aa382ad-1160-4557-b769-2d90ae9755b6",
"CustomerId": "45e87054-4dda-4515-91c9-d85383696f51",
"UserType": 1,
"UserName": "sample string 2",
"Password": "sample string 3",
"RealName": "sample string 4",
"PhoneNum": "sample string 5",
"Openid": "sample string 6",
"RegistTime": "2026-03-02T19:49:51.4986586+08:00",
"RegistTimeToString": "2026-03-02 19:49:51",
"LastLoginTime": "2026-03-02T19:49:51.4986586+08:00",
"LastLoginTimeToString": "2026-03-02 19:49:51",
"LoginTimes": 1,
"IsDeleted": true,
"EMP": 1,
"Token": "sample string 7",
"IsGetToken": true,
"CustomerName": "sample string 9",
"RoleId": "e0af011e-49b5-4a8b-a24f-f6a08c8d9b55",
"UserTypeName": "超级管理员",
"CustomerIdList": [
"25a9675e-5d8f-40de-948b-9dc095f88bee",
"1e422577-f8ef-4b83-a3a8-f178d01e1c6c"
],
"IsAdmin": true,
"StationId": "cbd3c11d-34d6-4f74-b3a4-25ce821d8ecf",
"DeviceManufacturer": 1,
"StationType": 1,
"PageIndex": 11,
"PageSize": 12,
"Total": 13
}
application/xml, text/xml
Sample:
<UserDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZShOil.Model">
<_x003C_PageIndex_x003E_k__BackingField>11</_x003C_PageIndex_x003E_k__BackingField>
<_x003C_PageSize_x003E_k__BackingField>12</_x003C_PageSize_x003E_k__BackingField>
<_x003C_Total_x003E_k__BackingField>13</_x003C_Total_x003E_k__BackingField>
<CustomerId>45e87054-4dda-4515-91c9-d85383696f51</CustomerId>
<CustomerIdList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:guid>25a9675e-5d8f-40de-948b-9dc095f88bee</d2p1:guid>
<d2p1:guid>1e422577-f8ef-4b83-a3a8-f178d01e1c6c</d2p1:guid>
</CustomerIdList>
<CustomerName>sample string 9</CustomerName>
<DeviceManufacturer>1</DeviceManufacturer>
<EMP>1</EMP>
<Id>2aa382ad-1160-4557-b769-2d90ae9755b6</Id>
<IsDeleted>true</IsDeleted>
<IsGetToken>true</IsGetToken>
<LastLoginTime>2026-03-02T19:49:51.4986586+08:00</LastLoginTime>
<LoginTimes>1</LoginTimes>
<Openid>sample string 6</Openid>
<Password>sample string 3</Password>
<PhoneNum>sample string 5</PhoneNum>
<RealName>sample string 4</RealName>
<RegistTime>2026-03-02T19:49:51.4986586+08:00</RegistTime>
<RoleId>e0af011e-49b5-4a8b-a24f-f6a08c8d9b55</RoleId>
<StationId>cbd3c11d-34d6-4f74-b3a4-25ce821d8ecf</StationId>
<StationType>1</StationType>
<Token>sample string 7</Token>
<UserName>sample string 2</UserName>
<UserType>1</UserType>
</UserDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.