POST api/ConsumableRecordIn/CreateAndUpdateSave
新增,修改 保存
Request Information
URI Parameters
None.
Body Parameters
DAL.t_consumable_record_in| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Remark | string |
None. |
|
| ConsumableId | integer |
None. |
|
| UserId | integer |
None. |
|
| UserName | string |
None. |
|
| Amount | integer |
None. |
|
| InDate | date |
None. |
|
| ImageFile | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Remark": "sample string 2",
"ConsumableId": 1,
"UserId": 1,
"UserName": "sample string 3",
"Amount": 1,
"InDate": "2026-06-09T21:14:58.4861479+08:00",
"ImageFile": "sample string 4"
}
application/xml, text/xml
Sample:
<t_consumable_record_in xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAL"> <Amount>1</Amount> <ConsumableId>1</ConsumableId> <Id>1</Id> <ImageFile>sample string 4</ImageFile> <InDate>2026-06-09T21:14:58.4861479+08:00</InDate> <Remark>sample string 2</Remark> <UserId>1</UserId> <UserName>sample string 3</UserName> </t_consumable_record_in>
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.