POST api/personnelManagement/SaveEmployee
Request Information
URI Parameters
None.
Body Parameters
ReadDTOOfReadSaveEmployee| Name | Description | Type | Additional information |
|---|---|---|---|
| data | ReadSaveEmployee |
None. |
|
| PageSize | integer |
None. |
|
| PageIndex | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"data": {
"emp_id": 1,
"emp_name": "sample string 2",
"emp_type": 3,
"branch_id": 4,
"brithday": "2025-12-30T15:03:30.9730334+08:00",
"id_card": "sample string 5",
"address": "sample string 6",
"education": 7,
"tel": "sample string 8",
"salary": 1.0,
"ins_date": "2025-12-30T15:03:30.9730334+08:00",
"out_date": "2025-12-30T15:03:30.9730334+08:00",
"statue": "sample string 10",
"remark": "sample string 11",
"sex": 12,
"AccountNumber": "sample string 13",
"UserId": 14
},
"PageSize": 1,
"PageIndex": 2
}
application/xml, text/xml
Sample:
<ReadDTOOfReadSaveEmployeecc8wrA37 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YZ_TradingPlatform_API.Models">
<PageIndex>2</PageIndex>
<PageSize>1</PageSize>
<data xmlns:d2p1="http://schemas.datacontract.org/2004/07/YZ_TradingPlatform_API.ReadModels">
<d2p1:AccountNumber>sample string 13</d2p1:AccountNumber>
<d2p1:UserId>14</d2p1:UserId>
<d2p1:address>sample string 6</d2p1:address>
<d2p1:branch_id>4</d2p1:branch_id>
<d2p1:brithday>2025-12-30T15:03:30.9730334+08:00</d2p1:brithday>
<d2p1:education>7</d2p1:education>
<d2p1:emp_id>1</d2p1:emp_id>
<d2p1:emp_name>sample string 2</d2p1:emp_name>
<d2p1:emp_type>3</d2p1:emp_type>
<d2p1:id_card>sample string 5</d2p1:id_card>
<d2p1:ins_date>2025-12-30T15:03:30.9730334+08:00</d2p1:ins_date>
<d2p1:out_date>2025-12-30T15:03:30.9730334+08:00</d2p1:out_date>
<d2p1:remark>sample string 11</d2p1:remark>
<d2p1:salary>1</d2p1:salary>
<d2p1:sex>12</d2p1:sex>
<d2p1:statue>sample string 10</d2p1:statue>
<d2p1:tel>sample string 8</d2p1:tel>
</data>
</ReadDTOOfReadSaveEmployeecc8wrA37>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultDTOOfObject| Name | Description | Type | Additional information |
|---|---|---|---|
| code | integer |
None. |
|
| data | Object |
None. |
|
| msg | string |
None. |
|
| Exception | Object |
None. |
|
| Exception1 | Object |
None. |
|
| count | integer |
None. |
|
| PageSize | integer |
None. |
|
| PageIndex | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"data": {},
"msg": "sample string 3",
"Exception": {},
"Exception1": {},
"count": 6,
"PageSize": 7,
"PageIndex": 8
}
application/xml, text/xml
Sample:
<ResultDTOOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YZ_TradingPlatform_API.Models"> <Exception /> <Exception1 /> <PageIndex>8</PageIndex> <PageSize>7</PageSize> <code>1</code> <count>6</count> <data /> <msg>sample string 3</msg> </ResultDTOOfanyType>