POST api/EquipmentLease/EquipmentPackage/T/Add
(跨平台方法) 添加一个装备套餐。
Request Information
URI Parameters
None.
Body Parameters
ELEquipmentPackageParmName | Description | Type | Additional information |
---|---|---|---|
packageid |
套餐ID char(4) |
string |
Required Max length: 4 |
packagename |
套餐名称 varchar(50) |
string |
Required Max length: 50 |
packageaccount |
套餐折扣 tinyint 0-100,80代表折扣为八折 |
byte |
Required |
startdate |
生效起始日期 char(8) |
string |
Required Max length: 8 |
enddate |
生效截止日期 char(8) |
string |
Required Max length: 8 |
starttime |
生效起始时段 char(6) |
string |
Required Max length: 6 |
endtime |
生效截止时段 char(6) |
string |
Required Max length: 6 |
status |
状态 char(1) 启用/禁用 |
string |
Required Max length: 1 |
contrary |
时段字段取反 char(1) |
string |
Max length: 1 |
Request Formats
application/json, text/json
Sample:
{ "packageid": "sample string 1", "packagename": "sample string 2", "packageaccount": 64, "startdate": "sample string 4", "enddate": "sample string 5", "starttime": "sample string 6", "endtime": "sample string 7", "status": "sample string 8", "contrary": "sample string 9" }
application/xml, text/xml
Sample:
<ELEquipmentPackageParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <contrary>sample string 9</contrary> <enddate>sample string 5</enddate> <endtime>sample string 7</endtime> <packageaccount>64</packageaccount> <packageid>sample string 1</packageid> <packagename>sample string 2</packagename> <startdate>sample string 4</startdate> <starttime>sample string 6</starttime> <status>sample string 8</status> </ELEquipmentPackageParm>
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.