POST api/Post/CreateAndUpdateSave
新增,修改 保存
Request Information
URI Parameters
None.
Body Parameters
DAL.l_post| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Level | string |
None. |
|
| CreateTime | date |
None. |
|
| CompanyId | integer |
None. |
|
| DepartmentId | integer |
None. |
|
| MenuStr | string |
None. |
|
| ParentId | integer |
None. |
|
| ManageUserId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Level": "sample string 3",
"CreateTime": "2026-06-09T21:24:11.4705916+08:00",
"CompanyId": 5,
"DepartmentId": 6,
"MenuStr": "sample string 7",
"ParentId": 1,
"ManageUserId": 1
}
application/xml, text/xml
Sample:
<l_post xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAL"> <CompanyId>5</CompanyId> <CreateTime>2026-06-09T21:24:11.4705916+08:00</CreateTime> <DepartmentId>6</DepartmentId> <Id>1</Id> <Level>sample string 3</Level> <ManageUserId>1</ManageUserId> <MenuStr>sample string 7</MenuStr> <Name>sample string 2</Name> <ParentId>1</ParentId> </l_post>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
System.Web.Http.Results.JsonResultOfDAL.HandleResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Content | DAL.HandleResult |
None. |
|
| SerializerSettings | Newtonsoft.Json.JsonSerializerSettings |
None. |
|
| Encoding | System.Text.Encoding |
None. |
|
| Request | System.Net.Http.HttpRequestMessage |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.