POST api/EquipmentLease/Equipment/T/Add
添加一个租赁装备
Request Information
URI Parameters
None.
Body Parameters
装备的信息。
ELEquipmentParmName | Description | Type | Additional information |
---|---|---|---|
equipmentid |
装备的ID |
integer |
None. |
equipmentname |
装备的名称 |
string |
Required Max length: 50 |
equipmenttype |
装备类型 |
string |
Required Max length: 1 |
categorycode |
装备类别 |
string |
Required Max length: 6 |
unit |
单位 |
string |
Max length: 10 |
managementmode |
管理方式 |
string |
Required Max length: 1 |
value |
价值 |
decimal number |
Required |
deposit |
押金 |
decimal number |
Required |
equipmentstatus |
状态 |
string |
Required Max length: 1 |
barcodes |
条码 |
string |
Max length: 20 |
specs |
规格 |
string |
Max length: 50 |
producingarea |
产地 |
string |
Max length: 50 |
qualitystandards |
质量标准 |
string |
Max length: 50 |
builtdescription |
内置件说明 |
string |
Max length: 200 |
reserver1 |
保留一 |
string |
Max length: 50 |
reserver2 |
保留二 |
string |
Max length: 50 |
image |
图片 |
Collection of byte |
None. |
Request Formats
application/json, text/json
Sample:
{ "equipmentid": 1, "equipmentname": "sample string 2", "equipmenttype": "sample string 3", "categorycode": "sample string 4", "unit": "sample string 5", "managementmode": "sample string 6", "value": 7.0, "deposit": 8.0, "equipmentstatus": "sample string 9", "barcodes": "sample string 10", "specs": "sample string 11", "producingarea": "sample string 12", "qualitystandards": "sample string 13", "builtdescription": "sample string 14", "reserver1": "sample string 15", "reserver2": "sample string 16", "image": "QEA=" }
application/xml, text/xml
Sample:
<ELEquipmentParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <barcodes>sample string 10</barcodes> <builtdescription>sample string 14</builtdescription> <categorycode>sample string 4</categorycode> <deposit>8</deposit> <equipmentid>1</equipmentid> <equipmentname>sample string 2</equipmentname> <equipmentstatus>sample string 9</equipmentstatus> <equipmenttype>sample string 3</equipmenttype> <image>QEA=</image> <managementmode>sample string 6</managementmode> <producingarea>sample string 12</producingarea> <qualitystandards>sample string 13</qualitystandards> <reserver1>sample string 15</reserver1> <reserver2>sample string 16</reserver2> <specs>sample string 11</specs> <unit>sample string 5</unit> <value>7</value> </ELEquipmentParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
添加一个租赁装备
CommonOperationResultName | Description | Type | Additional information |
---|---|---|---|
errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
string |
None. |
tag |
操作同时,服务器端需要返回的其他值。 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag>sample string 3</tag> </CommonOperationResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.