POST api/Setting/JQ_TXQLX/AddOrUpdate
添加或修改通行券类型。
Request Information
URI Parameters
None.
Body Parameters
TxqlxAddOrModifyParmName | Description | Type | Additional information |
---|---|---|---|
TxqlxId |
通行券类型ID,本字段是不可更新的 |
globally unique identifier |
Required |
Txqlxmc |
通行券类型名称 |
string |
Required Max length: 60 |
QYBZ |
启用标志 |
boolean |
Required |
YXQFS |
有效期的计算方式 A自生效之日起,有效日内有效,B自生效之日起,有效日数内有效但不能越年,C特定时间段有效 |
string |
Required Max length: 1 Min length: 1 |
YXQS |
有效期始,YYYYMMDD。当YXQFS = ‘C'时,此值有意义,否则此值没有意义。 |
string |
Max length: 8 |
YXQZ |
有效期止,YYYYMMDD。当YXQFS = ‘C'时,此值有意义,否则此值没有意义。 |
string |
Max length: 8 |
YXRS |
有效日数,当YXQFS!='C'时,此值有意义。 |
integer |
None. |
RZFS |
认证方式,取值1,2,3,4,5,C。 |
string |
Required Max length: 1 Min length: 1 |
BL3 |
保留。 |
string |
Max length: 200 |
Details |
通行券明细 |
Collection of TxqXkItem |
Required |
Request Formats
application/json, text/json
Sample:
{ "TxqlxId": "6c6c8c4f-2170-4414-8d80-f9e09e4841da", "Txqlxmc": "sample string 2", "QYBZ": true, "YXQFS": "sample string 4", "YXQS": "sample string 5", "YXQZ": "sample string 6", "YXRS": 7, "RZFS": "sample string 8", "BL3": "sample string 9", "Details": [ { "TourismAreaId": "fa58b901-7062-4647-9568-bd3d2e898299", "AuthDirection": "sample string 2", "AuthPassCount": 3, "Reserve1": "sample string 4", "Reserve2": "sample string 5", "Reserve3": "sample string 6", "JPQS": "sample string 7", "JPJZ": "sample string 8", "SFQF": "sample string 9" }, { "TourismAreaId": "fa58b901-7062-4647-9568-bd3d2e898299", "AuthDirection": "sample string 2", "AuthPassCount": 3, "Reserve1": "sample string 4", "Reserve2": "sample string 5", "Reserve3": "sample string 6", "JPQS": "sample string 7", "JPJZ": "sample string 8", "SFQF": "sample string 9" } ] }
application/xml, text/xml
Sample:
<TxqlxAddOrModifyParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.Setting"> <BL3>sample string 9</BL3> <Details> <TxqXkItem> <AuthDirection>sample string 2</AuthDirection> <AuthPassCount>3</AuthPassCount> <JPJZ>sample string 8</JPJZ> <JPQS>sample string 7</JPQS> <Reserve1>sample string 4</Reserve1> <Reserve2>sample string 5</Reserve2> <Reserve3>sample string 6</Reserve3> <SFQF>sample string 9</SFQF> <TourismAreaId>fa58b901-7062-4647-9568-bd3d2e898299</TourismAreaId> </TxqXkItem> <TxqXkItem> <AuthDirection>sample string 2</AuthDirection> <AuthPassCount>3</AuthPassCount> <JPJZ>sample string 8</JPJZ> <JPQS>sample string 7</JPQS> <Reserve1>sample string 4</Reserve1> <Reserve2>sample string 5</Reserve2> <Reserve3>sample string 6</Reserve3> <SFQF>sample string 9</SFQF> <TourismAreaId>fa58b901-7062-4647-9568-bd3d2e898299</TourismAreaId> </TxqXkItem> </Details> <QYBZ>true</QYBZ> <RZFS>sample string 8</RZFS> <TxqlxId>6c6c8c4f-2170-4414-8d80-f9e09e4841da</TxqlxId> <Txqlxmc>sample string 2</Txqlxmc> <YXQFS>sample string 4</YXQFS> <YXQS>sample string 5</YXQS> <YXQZ>sample string 6</YXQZ> <YXRS>7</YXRS> </TxqlxAddOrModifyParm>
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.