POST api/Setting/TicketCheckGates/Cfg/Set

写入闸机的配置。 当用户在闸机上,点击闸机检票软件的设置按钮,应调用这个API,同时保存到服务器上。 需要判断返回值,如果返回值的errcode=0,则表示成功。

Request Information

URI Parameters

None.

Body Parameters

被保存的配置参数。

TicketGateConfigSetParm
NameDescriptionTypeAdditional information
dzid

闸机ID。

string

Required

Max length: 4

Min length: 4

enablefacedirectin

设置值是否启用人脸直接过闸, 1表示是,0表示否。

string

Max length: 1

enablebodytempchk

设置值是否启用体温监测 , 1-表示是,0表示否。

string

Max length: 1

bodytempstdvalue

设置值体温检测阀值 , 单位摄氏度。

decimal number

None.

facequalitylevel

设置值人脸采集质量要求 , 仅指采集入库时的质量要求,满分为100(最高质量要求),0为最低要求。

integer

None.

enablefacemaskchk

设置值是否启用口罩检测 , 1-表示是,0表示否。

string

Max length: 1

autodownloadfacedb

设置值是否自动下载人脸库 , 1-表示是,0表示否。

string

Max length: 1

lastsettime

最后一次设置时间 ,yyyyMMddHHmmss。

string

None.

lastsetuserloginname

最后一次执行设置的人。

string

None.

Request Formats

application/json, text/json

Sample:
{
  "dzid": "sample string 1",
  "enablefacedirectin": "sample string 2",
  "enablebodytempchk": "sample string 3",
  "bodytempstdvalue": 4.0,
  "facequalitylevel": 5,
  "enablefacemaskchk": "sample string 6",
  "autodownloadfacedb": "sample string 7",
  "lastsettime": "sample string 8",
  "lastsetuserloginname": "sample string 9"
}

application/xml, text/xml

Sample:
<TicketGateConfigSetParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm">
  <autodownloadfacedb>sample string 7</autodownloadfacedb>
  <bodytempstdvalue>4</bodytempstdvalue>
  <dzid>sample string 1</dzid>
  <enablebodytempchk>sample string 3</enablebodytempchk>
  <enablefacedirectin>sample string 2</enablefacedirectin>
  <enablefacemaskchk>sample string 6</enablefacemaskchk>
  <facequalitylevel>5</facequalitylevel>
  <lastsettime>sample string 8</lastsettime>
  <lastsetuserloginname>sample string 9</lastsetuserloginname>
</TicketGateConfigSetParm>

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

写入闸机的配置。 当用户在闸机上,点击闸机检票软件的设置按钮,应调用这个API,同时保存到服务器上。 需要判断返回值,如果返回值的errcode=0,则表示成功。

CommonOperationResult
NameDescriptionTypeAdditional 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.