POST api/Location/SaveBbs
宠物公告
Request Information
Body Parameters
BbsModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| AppId | integer |
None. |
|
| UserId | integer |
None. |
|
| UserName | string |
None. |
|
| Created | date |
None. |
|
| Note | string |
None. |
|
| Deleted | boolean |
None. |
|
| Phone | string |
None. |
|
| FileData | string |
None. |
|
| HeadUrl | string |
None. |
|
| ImgUrl | string |
None. |
|
| Address | string |
None. |
|
| ConnName | string |
None. |
|
| Title | string |
None. |
|
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"AppId": 2,
"UserId": 3,
"UserName": "sample string 4",
"Created": "2025-12-12T05:28:06.5524315+08:00",
"Note": "sample string 6",
"Deleted": true,
"Phone": "sample string 8",
"FileData": "sample string 9",
"HeadUrl": "sample string 10",
"ImgUrl": "sample string 11",
"Address": "sample string 12",
"ConnName": "sample string 13",
"Title": "sample string 14",
"Token": "sample string 15",
"Language": "sample string 16"
}
application/xml, text/xml
Sample:
<BbsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 17</AppId> <Language>sample string 16</Language> <Token>sample string 15</Token> <Address>sample string 12</Address> <AppId>2</AppId> <ConnName>sample string 13</ConnName> <Created>2025-12-12T05:28:06.5524315+08:00</Created> <Deleted>true</Deleted> <FileData>sample string 9</FileData> <HeadUrl>sample string 10</HeadUrl> <Id>1</Id> <ImgUrl>sample string 11</ImgUrl> <Note>sample string 6</Note> <Phone>sample string 8</Phone> <Title>sample string 14</Title> <UserId>3</UserId> <UserName>sample string 4</UserName> </BbsModel>
Response Information
Resource Description
HistoryResult
| Name | Description | Type | Additional information |
|---|---|---|---|
| State |
状态 |
integer |
None. |
| LastLocationId |
最后id |
integer |
None. |
| LastDeviceUtcDate |
最后时间 |
string |
None. |
| Items |
数据 |
Collection of HistoryInfo |
None. |
| ItemsCount |
去除停留点之前的数量 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"State": 1,
"LastLocationId": 2,
"LastDeviceUtcDate": "sample string 3",
"Items": [
{
"LocationId": 1,
"Time": "sample string 2",
"Lat": 3.0,
"Lng": 4.0,
"Speed": 5.0,
"Course": 6.0,
"IsStop": 7,
"StopTime": 8,
"Icon": "sample string 9",
"DataType": 10,
"StopTimeStr": "sample string 11",
"EndTime": "sample string 12",
"Battery": 13
},
{
"LocationId": 1,
"Time": "sample string 2",
"Lat": 3.0,
"Lng": 4.0,
"Speed": 5.0,
"Course": 6.0,
"IsStop": 7,
"StopTime": 8,
"Icon": "sample string 9",
"DataType": 10,
"StopTimeStr": "sample string 11",
"EndTime": "sample string 12",
"Battery": 13
}
],
"ItemsCount": 4
}
application/xml, text/xml
Sample:
<HistoryResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
<Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
<d2p1:HistoryInfo>
<d2p1:Battery>13</d2p1:Battery>
<d2p1:Course>6</d2p1:Course>
<d2p1:DataType>10</d2p1:DataType>
<d2p1:EndTime>sample string 12</d2p1:EndTime>
<d2p1:Icon>sample string 9</d2p1:Icon>
<d2p1:IsStop>7</d2p1:IsStop>
<d2p1:Lat>3</d2p1:Lat>
<d2p1:Lng>4</d2p1:Lng>
<d2p1:LocationId>1</d2p1:LocationId>
<d2p1:Speed>5</d2p1:Speed>
<d2p1:StopTime>8</d2p1:StopTime>
<d2p1:StopTimeStr>sample string 11</d2p1:StopTimeStr>
<d2p1:Time>sample string 2</d2p1:Time>
</d2p1:HistoryInfo>
<d2p1:HistoryInfo>
<d2p1:Battery>13</d2p1:Battery>
<d2p1:Course>6</d2p1:Course>
<d2p1:DataType>10</d2p1:DataType>
<d2p1:EndTime>sample string 12</d2p1:EndTime>
<d2p1:Icon>sample string 9</d2p1:Icon>
<d2p1:IsStop>7</d2p1:IsStop>
<d2p1:Lat>3</d2p1:Lat>
<d2p1:Lng>4</d2p1:Lng>
<d2p1:LocationId>1</d2p1:LocationId>
<d2p1:Speed>5</d2p1:Speed>
<d2p1:StopTime>8</d2p1:StopTime>
<d2p1:StopTimeStr>sample string 11</d2p1:StopTimeStr>
<d2p1:Time>sample string 2</d2p1:Time>
</d2p1:HistoryInfo>
</Items>
<ItemsCount>4</ItemsCount>
<LastDeviceUtcDate>sample string 3</LastDeviceUtcDate>
<LastLocationId>2</LastLocationId>
<State>1</State>
</HistoryResult>