POST api/Other/HealthCode/Add

向系统中添加一个健康码信息。

Request Information

URI Parameters

None.

Body Parameters

采集的健康码的信息。

HealthInfoParm
NameDescriptionTypeAdditional information
healthinfoid

在查询时,这个值是记录的ID,在插入时可以不写入这个值,或者置0

integer

None.

recordtime

记录的时间,在插入时,这个值可以为空,有值也不会被采信。

string

None.

areaid

区景ID AreaId Uniqueidentifier NN, FK 关联至T_JQ_YQ表。

string

Required

Max length: 36

Min length: 36

touristname

姓名 TouristName Varchar(40) 索引

string

Max length: 40

idcardnum

身份证号 IdCardNum Char(20) NN 索引

string

Required

Max length: 20

idcardaddress

地址 IdCardAddress Varchar(100)

string

Max length: 100

origin

来源地 Origin Varchar(40) 可以填,可以从证件地址中识别

string

Max length: 40

contactnum

联系方式 ContactNum Varchar(20) NN 索引

string

Max length: 20

healthcode

健康码 HealthCode Varchar(400) NN

string

Max length: 400

healthcodecolor

健康码颜色 Char(2) NN 红,绿,灰

string

Max length: 2

tripmode

出行方式 TripMode Varchar(20) 自驾,大巴,火车等。

string

Max length: 20

everbeento

是否到个武汉 EverBeenTo Char(2) NN “是“或“否”

string

Max length: 2

bodytemp

体温 BodyTemp Numeric(3,1) NN

decimal number

Required

remark

备注 Remark Varchar(100)

string

Max length: 100

Request Formats

application/json, text/json

Sample:
{
  "healthinfoid": 1,
  "recordtime": "sample string 2",
  "areaid": "sample string 3",
  "touristname": "sample string 4",
  "idcardnum": "sample string 5",
  "idcardaddress": "sample string 6",
  "origin": "sample string 7",
  "contactnum": "sample string 8",
  "healthcode": "sample string 9",
  "healthcodecolor": "sample string 10",
  "tripmode": "sample string 11",
  "everbeento": "sample string 12",
  "bodytemp": 13.0,
  "remark": "sample string 14"
}

application/xml, text/xml

Sample:
<HealthInfoParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.Other">
  <areaid>sample string 3</areaid>
  <bodytemp>13</bodytemp>
  <contactnum>sample string 8</contactnum>
  <everbeento>sample string 12</everbeento>
  <healthcode>sample string 9</healthcode>
  <healthcodecolor>sample string 10</healthcodecolor>
  <healthinfoid>1</healthinfoid>
  <idcardaddress>sample string 6</idcardaddress>
  <idcardnum>sample string 5</idcardnum>
  <origin>sample string 7</origin>
  <recordtime>sample string 2</recordtime>
  <remark>sample string 14</remark>
  <touristname>sample string 4</touristname>
  <tripmode>sample string 11</tripmode>
</HealthInfoParm>

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

向系统中添加一个健康码信息。

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.